mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-28 11:04:17 +00:00
Fix NPE in PlexCommand
This commit is contained in:
parent
4a14f94158
commit
5f64e02cae
1 changed files with 5 additions and 0 deletions
|
@ -132,6 +132,11 @@ public abstract class PlexCommand extends Command implements PluginIdentifiableC
|
|||
{
|
||||
PlexPlayer plexPlayer = plugin.getPlayerCache().getPlexPlayerMap().get(player.getUniqueId());
|
||||
|
||||
if (plexPlayer == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (plugin.getSystem().equalsIgnoreCase("ranks"))
|
||||
{
|
||||
if (!plexPlayer.getRankFromString().isAtLeast(getLevel()))
|
||||
|
|
Loading…
Reference in a new issue