diff --git a/src/main/java/com/songoda/epicheads/listeners/DeathListeners.java b/src/main/java/com/songoda/epicheads/listeners/DeathListeners.java index 04b20e4..b3bd8c7 100644 --- a/src/main/java/com/songoda/epicheads/listeners/DeathListeners.java +++ b/src/main/java/com/songoda/epicheads/listeners/DeathListeners.java @@ -58,7 +58,10 @@ public class DeathListeners implements Listener { } else { if (!Setting.DROP_MOB_HEADS.getBoolean() || event.getEntity() instanceof ArmorStand) return; - Head head = new Head(-1, null, HeadType.valueOf(event.getEntity().getType().name()).getUrl(), null, null, (byte) 0); + Head head = new Head(-1, Methods.formatText(event.getEntity().getType().name().toLowerCase() + .replace("_", " "), true), + HeadType.valueOf(event.getEntity().getType().name()).getUrl(), + null, null, (byte) 0); itemNew = head.asItemStack(); }