Merge flags to master

This commit is contained in:
MattBDev 2016-04-22 23:54:53 -04:00
parent c266b1a428
commit 1bce69d288

View File

@ -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;
}