- Documentation
- Server functions
- aclGetRight
Function
aclGetRight
Checks whether a list grants a right. Also returns false when there is no entry.
Syntax
bool aclGetRight(acl theAcl, string rightName)Arguments
theAclacl- The list.
rightNamestring- Right name.
Returns
true if granted.
Example
if aclGetRight(aclGet("Moderator"), "command.kick") then
outputServerLog("Moderatorzy mogą wyrzucać")
end