mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-01 20:30:48 +02:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user