1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-21 05:51:56 +02:00

Little safety check for bad plugins.

This commit is contained in:
KHobbits
2012-06-19 09:03:37 +01:00
parent ebd1fdc0a3
commit 7eafd2bea7

View File

@@ -457,11 +457,15 @@ public abstract class UserData extends PlayerExtension implements IConf
}
config.save();
}
@Deprecated
public boolean isIgnoredPlayer(final String userName)
{
final IUser user = ess.getUser(userName);
if (user == null || !user.isOnline())
{
return false;
}
return (ignoredPlayers.contains(user.getName().toLowerCase(Locale.ENGLISH)) && !user.isAuthorized("essentials.chat.ignoreexempt"));
}