Kill the permissions!

This commit is contained in:
shatteredbeam 2013-02-12 17:31:46 -08:00
parent 0528139c2c
commit 697cfeea64

View File

@ -11,7 +11,6 @@ import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.skills.utilities.SkillTools;
import com.gmail.nossr50.skills.utilities.SkillType; import com.gmail.nossr50.skills.utilities.SkillType;
import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Misc;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users; import com.gmail.nossr50.util.Users;
public class AddxpCommand implements CommandExecutor { public class AddxpCommand implements CommandExecutor {
@ -24,7 +23,7 @@ public class AddxpCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 2: case 2:
if (!Permissions.hasPermission(sender, "mcmmo.commands.addxp")) { if (!sender.hasPermission("mcmmo.commands.addxp")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }
@ -68,7 +67,7 @@ public class AddxpCommand implements CommandExecutor {
return true; return true;
case 3: case 3:
if (!Permissions.hasPermission(sender, "mcmmo.commands.addxp.others")) { if (!sender.hasPermission("mcmmo.commands.addxp.others")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }