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:
Ursprung
217b414118
Commit
8d5a8667de
@ -156,7 +156,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PlayerDeathEvent event = CraftEventFactory.callPlayerDeathEvent(this, loot, damagesource.a(this));
|
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()));
|
this.b.serverConfigurationManager.sendAll(new Packet3Chat(event.getDeathMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren