mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Server restart without closing, added more info
This commit is contained in:
parent
29d253fd93
commit
fb019a88c1
6 changed files with 26 additions and 9 deletions
|
|
@ -130,11 +130,12 @@ class PocketMinecraftServer extends stdClass{
|
|||
return $info;
|
||||
}
|
||||
|
||||
public function close($reason = "stop"){
|
||||
public function close($reason = "stop"){
|
||||
$this->chat(false, "Stopping server...");
|
||||
$this->save();
|
||||
$this->stop = true;
|
||||
$this->trigger("onClose");
|
||||
$this->interface->close();
|
||||
}
|
||||
|
||||
public function chat($owner, $text, $target = true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue