fixed stop message send in discord, fixed gm change kick message

This commit is contained in:
GameHerobrine 2023-03-12 17:55:06 +03:00
parent fcd1ecb1a9
commit a1a650dc5e
3 changed files with 26 additions and 4 deletions

View file

@ -963,7 +963,7 @@ class Player{
$this->blocked = true;
$this->gamemode = $gm;
$this->sendChat("Your gamemode has been changed to " . $this->getGamemode() . ", you've to do a forced reconnect.\n");
$this->server->schedule(30, [$this, "close"], "gamemode change"); //Forces a kick
$this->server->schedule(30, [$this, "close"], "gamemode change", false, true); //Forces a kick
}
if($this->gamemode === SPECTATOR){