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,10 +131,13 @@ public class PlotPlusListener extends PlotListener implements Listener {
return; return;
} }
UUID uuid = pp.getUUID(); UUID uuid = pp.getUUID();
if (plot.isAdded(uuid) && plot.getFlag(Flags.ITEM_DROP).or(false)) { if (plot.isAdded(uuid)) {
Optional<Boolean> flag = plot.getFlag(Flags.ITEM_DROP);
if (flag.isPresent() && !flag.get()) {
event.setCancelled(true); event.setCancelled(true);
} }
} }
}
@EventHandler @EventHandler
public void onPlotEnter(PlayerEnterPlotEvent event) { public void onPlotEnter(PlayerEnterPlotEvent event) {

View File

@ -1,6 +1,7 @@
buildscript { buildscript {
repositories { repositories {
jcenter() jcenter()
mavenLocal()
maven { maven {
name = "forge" name = "forge"
url = "http://files.minecraftforge.net/maven" url = "http://files.minecraftforge.net/maven"

View File

@ -3,6 +3,7 @@ buildscript {
mavenCentral() mavenCentral()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter() jcenter()
mavenLocal()
} }
dependencies { dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3' classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'