mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Little safety check for bad plugins.
This commit is contained in:
parent
4f23e8aaeb
commit
65025d47c5
1 changed files with 5 additions and 1 deletions
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue