🍀Permissions
LabAPI provides a way to handle players through the use of permissions.
Check if a player has a permission
// We can check for one permission in specific.
bool hasPerm = player.HasPermissions("myplugin.permission");
// Or for multipe at the same time
bool hasPerms = player.HasPermissions("perm1", "perm2");
// In the case of multiple permissions we can check if the player has any of them
bool hasAnyPerm = player.HasAnyPermission("perm1", "perm2");Modifying permissions of a certain player
// Adds the given permissions to the player
player.AddPermissions("perm1", "perm2", "perm3");
// Removes the given permissions from the player
player.RemovePermissions("perm1", "perm2");Getting all the permissions of a player
Permission Providers
💿Custom ProviderLast updated