Fix NullPointerException when a player leaves the server without their Clans Ban client being loaded into memory beforehand.
This commit is contained in:
parent
e139bea465
commit
480cc0f9be
@ -644,7 +644,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
return;
|
||||
}
|
||||
|
||||
if (_clansBans.Get(event.getPlayer().getName()).isBanned())
|
||||
if (_clansBans.Get(event.getPlayer().getName()) != null && _clansBans.Get(event.getPlayer().getName()).isBanned())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user