mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Lower API version of a plugin is notified with a debug level of 2
This commit is contained in:
parent
65110d5358
commit
9ee7180681
@ -99,7 +99,7 @@ class PluginAPI extends stdClass{
|
|||||||
if(isset($info["apiversion"]) and intval($info["apiversion"]) > CURRENT_API_VERSION){
|
if(isset($info["apiversion"]) and intval($info["apiversion"]) > CURRENT_API_VERSION){
|
||||||
console("[ERROR] [PluginAPI] Plugin \"".$info["name"]."\" uses a newer API! It can crash or corrupt the server!");
|
console("[ERROR] [PluginAPI] Plugin \"".$info["name"]."\" uses a newer API! It can crash or corrupt the server!");
|
||||||
}elseif(!isset($info["apiversion"]) or intval($info["apiversion"]) < CURRENT_API_VERSION){
|
}elseif(!isset($info["apiversion"]) or intval($info["apiversion"]) < CURRENT_API_VERSION){
|
||||||
console("[NOTICE] [PluginAPI] Plugin \"".$info["name"]."\" uses an old API");
|
console("[DEBUG] [PluginAPI] Plugin \"".$info["name"]."\" uses an old API", true, true, 2);
|
||||||
}
|
}
|
||||||
$object = new $className($this->server->api, false);
|
$object = new $className($this->server->api, false);
|
||||||
if(!($object instanceof Plugin)){
|
if(!($object instanceof Plugin)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user