diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 169a3598..9f570ead 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -153,6 +153,31 @@ class ServerAPI{ "legacy - sleep while waiting for the next tick. same ticking as in old PocketMine. The server won't use a lot of cpu, but tps may be not stable(causes 16 TPS on Windows)", "nodelay - unused time is not used for anything.. May cause to use 100% of CPU.", "netwait - uses unused time to wait for packets. Should always give max tps. Untested on windows." + ], + "server-type" => [ + "Changes server type. Does not affect anything in 0.8.1. Allowed types:", + "normal - changes unconnected_pong reply to use MCCPP;Demo;", + "demo - same as normal", + "minecon - changes unconnected_pong reply to use MCCPP;MINECON;", + ], + "generator-settings" => [ + "Used to set level settings when generating a world. Currently affects only FLAT world.", + "FLAT world preset format: VERSION;LAYERS;STARTY;PARAMS", + "The string contains multiple parameters split by ;", + "VERSION - preset version (2)", + "LAYERS - defines layers and their sizes", + " each layer is formatted as x", + " - block id to fill the layer", + " - layer height", + "Multiple layers are separated by ,", + "STARTY - start y level. Must be more than 0", + "PARAMS - additional patamaters", + " spawn(radius= block=) - sets spawn parameters", + " radius= - sets spawn radius to ", + " block= - sets block to fill spawn area with", + " decoration(treecount= grasscount=) - sets amount of decorations", + "Preset example:", + "2;7,59x1,3x3,2;1;spawn(radius=10 block=89),decoration(treecount=80 grasscount=45)" ] ]); Entity::$allowFly = $this->getProperty("allow-flight", true);