added ability to add comments for entries in .properties files, deleted experimental-mob-ai since it does nothing

This commit is contained in:
GameHerobrine 2025-09-12 12:54:49 +03:00
parent 8046d0e17c
commit 2a827c42c4
4 changed files with 65 additions and 9 deletions

View file

@ -137,6 +137,16 @@ class ServerAPI{
"auto-save" => true,
"enable-mob-ai" => true,
"abort-reading-after-N-packets" => PocketMinecraftServer::$PACKET_READING_LIMIT
], comments: [
"level-type" => [
"Alowed types:",
"FLAT - flat world",
"DEFAULT - use one of the 4 pregenerated worlds from pocketmine",
"VANILLA - unfinished, attempts to generate vanilla 0.8.1 world. This geneeator is very slow."
],
"abort-reading-after-N-packets" => [
"Sets max amount of packets the server can read before forcing tick check."
]
]);
Entity::$allowFly = $this->getProperty("allow-flight", true);
if(!Entity::$allowFly){