Kill the permissions middle man...

This commit is contained in:
shatteredbeam 2013-02-12 17:16:41 -08:00
parent de9249e523
commit 074a798213

View File

@ -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;
} }