summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/com
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-07-13 17:31:14 +0100
committerKHobbits <rob@khobbits.co.uk>2013-07-13 17:31:14 +0100
commitadb5189d42c8707bbf8ccdf7988f0c96ea5d04c2 (patch)
tree01964be8f349c3ef8a14bf396250271f8d39a1be /EssentialsChat/src/com
parentef3b052c644542bbea3fa668c60b03baf3e15861 (diff)
downloadEssentials-adb5189d42c8707bbf8ccdf7988f0c96ea5d04c2.tar
Essentials-adb5189d42c8707bbf8ccdf7988f0c96ea5d04c2.tar.gz
Essentials-adb5189d42c8707bbf8ccdf7988f0c96ea5d04c2.tar.lz
Essentials-adb5189d42c8707bbf8ccdf7988f0c96ea5d04c2.tar.xz
Essentials-adb5189d42c8707bbf8ccdf7988f0c96ea5d04c2.zip
Add 'No one listening' message stub, will be empty by default and thus not sent.
Diffstat (limited to 'EssentialsChat/src/com')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java3
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java4
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);