Interface IPermissionChecker
Checks whether a player has permission to invoke a specific command. Used only for player commands; console commands do not require permission checks.
public interface IPermissionChecker
Methods
HasPermission(Player, CommandDefinition)
Checks if the given player has permission to invoke a command.
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.