mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 05:08:48 +00:00
Little safety check for bad plugins.
This commit is contained in:
parent
4f23e8aaeb
commit
65025d47c5
|
@ -462,6 +462,10 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
public boolean isIgnoredPlayer(final String userName)
|
public boolean isIgnoredPlayer(final String userName)
|
||||||
{
|
{
|
||||||
final IUser user = ess.getUser(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"));
|
return (ignoredPlayers.contains(user.getName().toLowerCase(Locale.ENGLISH)) && !user.isAuthorized("essentials.chat.ignoreexempt"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue