summaryrefslogtreecommitdiffstats
path: root/EssentialsChat
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-15 12:27:23 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-15 12:27:23 +0000
commitcf46d880c53e9bd12345a8ccfe2c4814e01e7476 (patch)
tree2d3df5b21428ac1d768dc45f611bf7f4b9e93cff /EssentialsChat
parente70195b1705544ba91ea7ce537532230f9154f7d (diff)
downloadEssentials-cf46d880c53e9bd12345a8ccfe2c4814e01e7476.tar
Essentials-cf46d880c53e9bd12345a8ccfe2c4814e01e7476.tar.gz
Essentials-cf46d880c53e9bd12345a8ccfe2c4814e01e7476.tar.lz
Essentials-cf46d880c53e9bd12345a8ccfe2c4814e01e7476.tar.xz
Essentials-cf46d880c53e9bd12345a8ccfe2c4814e01e7476.zip
Missing part for the /ignore command
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1478 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsChat')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
index 7cde272ae..10787e75b 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatWorker.java
@@ -105,6 +105,9 @@ public class EssentialsChatWorker
for (Player p : server.getOnlinePlayers())
{
User u = Essentials.getStatic().getUser(p);
+ if (u.isIgnoredPlayer(user.getName()) && !user.isOp()) {
+ continue;
+ }
if (u != user && !u.isAuthorized("essentials.chat.spy"))
{
Location l = u.getLocation();