mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Added reload feature UNTESTED
This commit is contained in:
parent
38d361bb07
commit
75a42ce26c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user