mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-21 10:52:01 +00:00
Patch to allow plugins to use ignore lookup, without updating their own code.
This commit is contained in:
parent
aea2c00a95
commit
4f23e8aaeb
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue