mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
project uses tabs instead of spaces(as in CONTRIBUTING.md)
This commit is contained in:
parent
f00318b6ed
commit
62571f26cd
115 changed files with 2291 additions and 2364 deletions
|
|
@ -27,7 +27,7 @@ class PluginAPI extends stdClass{
|
|||
$this->server->api->console->register("version", "", [$this, "commandHandler"]);
|
||||
$this->server->api->console->cmdWhitelist("version");
|
||||
if($this->server->extraprops->get("query-plugins")){ //allow players to also view plugins ingame, since query makes names public
|
||||
$this->server->api->console->cmdWhitelist("plugins");
|
||||
$this->server->api->console->cmdWhitelist("plugins");
|
||||
}
|
||||
$this->server->api->console->alias("pl", "plugins");
|
||||
$this->server->api->console->alias("ver", "version");
|
||||
|
|
@ -65,7 +65,7 @@ class PluginAPI extends stdClass{
|
|||
|
||||
public function __destruct(){
|
||||
foreach($this->plugins as $p){
|
||||
if(method_exists($p[0], "__destruct")){$p[0]->__destruct();};
|
||||
if(method_exists($p[0], "__destruct")){$p[0]->__destruct();};
|
||||
}
|
||||
unset($this->plugins);
|
||||
}
|
||||
|
|
@ -163,7 +163,7 @@ class PluginAPI extends stdClass{
|
|||
|
||||
$aver = CURRENT_API_VERSION;
|
||||
if($pluginInfo["api"] != $aver){
|
||||
console("[WARNING] API is not the same as Core, might cause bugs({$pluginInfo["api"]} != {$aver})");
|
||||
console("[WARNING] API is not the same as Core, might cause bugs({$pluginInfo["api"]} != {$aver})");
|
||||
}
|
||||
|
||||
$phr = "phar://$filePath/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue