Localized disconnect message for spawn selection failure

This commit is contained in:
Dylan K. Taylor
2023-01-14 20:59:27 +00:00
parent 5c2ed210fc
commit c55e23a2c6
6 changed files with 15 additions and 10 deletions

View File

@ -2349,7 +2349,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
},
function() : void{
if($this->isConnected()){
$this->disconnect("Unable to find a respawn position");
$this->getNetworkSession()->disconnectWithError(KnownTranslationFactory::pocketmine_disconnect_error_respawn());
}
}
);