mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
shutdown function is executed(forgot to add it before)
This commit is contained in:
parent
81d46e71aa
commit
0cbf5ec828
1 changed files with 1 additions and 0 deletions
|
|
@ -183,6 +183,7 @@ class PocketMinecraftServer{
|
||||||
public function close($reason = "server stop"){
|
public function close($reason = "server stop"){
|
||||||
$this->send2Discord('[INFO] Server stopped!');
|
$this->send2Discord('[INFO] Server stopped!');
|
||||||
usleep(2);
|
usleep(2);
|
||||||
|
$this->onShutdown();
|
||||||
if($this->stop !== true){
|
if($this->stop !== true){
|
||||||
if(is_int($reason)){
|
if(is_int($reason)){
|
||||||
$reason = "signal stop";
|
$reason = "signal stop";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue