* Fixed bug Permissions system not working. Fixes #44.
This commit is contained in:
parent
8fcf661f5b
commit
0a10eb1529
@ -66,7 +66,7 @@ public class PermissionsM {
|
|||||||
return true;
|
return true;
|
||||||
} else if (player.hasPermission(PermissionsC.main + perm.perm)) {
|
} else if (player.hasPermission(PermissionsC.main + perm.perm)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (player.hasPermission(PermissionsC.main + perm.perm + "*")) {
|
} else if (player.hasPermission(PermissionsC.main + perm.perm + ".*")) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (message) {
|
if (message) {
|
||||||
|
@ -20,24 +20,24 @@ public class PermissionsC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public enum Permissions {
|
public enum Permissions {
|
||||||
info (main + "info", PType.ALL),
|
info ("info", PType.ALL),
|
||||||
help (main + "help", PType.ALL),
|
help ("help", PType.ALL),
|
||||||
reload (main + "reload", PType.ADMIN),
|
reload ("reload", PType.ADMIN),
|
||||||
join (main + "join", PType.PLAYER),
|
join ("join", PType.PLAYER),
|
||||||
joinfull (main + "joinfull", PType.MODERATOR),
|
joinfull ("joinfull", PType.MODERATOR),
|
||||||
joinsign (main + "joinsign", PType.PLAYER),
|
joinsign ("joinsign", PType.PLAYER),
|
||||||
leave (main + "leave", PType.PLAYER),
|
leave ("leave", PType.PLAYER),
|
||||||
list (main + "list", PType.PLAYER),
|
list ("list", PType.PLAYER),
|
||||||
shop (main + "shop", PType.PLAYER),
|
shop ("shop", PType.PLAYER),
|
||||||
shopblockchooser (main + "shop.blockchooser", PType.ADMIN),
|
shopblockchooser ("shop.blockchooser", PType.ADMIN),
|
||||||
start (main + "start", PType.MODERATOR),
|
start ("start", PType.MODERATOR),
|
||||||
create (main + "create", PType.ADMIN),
|
create ("create", PType.ADMIN),
|
||||||
set (main + "set", PType.MODERATOR),
|
set ("set", PType.MODERATOR),
|
||||||
setwarp (main + "setwarp", PType.MODERATOR),
|
setwarp ("setwarp", PType.MODERATOR),
|
||||||
signcreate (main + "signcreate", PType.MODERATOR),
|
signcreate ("signcreate", PType.MODERATOR),
|
||||||
remove (main + "remove", PType.ADMIN),
|
remove ("remove", PType.ADMIN),
|
||||||
tokens (main + "tokens", PType.ADMIN),
|
tokens ("tokens", PType.ADMIN),
|
||||||
allcommands (main + "allcommands", PType.OP);
|
allcommands ("allcommands", PType.OP);
|
||||||
|
|
||||||
public String perm;
|
public String perm;
|
||||||
public PType type;
|
public PType type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user