Fixed NullPointerException when killing NPC (#261)

This commit is contained in:
Intelli 2022-12-07 17:49:50 -07:00
parent 9f8c2e8a2f
commit 319d104622

View File

@ -24,6 +24,10 @@ public class PlayerKillLogger {
return;
}
if (ConfigHandler.playerIdCache.get(player.toLowerCase(Locale.ROOT)) == null) {
UserStatement.loadId(preparedStmt.getConnection(), player, null);
}
CoreProtectPreLogEvent event = new CoreProtectPreLogEvent(user);
CoreProtect.getInstance().getServer().getPluginManager().callEvent(event);