From 5be83cd780f4c23491d137fa08faa014ca0fb05d Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 18 Mar 2015 22:56:07 +1100 Subject: [PATCH] fixes #202 --- .../com/intellectualcrafters/plot/listeners/PlayerEvents.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java index 16b19330a..d25146048 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -791,6 +791,9 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi final Plot plot = getCurrentPlot(q); final PlotPlayer pp = BukkitUtil.getPlayer(player); if (plot.isDenied(pp.getUUID())) { + if (Permissions.hasPermission(pp, "plots.admin.enter.denied")) { + return; + } MainUtil.sendMessage(BukkitUtil.getPlayer(player), C.YOU_BE_DENIED); event.setCancelled(true); return;