PlayerDeathEvent: add ability to set message displayed on the death screen (#5726)

This commit is contained in:
BrandPVP
2023-05-19 18:18:18 +03:00
committed by GitHub
parent bd6af68f91
commit 8245cfab0e
2 changed files with 11 additions and 1 deletions

View File

@ -2344,7 +2344,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->startDeathAnimation();
$this->getNetworkSession()->onServerDeath($ev->getDeathMessage());
$this->getNetworkSession()->onServerDeath($ev->getDeathScreenMessage());
}
protected function onDeathUpdate(int $tickDiff) : bool{