Fixed NullPointerException when killing NPC (#261)
This commit is contained in:
parent
9f8c2e8a2f
commit
319d104622
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue