1
mirror of https://github.com/CarmJos/cn2b2t-project.git synced 2026-06-04 08:48:16 +08:00

修复无法记录Console的bug

This commit is contained in:
carm
2020-05-29 11:51:44 +08:00
parent 56e480f763
commit 9fc3a6520b
2 changed files with 4 additions and 3 deletions
@@ -26,9 +26,9 @@ public class DeathListener implements Listener {
meta.setLore(lore);
skull.setItemMeta(meta);
e.getDrops().add(skull);
LoggerManager.log(LoggerManager.LogType.KILLED, e.getEntity(), e.getDeathMessage());
LoggerManager.log(LoggerManager.LogType.KILLED, e.getEntity(), e.getDeathMessage() + e.getEntity().getLocation().toString());
} else {
LoggerManager.log(LoggerManager.LogType.DEATH, e.getEntity(), e.getDeathMessage());
LoggerManager.log(LoggerManager.LogType.DEATH, e.getEntity(), e.getDeathMessage() + e.getEntity().getLocation().toString());
}