Properly localize jukebox popups

This commit is contained in:
Dylan K. Taylor
2023-01-13 17:48:56 +00:00
parent 0132ff47cb
commit 69967a0e55
4 changed files with 28 additions and 20 deletions

View File

@ -2014,11 +2014,8 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->getNetworkSession()->onChatMessage($message);
}
/**
* @param string[] $args
*/
public function sendJukeboxPopup(string $key, array $args) : void{
$this->getNetworkSession()->onJukeboxPopup($key, $args);
public function sendJukeboxPopup(Translatable|string $message) : void{
$this->getNetworkSession()->onJukeboxPopup($message);
}
/**