From 950640a557b1dd2623c8170629b89716b38f546b Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Thu, 4 Jun 2020 11:29:02 +0200 Subject: [PATCH] Revert "Don't send chat spy to message sender" This reverts commit a37ab10414e529d79d213d5adb66c49fe91abb71. Let's not break plotchat when plotspy is enabled --- .../java/com/plotsquared/bukkit/listener/PlayerEvents.java | 3 --- 1 file changed, 3 deletions(-) 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 5a047b5c6..734816707 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java @@ -979,9 +979,6 @@ public class PlayerEvents extends PlotListener implements Listener { .replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender) .replace("%msg%", message); for (Player player : spies) { - if (player.equals(event.getPlayer())) { - continue; - } player.sendMessage(spyMessage); } }