mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Check if the Plugin uses the Plugin Interface
This commit is contained in:
parent
987a6e635e
commit
145d0707e6
@ -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…
x
Reference in New Issue
Block a user