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;
}
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);
}
}
}
@EventHandler
public void onPlotEnter(PlayerEnterPlotEvent event) {

View File

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

View File

@ -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'