diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 8980f239..4852b6ce 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -125,7 +125,7 @@ class PluginAPI extends stdClass{ } $className = $info["class"]; - $apiversion = array_map("intval", explode(",", (string) $info["apiversion"])); + $apiversion = array_map("floatval", explode(",", (string) $info["apiversion"])); if(!in_array((string) CURRENT_API_VERSION, $apiversion)){ console("[WARNING] Plugin \"".$info["name"]."\" may not be compatible with the API (".$info["apiversion"]." != ".CURRENT_API_VERSION.")! It can crash or corrupt the server!"); } diff --git a/src/config.php b/src/config.php index ff44ccc3..c2a417bd 100644 --- a/src/config.php +++ b/src/config.php @@ -67,7 +67,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . FILE_PATH); ini_set("memory_limit", "256M"); //Default define("LOG", true); define("START_TIME", microtime(true)); -define("MAJOR_VERSION", "1.0.2"); +define("MAJOR_VERSION", "1.0.2 (Alpha_1.3.12)"); define("CODENAME", "懐かしさ (Nostalgia)"); //i'm not very creative - kotyaralih define("CURRENT_MINECRAFT_VERSION", "v0.8.1 alpha"); define("CURRENT_API_VERSION", '12.1');