* Fixed bug Permissions system not working. Fixes #44.

This commit is contained in:
Steffion 2013-10-25 11:21:29 +02:00
parent 8fcf661f5b
commit 0a10eb1529
2 changed files with 19 additions and 19 deletions

View File

@ -66,7 +66,7 @@ public class PermissionsM {
return true;
} else if (player.hasPermission(PermissionsC.main + perm.perm)) {
return true;
} else if (player.hasPermission(PermissionsC.main + perm.perm + "*")) {
} else if (player.hasPermission(PermissionsC.main + perm.perm + ".*")) {
return true;
} else {
if (message) {

View File

@ -20,24 +20,24 @@ public class PermissionsC {
}
public enum Permissions {
info (main + "info", PType.ALL),
help (main + "help", PType.ALL),
reload (main + "reload", PType.ADMIN),
join (main + "join", PType.PLAYER),
joinfull (main + "joinfull", PType.MODERATOR),
joinsign (main + "joinsign", PType.PLAYER),
leave (main + "leave", PType.PLAYER),
list (main + "list", PType.PLAYER),
shop (main + "shop", PType.PLAYER),
shopblockchooser (main + "shop.blockchooser", PType.ADMIN),
start (main + "start", PType.MODERATOR),
create (main + "create", PType.ADMIN),
set (main + "set", PType.MODERATOR),
setwarp (main + "setwarp", PType.MODERATOR),
signcreate (main + "signcreate", PType.MODERATOR),
remove (main + "remove", PType.ADMIN),
tokens (main + "tokens", PType.ADMIN),
allcommands (main + "allcommands", PType.OP);
info ("info", PType.ALL),
help ("help", PType.ALL),
reload ("reload", PType.ADMIN),
join ("join", PType.PLAYER),
joinfull ("joinfull", PType.MODERATOR),
joinsign ("joinsign", PType.PLAYER),
leave ("leave", PType.PLAYER),
list ("list", PType.PLAYER),
shop ("shop", PType.PLAYER),
shopblockchooser ("shop.blockchooser", PType.ADMIN),
start ("start", PType.MODERATOR),
create ("create", PType.ADMIN),
set ("set", PType.MODERATOR),
setwarp ("setwarp", PType.MODERATOR),
signcreate ("signcreate", PType.MODERATOR),
remove ("remove", PType.ADMIN),
tokens ("tokens", PType.ADMIN),
allcommands ("allcommands", PType.OP);
public String perm;
public PType type;