mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
ÂLocalize disconnect reasons for RakLib disconnects
This commit is contained in:
@ -668,7 +668,7 @@ class NetworkSession{
|
||||
* Called by the network interface to close the session when the client disconnects without server input, for
|
||||
* example in a timeout condition or voluntary client disconnect.
|
||||
*/
|
||||
public function onClientDisconnect(string $reason) : void{
|
||||
public function onClientDisconnect(Translatable|string $reason) : void{
|
||||
$this->tryDisconnect(function() use ($reason) : void{
|
||||
if($this->player !== null){
|
||||
$this->player->onPostDisconnect($reason, null);
|
||||
|
Reference in New Issue
Block a user