From cf43c74ad964054109a7984a2d56c17235cf77e0 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 18 Jan 2015 12:44:51 -0800 Subject: [PATCH] fixes #90 --- .../plot/listeners/WorldEditListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/WorldEditListener.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/WorldEditListener.java index 297e652fa..a2e59867e 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/WorldEditListener.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/WorldEditListener.java @@ -60,7 +60,7 @@ import com.sk89q.worldedit.function.mask.Mask; * @author Citymonstret * @author Empire92 */ -@SuppressWarnings("unused") public class WorldEditListener implements Listener { +public class WorldEditListener implements Listener { final List monitored = Arrays.asList(new String[]{"set", "replace", "overlay", "walls", "outline", "deform", "hollow", "smooth", "move", "stack", "naturalize", "paste", "count", "regen", "copy", "cut", ""}); @@ -192,7 +192,9 @@ import com.sk89q.worldedit.function.mask.Mask; } final Location f = e.getFrom(); final Player p = e.getPlayer(); - + if (PlotMain.hasPermission(p, "plots.worldedit.bypass")) { + return; + } if ((f.getBlockX() != t.getBlockX()) || (f.getBlockZ() != t.getBlockZ())) { final PlotId idF = PlayerFunctions.getPlot(f); final PlotId idT = PlayerFunctions.getPlot(t);