mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 22:55:06 +01:00
Made death message handling check for 'null' to disable death messages, along with an empty string.
This commit is contained in:
parent
217b414118
commit
8d5a8667de
1 changed files with 4 additions and 1 deletions
|
@ -156,7 +156,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||
}
|
||||
|
||||
PlayerDeathEvent event = CraftEventFactory.callPlayerDeathEvent(this, loot, damagesource.a(this));
|
||||
if (!"".equals(event.getDeathMessage())) {
|
||||
|
||||
String deathMessage = event.getDeathMessage();
|
||||
|
||||
if (deathMessage != null && deathMessage.length() > 0) {
|
||||
this.b.serverConfigurationManager.sendAll(new Packet3Chat(event.getDeathMessage()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue