mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Localized disconnect message for spawn selection failure
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user