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 3556074a5..8ca8621ff 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/AddxpCommand.java @@ -4,7 +4,6 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; - import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; diff --git a/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java index c7f180d87..9c903af4f 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java @@ -8,7 +8,6 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.Users; public class McgodCommand implements CommandExecutor { @@ -18,7 +17,7 @@ public class McgodCommand implements CommandExecutor { switch (args.length) { case 0: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mcgod")) { + if (!sender.hasPermission("mcmmo.commands.mcgod")) { sender.sendMessage(command.getPermissionMessage()); return true; } @@ -45,7 +44,7 @@ public class McgodCommand implements CommandExecutor { return true; case 1: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mcgod.others")) { + if (!sender.hasPermission("mcmmo.commands.mcgod.others")) { sender.sendMessage(command.getPermissionMessage()); return true; } diff --git a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java index b01dcbb6c..bd9538e4e 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java @@ -8,7 +8,6 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; -import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.Users; public class McrefreshCommand implements CommandExecutor { @@ -18,7 +17,7 @@ public class McrefreshCommand implements CommandExecutor { switch (args.length) { case 0: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mcrefresh")) { + if (!sender.hasPermission("mcmmo.commands.mcrefresh")) { sender.sendMessage(command.getPermissionMessage()); return true; } @@ -38,7 +37,7 @@ public class McrefreshCommand implements CommandExecutor { return true; case 1: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mcrefresh.others")) { + if (!sender.hasPermission("mcmmo.commands.mcrefresh.others")) { sender.sendMessage(command.getPermissionMessage()); return true; } diff --git a/src/main/java/com/gmail/nossr50/commands/admin/MmoeditCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/MmoeditCommand.java index 58ec2f815..2f33a0d69 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/MmoeditCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/MmoeditCommand.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 MmoeditCommand implements CommandExecutor { @@ -23,7 +22,7 @@ public class MmoeditCommand implements CommandExecutor { switch (args.length) { case 2: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mmoedit")) { + if (!sender.hasPermission("mcmmo.commands.mmoedit")) { sender.sendMessage(command.getPermissionMessage()); return true; } @@ -66,7 +65,7 @@ public class MmoeditCommand implements CommandExecutor { return true; case 3: - if (!Permissions.hasPermission(sender, "mcmmo.commands.mmoedit.others")) { + if (!sender.hasPermission("mcmmo.commands.mmoedit.others")) { sender.sendMessage(command.getPermissionMessage()); return true; }