shutdown function is executed(forgot to add it before)

This commit is contained in:
GameHerobrine 2022-09-05 23:07:48 +03:00
parent 81d46e71aa
commit 0cbf5ec828

View file

@ -183,6 +183,7 @@ class PocketMinecraftServer{
public function close($reason = "server stop"){
$this->send2Discord('[INFO] Server stopped!');
usleep(2);
$this->onShutdown();
if($this->stop !== true){
if(is_int($reason)){
$reason = "signal stop";