3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 21:10:10 +01:00

Made death message handling check for 'null' to disable death messages, along with an empty string.

Dieser Commit ist enthalten in:
EvilSeph 2011-09-21 18:02:59 -04:00
Ursprung 217b414118
Commit 8d5a8667de

Datei anzeigen

@ -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()));
}