diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-06-16 16:01:27 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-06-16 16:01:27 +0100 |
commit | 5da886593b34b0fe69a4c23f68678d491d44a930 (patch) | |
tree | 46ea990f644a05c8418ab59897e24247a88d4ca5 /EssentialsChat/src/com/earth2me/essentials/chat | |
parent | 4c5a88929c45ab770ba21d9656d99aa8d5a7861a (diff) | |
download | Essentials-5da886593b34b0fe69a4c23f68678d491d44a930.tar Essentials-5da886593b34b0fe69a4c23f68678d491d44a930.tar.gz Essentials-5da886593b34b0fe69a4c23f68678d491d44a930.tar.lz Essentials-5da886593b34b0fe69a4c23f68678d491d44a930.tar.xz Essentials-5da886593b34b0fe69a4c23f68678d491d44a930.zip |
Replace op ignore exempt with ignore exempt chat permission:
essentials.chat.ignoreexempt
This permission won't prevent a player from ignoring the player, but the player will see the chat messages anyway.
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials/chat')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java index f91d18df7..c67cb6a64 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java @@ -121,8 +121,7 @@ public abstract class EssentialsChatPlayer implements Listener { String type = _("chatTypeLocal"); final User onlineUser = ess.getUser(onlinePlayer); - //TODO: remove reference to op - if (onlineUser.isIgnoredPlayer(sender.getName()) && !sender.isOp()) + if (onlineUser.isIgnoredPlayer(sender.getName()) && !sender.isAuthorized("essentials.chat.ignoreexempt")) { continue; } |