diff --git a/build/generate-pocketmine-yml-property-consts.php b/build/generate-pocketmine-yml-property-consts.php index 90342a75f..dcc574f8a 100644 --- a/build/generate-pocketmine-yml-property-consts.php +++ b/build/generate-pocketmine-yml-property-consts.php @@ -101,6 +101,15 @@ fwrite($file, <<<'DOC' DOC ); fwrite($file, "final class YmlServerProperties{\n"); +fwrite($file, <<<'CONSTRUCTOR' + + private function __construct(){ + //NOOP + } + + +CONSTRUCTOR +); 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 aad26d242..ddbbd8134 100644 --- a/src/ServerProperties.php +++ b/src/ServerProperties.php @@ -29,6 +29,10 @@ namespace pocketmine; */ final class ServerProperties{ + private function __construct(){ + //NOOP + } + public const AUTO_SAVE = "auto-save"; public const DEFAULT_WORLD_GENERATOR = "level-type"; public const DEFAULT_WORLD_GENERATOR_SETTINGS = "generator-settings"; diff --git a/src/YmlServerProperties.php b/src/YmlServerProperties.php index 7d088b13c..9bd203eef 100644 --- a/src/YmlServerProperties.php +++ b/src/YmlServerProperties.php @@ -30,6 +30,11 @@ namespace pocketmine; * Do not edit this file manually. */ final class YmlServerProperties{ + + private function __construct(){ + //NOOP + } + public const ALIASES = 'aliases'; public const ANONYMOUS_STATISTICS = 'anonymous-statistics'; public const ANONYMOUS_STATISTICS_ENABLED = 'anonymous-statistics.enabled';