diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-07-13 18:46:26 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-07-13 18:46:26 +0100 |
commit | fc63f63de6ada7d44ab0fcd77b982ff203f19c40 (patch) | |
tree | 88919c803d511f860e499e2abb6a781dc9846aad /EssentialsChat/src/com/earth2me/essentials/chat | |
parent | cd51d718ba4078c658e495ff2764efeeccf7b7b3 (diff) | |
download | Essentials-fc63f63de6ada7d44ab0fcd77b982ff203f19c40.tar Essentials-fc63f63de6ada7d44ab0fcd77b982ff203f19c40.tar.gz Essentials-fc63f63de6ada7d44ab0fcd77b982ff203f19c40.tar.lz Essentials-fc63f63de6ada7d44ab0fcd77b982ff203f19c40.tar.xz Essentials-fc63f63de6ada7d44ab0fcd77b982ff203f19c40.zip |
Fix local message when no players are in the area
Allow any translation key to be silenced by blanking it in locale file
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials/chat')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java index 2b15a6771..82096f460 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java @@ -130,13 +130,13 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer { spyList.add(onlinePlayer); } - outList.remove(onlinePlayer); + it.remove(); } } } if (outList.size() < 2) { - event.getPlayer().sendMessage(_("localNoOne")); + user.sendMessage(_("localNoOne")); } LocalChatSpyEvent spyEvent = new LocalChatSpyEvent(event.isAsynchronous(), event.getPlayer(), event.getFormat(), event.getMessage(), spyList); |