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'