From 1bce69d28865711dbb9645275b96535b16dd4754 Mon Sep 17 00:00:00 2001 From: MattBDev Date: Fri, 22 Apr 2016 23:54:53 -0400 Subject: [PATCH] Merge flags to master --- .../java/com/intellectualcrafters/plot/commands/Download.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c09481871..b8d22a65f 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Download.java @@ -41,7 +41,8 @@ public class Download extends SubCommand { MainUtil.sendMessage(plr, C.PLOT_UNOWNED); return false; } - if ((Settings.DOWNLOAD_REQUIRES_DONE && (FlagManager.getPlotFlagRaw(plot, "done") == null)) && !Permissions.hasPermission(plr, "plots.admin.command.download")) { + if ((Settings.DOWNLOAD_REQUIRES_DONE && (!plot.getFlag(Flags.DONE).isPresent())) && !Permissions + .hasPermission(plr, "plots.admin.command.download")) { MainUtil.sendMessage(plr, C.DONE_NOT_DONE); return false; }