From f518c47e0924ec444325252fec11764a45ff921f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 12 Nov 2019 20:52:14 +0000 Subject: [PATCH] Fixes #1922 Banned people can still "talk" in plot --- .../plotsquared/bukkit/listeners/PlayerEvents.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java index 29db0c471..c10a4f8a9 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/PlayerEvents.java @@ -1024,6 +1024,9 @@ import java.util.regex.Pattern; if (plot == null) { return; } + if (plot.isDenied(plotPlayer.getUUID())) { + return; + } event.setCancelled(true); String message = event.getMessage(); String format = Captions.PLOT_CHAT_FORMAT.getTranslated();