Lower API version of a plugin is notified with a debug level of 2

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-20 15:19:24 +01:00
parent 65110d5358
commit 9ee7180681

View File

@ -99,7 +99,7 @@ class PluginAPI extends stdClass{
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!");
}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);
if(!($object instanceof Plugin)){