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 | 93ec005d58a367ef88a0fc21735563740c6f70d6 (patch) | |
tree | 4768afdf0a48a8abc87d3fb7a5b7e1f4e8d1fe6a /EssentialsChat/src | |
parent | 85ae547fdcf267f4419958f4728edce029dbd9b1 (diff) | |
download | Essentials-93ec005d58a367ef88a0fc21735563740c6f70d6.tar Essentials-93ec005d58a367ef88a0fc21735563740c6f70d6.tar.gz Essentials-93ec005d58a367ef88a0fc21735563740c6f70d6.tar.lz Essentials-93ec005d58a367ef88a0fc21735563740c6f70d6.tar.xz Essentials-93ec005d58a367ef88a0fc21735563740c6f70d6.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')
-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; } |