Class DefaultPermissionChecker
Default permission checker that grants all permissions. In a real application, override this with custom permission logic.
public class DefaultPermissionChecker : IPermissionChecker
- Inheritance
-
DefaultPermissionChecker
- Implements
- Inherited Members
Constructors
DefaultPermissionChecker()
public DefaultPermissionChecker()
Methods
HasPermission(Player, CommandDefinition)
Checks if the given player has permission to invoke a command.
public bool HasPermission(Player player, CommandDefinition command)
Parameters
playerPlayerThe player entity.
commandCommandDefinitionThe command definition with metadata tags.
Returns
- bool
True if the player has permission; otherwise, false.