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 | 3f7d252c319760c14c127cd8397fbacdcf22b6a3 (patch) | |
tree | a3587b66ce4a1b5ec0b15d21ce5c0141b04c7a50 /EssentialsChat | |
parent | 63280f2e087b61929c9a3a15f03728f7cf5aa708 (diff) | |
download | Essentials-3f7d252c319760c14c127cd8397fbacdcf22b6a3.tar Essentials-3f7d252c319760c14c127cd8397fbacdcf22b6a3.tar.gz Essentials-3f7d252c319760c14c127cd8397fbacdcf22b6a3.tar.lz Essentials-3f7d252c319760c14c127cd8397fbacdcf22b6a3.tar.xz Essentials-3f7d252c319760c14c127cd8397fbacdcf22b6a3.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')
-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; } |