mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
api can use float values
This commit is contained in:
parent
ae795a21da
commit
d2e91346fc
2 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ class PluginAPI extends stdClass{
|
||||||
}
|
}
|
||||||
|
|
||||||
$className = $info["class"];
|
$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)){
|
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!");
|
console("[WARNING] Plugin \"".$info["name"]."\" may not be compatible with the API (".$info["apiversion"]." != ".CURRENT_API_VERSION.")! It can crash or corrupt the server!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . FILE_PATH);
|
||||||
ini_set("memory_limit", "256M"); //Default
|
ini_set("memory_limit", "256M"); //Default
|
||||||
define("LOG", true);
|
define("LOG", true);
|
||||||
define("START_TIME", microtime(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("CODENAME", "懐かしさ (Nostalgia)"); //i'm not very creative - kotyaralih
|
||||||
define("CURRENT_MINECRAFT_VERSION", "v0.8.1 alpha");
|
define("CURRENT_MINECRAFT_VERSION", "v0.8.1 alpha");
|
||||||
define("CURRENT_API_VERSION", '12.1');
|
define("CURRENT_API_VERSION", '12.1');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue