diff --git a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/CraftReportCommand.java b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/CraftReportCommand.java index b6f20643e..04bfbdfc7 100644 --- a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/CraftReportCommand.java +++ b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/CraftReportCommand.java @@ -22,7 +22,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s, if (commandSender.getName().equalsIgnoreCase("craftreport")) return false; if (!commandSender.hasPermission("movecraft.commands") - && !commandSender.hasPermission("movecraft.commands.craftreport")) { + || !commandSender.hasPermission("movecraft.commands.craftreport")) { commandSender.sendMessage(MOVECRAFT_COMMAND_PREFIX + I18nSupport.getInternationalisedString("Insufficient Permissions")); return true; diff --git a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/ReleaseCommand.java b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/ReleaseCommand.java index 5739ca457..0bb0877d8 100644 --- a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/ReleaseCommand.java +++ b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/ReleaseCommand.java @@ -24,7 +24,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s, return false; if (!commandSender.hasPermission("movecraft.commands") - && !commandSender.hasPermission("movecraft.commands.release")) { + || !commandSender.hasPermission("movecraft.commands.release")) { commandSender.sendMessage(MOVECRAFT_COMMAND_PREFIX + I18nSupport.getInternationalisedString("Insufficient Permissions")); return true; diff --git a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/RotateCommand.java b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/RotateCommand.java index 73e8b9ee9..28d7421a2 100644 --- a/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/RotateCommand.java +++ b/modules/Movecraft/src/main/java/net/countercraft/movecraft/commands/RotateCommand.java @@ -32,7 +32,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s, return true; } if (args[0].equalsIgnoreCase("left")) { - if (!player.hasPermission("movecraft.commands") && !player.hasPermission("movecraft.commands.rotateleft")) { + if (!player.hasPermission("movecraft.commands") || !player.hasPermission("movecraft.commands.rotateleft")) { player.sendMessage(MOVECRAFT_COMMAND_PREFIX + I18nSupport.getInternationalisedString("Insufficient Permissions")); return true; } @@ -50,7 +50,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s, } if (args[0].equalsIgnoreCase("right")) { - if (!player.hasPermission("movecraft.commands") && !player.hasPermission("movecraft.commands.rotateright")) { + if (!player.hasPermission("movecraft.commands") || !player.hasPermission("movecraft.commands.rotateright")) { player.sendMessage(MOVECRAFT_COMMAND_PREFIX + I18nSupport.getInternationalisedString("Insufficient Permissions")); return true; }