From cd33aaa1b6ccd9c85fa82e1c946069e6b3ef170a Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 1 Oct 2016 21:35:57 +0200 Subject: [PATCH] Fix permission checks being ignored --- .../java/com/intellectualcrafters/plot/commands/Download.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java index 513377aec..e4bdc7d02 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java @@ -75,6 +75,7 @@ public class Download extends SubCommand { } else if (args.length == 1 && StringMan.isEqualIgnoreCaseToAny(args[0], "bo3", "bo2", "b03", "b02")) { if (!Permissions.hasPermission(player, C.PERMISSION_DOWNLOAD_BO3)) { C.NO_PERMISSION.send(player, C.PERMISSION_DOWNLOAD_BO3); + return false; } if (plot.getVolume() > 128d * 128d * 256) { C.SCHEMATIC_TOO_LARGE.send(player); @@ -95,6 +96,7 @@ public class Download extends SubCommand { } else if (args.length == 1 && StringMan.isEqualIgnoreCaseToAny(args[0], "mcr", "world", "mca")) { if (!Permissions.hasPermission(player, C.PERMISSION_DOWNLOAD_WORLD)) { C.NO_PERMISSION.send(player, C.PERMISSION_DOWNLOAD_WORLD); + return false; } MainUtil.sendMessage(player, "&cNote: The `.mca` files are 512x512"); plot.addRunning();