View Single Post
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 866

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Apr 22, 2016, 07:32 AM
Seren is offline
Reply With Quote
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.