NAPI.ACL.DoesPlayerHaveAccessToCommand: Difference between revisions
(Created page with "Checks whether a player has access to the given command based on the ACL. ==Syntax== <pre>bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string command);</pre> =...") |
No edit summary |
||
| Line 5: | Line 5: | ||
=== Required Arguments === | === Required Arguments === | ||
*'''player:''' parameter input should be in Client type | *'''player:''' parameter input should be in '''Client''' type | ||
*'''command:''' parameter input should be in string type | *'''command:''' parameter input should be in '''string''' type | ||
==Example== | ==Example== | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' parameter input should be in Client type | *'''player:''' parameter input should be in '''Client''' type | ||
*'''command:''' parameter input should be in string type | *'''command:''' parameter input should be in '''string''' type | ||
{{Example}} | {{Example}} | ||
Revision as of 18:44, 25 November 2019
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...
}