Fixed another NPE...

This commit is contained in:
Rammelkast committed 2016-06-01 16:22:30 +02:00
1 parent 9f7b476068
commit 2d14475a20
1 file changed
+2 -1
@@ -31,7 +31,8 @@ public class KillAuraCheck {
private static final Map<UUID, Integer> VL_COUNT = new HashMap<UUID, Integer>();
public static void cleanPlayer(Player p) {
CHECKER_NPCS.get(p.getUniqueId()).clean(p);
if (CHECKER_NPCS.containsKey(p.getUniqueId()))
CHECKER_NPCS.get(p.getUniqueId()).clean(p);
CHECKER_NPCS.remove(p.getUniqueId());
VL_COUNT.remove(p.getUniqueId());
}