Fix NullPointerException when a player leaves the server without their Clans Ban client being loaded into memory beforehand.

This commit is contained in:
Ben 2016-05-01 23:04:30 +01:00
parent e139bea465
commit 480cc0f9be

View File

@ -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;
}