Server restart without closing, added more info

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-12 00:07:55 +01:00
parent 29d253fd93
commit fb019a88c1
6 changed files with 26 additions and 9 deletions

View file

@ -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){