From f7ee96aa992fd1d37b765643de077c4320520206 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 5 Jun 2012 10:19:23 -0400 Subject: [PATCH] Fixed bug where admin chat was displayed to the whole server. --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index b47bfba4e..2dccb4009 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -357,6 +357,8 @@ public class PlayerListener implements Listener { p.sendMessage(prefix + chatEvent.getMessage()); } } + + event.setCancelled(true); } }