mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fixed incorrect gamemode change close message
This commit is contained in:
@@ -519,7 +519,7 @@ class Player{
|
||||
}else{
|
||||
$this->gamemode = $gm;
|
||||
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().", you've to do a forced reconnect.", "server.chat");
|
||||
$this->server->schedule(30, array($this, "close")); //Forces a kick
|
||||
$this->server->schedule(30, array($this, "close"), "gamemode change"); //Forces a kick
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user