Docs for hasPrivilege:
Quote:
Because privileges are only known to the host, this function will always return false if called client-side.
|
Correct usage of privileges assumes a setup where messages (in form of chat or custom packets) are sent to the host, who can then use the privilege list to determine whether they are valid requests.
On a side note, the privilege *:admin can be shortened to just admin for convenience.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
|