diff --git a/build/generate-pocketmine-yml-property-consts.php b/build/generate-pocketmine-yml-property-consts.php index 23d1de04a86..90342a75fc2 100644 --- a/build/generate-pocketmine-yml-property-consts.php +++ b/build/generate-pocketmine-yml-property-consts.php @@ -90,6 +90,16 @@ function collectProperties(string $prefix, array $properties, array &$constants) fwrite($file, "declare(strict_types=1);\n\n"); fwrite($file, "namespace pocketmine;\n\n"); +fwrite($file, <<<'DOC' +/** + * @internal + * Constants for all properties available in pocketmine.yml. + * This is generated by build/generate-pocketmine-yml-property-consts.php. + * Do not edit this file manually. + */ + +DOC +); fwrite($file, "final class YmlServerProperties{\n"); foreach(Utils::stringifyKeys($constants) as $constName => $propertyName){ fwrite($file, "\tpublic const $constName = '$propertyName';\n"); diff --git a/src/ServerProperties.php b/src/ServerProperties.php index 884ff4f67f7..aad26d2424f 100644 --- a/src/ServerProperties.php +++ b/src/ServerProperties.php @@ -23,6 +23,10 @@ namespace pocketmine; +/** + * @internal + * Constants for all properties available in server.properties. + */ final class ServerProperties{ public const AUTO_SAVE = "auto-save"; diff --git a/src/YmlServerProperties.php b/src/YmlServerProperties.php index 920f0797add..7d088b13c3e 100644 --- a/src/YmlServerProperties.php +++ b/src/YmlServerProperties.php @@ -23,6 +23,12 @@ namespace pocketmine; +/** + * @internal + * Constants for all properties available in pocketmine.yml. + * This is generated by build/generate-pocketmine-yml-property-consts.php. + * Do not edit this file manually. + */ final class YmlServerProperties{ public const ALIASES = 'aliases'; public const ANONYMOUS_STATISTICS = 'anonymous-statistics';