mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Patch to allow plugins to use ignore lookup, without updating their own code.
This commit is contained in:
parent
aea2c00a95
commit
4f23e8aaeb
1 changed files with 7 additions and 0 deletions
|
@ -457,6 +457,13 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
}
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue