From cb68c415ba35d9f9d755d12c4479e3d50ef64403 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Thu, 16 Apr 2015 16:24:22 -0700 Subject: [PATCH] Allow owners and helpers to use WorldEdit //up in their plots --- .../plot/listeners/worldedit/WEListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/worldedit/WEListener.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/worldedit/WEListener.java index 2a59831aa..0410d5f85 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/worldedit/WEListener.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/worldedit/WEListener.java @@ -134,7 +134,7 @@ public class WEListener implements Listener { } if (this.restrictedcmds.contains(cmd)) { final Plot plot = MainUtil.getPlot(pp.getLocation()); - if ((plot == null) || !(plot.helpers.contains(DBFunc.everyone) || plot.helpers.contains(pp.getUUID()))) { + if ((plot == null) || (!plot.isOwner(pp.getUUID()) && !plot.helpers.contains(DBFunc.everyone) && !plot.helpers.contains(pp.getUUID()))) { e.setCancelled(true); } return;