mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 05:51:56 +02:00
Patch to allow plugins to use ignore lookup, without updating their own code.
This commit is contained in:
@@ -457,6 +457,13 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
}
|
}
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public boolean isIgnoredPlayer(final String userName)
|
||||||
|
{
|
||||||
|
final IUser user = ess.getUser(userName);
|
||||||
|
return (ignoredPlayers.contains(user.getName().toLowerCase(Locale.ENGLISH)) && !user.isAuthorized("essentials.chat.ignoreexempt"));
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isIgnoredPlayer(IUser user)
|
public boolean isIgnoredPlayer(IUser user)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user