mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-24 12:16:36 +01:00
Added more detailed entity death reasons (such as suffocation).
This commit is contained in:
parent
15e8cd5b88
commit
f7fea2b298
@ -195,6 +195,9 @@ public final class EntityDeathListener extends Queue implements Listener {
|
||||
else if (cause.equals(EntityDamageEvent.DamageCause.WITHER)) {
|
||||
e = "#wither_effect";
|
||||
}
|
||||
else if (!cause.name().contains("_")) {
|
||||
e = "#" + cause.name().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
}
|
||||
|
||||
if (entity instanceof ArmorStand) {
|
||||
|
Loading…
Reference in New Issue
Block a user