From 5262ff665a2160f4518b8faa0ec1ece7315e82c1 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 18 Mar 2017 00:49:41 +1100 Subject: [PATCH] Fix door break --- .../java/com/plotsquared/sponge/listener/MainListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java b/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java index aef199ce9..144e5f520 100644 --- a/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java +++ b/Sponge/src/main/java/com/plotsquared/sponge/listener/MainListener.java @@ -492,8 +492,6 @@ public class MainListener { return true; } if (!plot1.isAdded(pp.getUUID()) || !Permissions.hasPermission(pp, C.PERMISSION_ADMIN_DESTROY_OTHER, true)) { - return false; - } else { com.google.common.base.Optional> destroy = plot1.getFlag(Flags.BREAK); BlockState state = l.getBlock(); if (destroy.isPresent() && destroy.get().contains(SpongeUtil.getPlotBlock(state))) { @@ -502,6 +500,7 @@ public class MainListener { MainUtil.sendMessage(pp, C.NO_PERMISSION_EVENT, C.PERMISSION_ADMIN_DESTROY_OTHER); return false; } + return true; }); }