mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Fixed incorrect gamemode change close message
This commit is contained in:
parent
a5998ff9a2
commit
174160c65c
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ class Player{
|
||||||
}else{
|
}else{
|
||||||
$this->gamemode = $gm;
|
$this->gamemode = $gm;
|
||||||
$this->eventHandler("Your gamemode has been changed to ".$this->getGamemode().", you've to do a forced reconnect.", "server.chat");
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue