mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Check if the Plugin uses the Plugin Interface
This commit is contained in:
parent
987a6e635e
commit
145d0707e6
1 changed files with 3 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ class PluginAPI extends stdClass{
|
|||
console("[NOTICE] [PluginAPI] Plugin \"".$info["name"]."\" got raw access to Server methods");
|
||||
}
|
||||
$object = new $className($this->server->api, ((isset($info["api"]) and $info["api"] !== true) ? $this->server:false));
|
||||
if(!($object instanceof Plugin)){
|
||||
console("[NOTICE] [PluginAPI] Plugin \"".$info["name"]."\" doesn't use the Plugin Interface");
|
||||
}
|
||||
$this->plugins[$className] = array($object, $info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue