This commit is contained in:
MattBDev
2016-05-10 14:24:02 -04:00
parent 3be0f74498
commit a4647b05e2
3 changed files with 7 additions and 2 deletions

View File

@ -131,8 +131,11 @@ public class PlotPlusListener extends PlotListener implements Listener {
return;
}
UUID uuid = pp.getUUID();
if (plot.isAdded(uuid) && plot.getFlag(Flags.ITEM_DROP).or(false)) {
event.setCancelled(true);
if (plot.isAdded(uuid)) {
Optional<Boolean> flag = plot.getFlag(Flags.ITEM_DROP);
if (flag.isPresent() && !flag.get()) {
event.setCancelled(true);
}
}
}