Patch to allow plugins to use ignore lookup, without updating their own code.

This commit is contained in:
KHobbits 2012-06-19 08:59:26 +01:00
parent aea2c00a95
commit 4f23e8aaeb

View File

@ -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)
{