mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Kill the permissions middle man...
This commit is contained in:
parent
de9249e523
commit
074a798213
@ -23,7 +23,7 @@ public class AddlevelsCommand implements CommandExecutor{
|
|||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
if (!Permissions.hasPermission(sender, "mcmmo.commands.addlevels")) {
|
if (!sender.hasPermission("mcmmo.commands.addlevels")) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ public class AddlevelsCommand implements CommandExecutor{
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
if (!Permissions.hasPermission(sender, "mcmmo.commands.addlevels.others")) {
|
if (!sender.hasPermission("mcmmo.commands.addlevels.others")) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user