From 697cfeea64060f2fea222382a72dea05f76087bd Mon Sep 17 00:00:00 2001 From: shatteredbeam Date: Tue, 12 Feb 2013 17:31:46 -0800 Subject: [PATCH] Kill the permissions! --- .../java/com/gmail/nossr50/commands/admin/AddxpCommand.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java index 4afd3be14..3556074a5 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java @@ -11,7 +11,6 @@ import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.skills.utilities.SkillType; import com.gmail.nossr50.util.Misc; -import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.Users; public class AddxpCommand implements CommandExecutor { @@ -24,7 +23,7 @@ public class AddxpCommand implements CommandExecutor { switch (args.length) { case 2: - if (!Permissions.hasPermission(sender, "mcmmo.commands.addxp")) { + if (!sender.hasPermission("mcmmo.commands.addxp")) { sender.sendMessage(command.getPermissionMessage()); return true; } @@ -68,7 +67,7 @@ public class AddxpCommand implements CommandExecutor { return true; case 3: - if (!Permissions.hasPermission(sender, "mcmmo.commands.addxp.others")) { + if (!sender.hasPermission("mcmmo.commands.addxp.others")) { sender.sendMessage(command.getPermissionMessage()); return true; }