From 2eda56bc1faa2dda51e7b3212299eb1af09e4df4 Mon Sep 17 00:00:00 2001 From: Cheezybo99 Date: Sat, 18 Apr 2020 21:42:51 +0100 Subject: [PATCH] If all players are denied from a plot, this will allow administrators with permission to see chatspy, talk in plots they have been denied from. --- .../main/java/com/plotsquared/bukkit/listener/PlayerEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java index af9c43ef7..d35b3a6ad 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java @@ -946,7 +946,7 @@ public class PlayerEvents extends PlotListener implements Listener { || area.isForcingPlotChat())) { return; } - if (plot.isDenied(plotPlayer.getUUID())) { + if (plot.isDenied(plotPlayer.getUUID()) && !plotPlayer.hasPermission("plots.admin.command.chat")) { return; } event.setCancelled(true);