Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PermissionsFile Class Reference

Public Member Functions

MCAPI void applyPlayerPermissionsFromDisk (::Player &player, ::CommandPermissionLevel opCommandPermissionLevel)
MCAPI void persistPlayerPermissionsToDisk (::Player &player, ::PlayerPermissionLevel permission)
MCAPI void persistPlayerPermissionsToDisk (::std::string const &playerId, ::PlayerPermissionLevel permission)
MCAPI ::std::tuple<::FileReadResult, ::Json::Value > readPermissionFile ()
MCAPI::FileReadResult reload ()
MCAPI::FileReadResult reloadAndApply (::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > userManager, ::CommandPermissionLevel opCommandPermissionLevel)

Static Public Member Functions

static MCAPI ::std::string _getPermissionIdForPlayer (::Player &player)

Public Attributes

::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > const > mFilePath
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::PlayerPermissionLevel > > mPermissions

Member Function Documentation

◆ applyPlayerPermissionsFromDisk()

MCAPI void PermissionsFile::applyPlayerPermissionsFromDisk ( ::Player & player,
::CommandPermissionLevel opCommandPermissionLevel )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ persistPlayerPermissionsToDisk()

MCAPI void PermissionsFile::persistPlayerPermissionsToDisk ( ::std::string const & playerId,
::PlayerPermissionLevel permission )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readPermissionFile()

MCAPI ::std::tuple<::FileReadResult, ::Json::Value > PermissionsFile::readPermissionFile ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ reload()

MCAPI::FileReadResult PermissionsFile::reload ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ reloadAndApply()

MCAPI::FileReadResult PermissionsFile::reloadAndApply ( ::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > userManager,
::CommandPermissionLevel opCommandPermissionLevel )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getPermissionIdForPlayer()

MCAPI ::std::string PermissionsFile::_getPermissionIdForPlayer ( ::Player & player)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: