summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/com/earth2me
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-06-16 16:01:27 +0100
committerKHobbits <rob@khobbits.co.uk>2012-06-16 16:01:27 +0100
commit3f7d252c319760c14c127cd8397fbacdcf22b6a3 (patch)
treea3587b66ce4a1b5ec0b15d21ce5c0141b04c7a50 /EssentialsChat/src/com/earth2me
parent63280f2e087b61929c9a3a15f03728f7cf5aa708 (diff)
downloadEssentials-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/src/com/earth2me')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java3
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;
}