Added reload feature UNTESTED

This commit is contained in:
Michael Yoo 2013-03-21 22:41:25 +10:30
parent 38d361bb07
commit 75a42ce26c

View File

@ -59,6 +59,12 @@ class ConsoleAPI{
public function defaultCommands($cmd, $params, $issuer, $alias){
$output = "";
switch($cmd){
case "reload":
$output .= "Reloading...";
$this->server->api->plugin->loadAll();
$this->server->api->plugin->initAll();
$output .= "done\n";
break;
case "crash": //Crashes the server to generate an report
$this->callNotDefinedMethodCrash();
$this->server->api->server; //Access a private property
@ -226,4 +232,4 @@ class ConsoleLoop extends Thread{
}
exit(0);
}
}
}