mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-24 17:11:31 +01:00
Null check death message
This commit is contained in:
parent
81bc83d15a
commit
992acc5c56
@ -567,7 +567,7 @@ public class EventListen implements Listener {
|
||||
if (npc == null)
|
||||
return;
|
||||
|
||||
if (npc.requiresNameHologram()) {
|
||||
if (npc.requiresNameHologram() && event.getDeathMessage() != null) {
|
||||
event.setDeathMessage(event.getDeathMessage().replace(event.getEntity().getName(), npc.getFullName()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user