From d46a61d0c45324ac0a50ddec9e02b86b27e4ab97 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 16 Mar 2013 12:29:29 +0100 Subject: [PATCH] Removed Server getting via Plugin Loading --- src/API/PluginAPI.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 8021726a9..10b9e57d0 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -92,10 +92,7 @@ class PluginAPI extends stdClass{ }elseif(!isset($info["apiversion"]) or intval($info["apiversion"]) < CURRENT_API_VERSION){ console("[NOTICE] [PluginAPI] Plugin \"".$info["name"]."\" uses an old API"); } - if(isset($info["api"]) and $info["api"] !== true){ - console("[INFO] [PluginAPI] Plugin \"\x1b[36m".$info["name"]."\x1b[0m\" got raw access to Server methods"); - } - $object = new $className($this->server->api, ((isset($info["api"]) and $info["api"] !== true) ? $this->server:false)); + $object = new $className($this->server->api, false); if(!($object instanceof Plugin)){ console("[ERROR] [PluginAPI] Plugin \"\x1b[36m".$info["name"]."\x1b[0m\" doesn't use the Plugin Interface"); if(method_exists($object, "__destruct")){