mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
PlayerDeathEvent: add ability to set message displayed on the death screen (#5726)
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user