mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Automatic updates!
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user