Fixed incorrect gamemode change close message

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-25 19:57:57 +01:00
parent a5998ff9a2
commit 174160c65c

View File

@ -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;
}