From a4647b05e201b408983b6882f326954c5f726e0a Mon Sep 17 00:00:00 2001 From: MattBDev Date: Tue, 10 May 2016 14:24:02 -0400 Subject: [PATCH] Fix #1011 --- .../com/plotsquared/bukkit/listeners/PlotPlusListener.java | 7 +++++-- Sponge/build.gradle | 1 + build.gradle | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java index 6eba7c518..c61c18180 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java @@ -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 flag = plot.getFlag(Flags.ITEM_DROP); + if (flag.isPresent() && !flag.get()) { + event.setCancelled(true); + } } } diff --git a/Sponge/build.gradle b/Sponge/build.gradle index 7acf27887..02a459af2 100644 --- a/Sponge/build.gradle +++ b/Sponge/build.gradle @@ -1,6 +1,7 @@ buildscript { repositories { jcenter() + mavenLocal() maven { name = "forge" url = "http://files.minecraftforge.net/maven" diff --git a/build.gradle b/build.gradle index 9dae120c8..5f0327dd2 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ buildscript { mavenCentral() maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" } jcenter() + mavenLocal() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'