From 02d17b363ddcceea42eddd599f74535ee3e9e49d Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 17 Apr 2016 03:55:55 +1000 Subject: [PATCH] Fix plot download/done --- .../com/intellectualcrafters/plot/commands/Download.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 b1b0bd1bd..63430a100 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java @@ -41,8 +41,11 @@ public class Download extends SubCommand { MainUtil.sendMessage(plr, C.PLOT_UNOWNED); return false; } - if ((!plot.isOwner(plr.getUUID()) || (Settings.DOWNLOAD_REQUIRES_DONE && (FlagManager.getPlotFlagRaw(plot, "done") != null))) && !Permissions - .hasPermission(plr, "plots.admin.command.download")) { + if ((Settings.DOWNLOAD_REQUIRES_DONE && (FlagManager.getPlotFlagRaw(plot, "done") == null)) && !Permissions.hasPermission(plr, "plots.admin.command.download")) { + MainUtil.sendMessage(plr, C.DONE_NOT_DONE); + return false; + } + if ((!plot.isOwner(plr.getUUID()))) { MainUtil.sendMessage(plr, C.NO_PLOT_PERMS); return false; }