Introduce Player::sendToastNotification() (#5102)

This commit is contained in:
famima65536
2022-09-23 19:37:08 +09:00
committed by GitHub
parent 7d29ac8293
commit e4fc523251
2 changed files with 12 additions and 0 deletions

View File

@ -1986,6 +1986,13 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->getNetworkSession()->onTip($message);
}
/**
* Sends a toast message to the player, or queue to send it if a toast message is already shown.
*/
public function sendToastNotification(string $title, string $body) : void{
$this->getNetworkSession()->onToastNotification($title, $body);
}
/**
* Sends a Form to the player, or queue to send it if a form is already open.
*