Automatic updates!

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-11 20:24:32 +01:00
parent ba4d337a73
commit 7b17819ca4
3 changed files with 27 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class ConsoleAPI{
$cmd = strtolower(array_shift($params));
console("[INFO] Issued server command: /$cmd ".implode(" ", $params));
switch($cmd){
case "update-done":
$this->server->api->setProperty("last-update", time());
break;
case "stop":
console("[INFO] Stopping server...");
$this->server->close();