In the new 5.2 plus update they were added privileges, but they don't work for me and I don't know why.
Here are the admin.ini settings:
Code:
[Admin.Settings]
Enabled=True
Password=somepassword
Spammers=false
[Admin.IPs]
[Admin.AllowedCommands]
r
c
k
start
stop
bluescore
redscore
greenscore
yellowscore
gamemode
coop
battle
ctf
treasure
dom
jb
[Admin.BlockedCommands]
[Admin.Privileges]
*:admin
And here is the script with which I test it:
Code:
bool pressed;
void onPlayer(jjPLAYER@ p) {
if (jjKey[0x5A] && !pressed) {
jjAlert(p.hasPrivilege("admin", jjScriptModuleID) + "");
}
pressed = jjKey[0x5A];
}
If I am logged in the "Admin" group, and press Z, it says false (which means that I don't have the privilege), but I added the privilege in Admin.Privileges.
__________________
~XxMoNsTeR
|