diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-07-13 17:31:14 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-07-13 17:31:14 +0100 |
commit | 96749c72d0aa66906f7f30b3357317d7007ba6be (patch) | |
tree | 319cb0fce8cb024ce2983679e84c18c6a2931dd8 /EssentialsChat/src | |
parent | 3043127b744de28ea4677fb64a267ef634539ead (diff) | |
download | Essentials-96749c72d0aa66906f7f30b3357317d7007ba6be.tar Essentials-96749c72d0aa66906f7f30b3357317d7007ba6be.tar.gz Essentials-96749c72d0aa66906f7f30b3357317d7007ba6be.tar.lz Essentials-96749c72d0aa66906f7f30b3357317d7007ba6be.tar.xz Essentials-96749c72d0aa66906f7f30b3357317d7007ba6be.zip |
Add 'No one listening' message stub, will be empty by default and thus not sent.
Diffstat (limited to 'EssentialsChat/src')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java | 3 | ||||
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java index 51472163f..f2912db22 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java @@ -2,16 +2,13 @@ package com.earth2me.essentials.chat; import com.earth2me.essentials.IEssentials; import com.earth2me.essentials.User; -import com.earth2me.essentials.utils.StringUtil; import com.earth2me.essentials.utils.FormatUtil; -import java.text.MessageFormat; import java.util.Locale; import java.util.Map; import org.bukkit.Server; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.player.AsyncPlayerChatEvent; -import org.bukkit.scoreboard.Scoreboard; import org.bukkit.scoreboard.Team; diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java index 4fe8e7df5..0b58b0bfb 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java @@ -134,6 +134,10 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer } } } + + if (outList.size() < 2) { + event.getPlayer().sendMessage(_("localNoOne")); + } LocalChatSpyEvent spyEvent = new LocalChatSpyEvent(event.isAsynchronous(), event.getPlayer(), event.getFormat(), event.getMessage(), spyList); server.getPluginManager().callEvent(spyEvent); |