NAPI.ACL.DoesPlayerHaveAccessToCommand
Checks whether a player has access to the given command based on the ACL.
Syntax
bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string command);
Required Arguments
- player: parameter input should be in Client type
- command: parameter input should be in string type
Example
C# Syntax
Parameters
- player: parameter input should be in Client type
- command: parameter input should be in string type
Example
if (NAPI.ACL.DoesPlayerHaveAccessToCommand(player, "kick")) {
// Do stuff...
}