mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 07:21:17 +00:00
Added private constructors for new internal classes
This commit is contained in:
parent
5a010e8213
commit
ec1cd5967d
@ -101,6 +101,15 @@ fwrite($file, <<<'DOC'
|
|||||||
DOC
|
DOC
|
||||||
);
|
);
|
||||||
fwrite($file, "final class YmlServerProperties{\n");
|
fwrite($file, "final class YmlServerProperties{\n");
|
||||||
|
fwrite($file, <<<'CONSTRUCTOR'
|
||||||
|
|
||||||
|
private function __construct(){
|
||||||
|
//NOOP
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CONSTRUCTOR
|
||||||
|
);
|
||||||
foreach(Utils::stringifyKeys($constants) as $constName => $propertyName){
|
foreach(Utils::stringifyKeys($constants) as $constName => $propertyName){
|
||||||
fwrite($file, "\tpublic const $constName = '$propertyName';\n");
|
fwrite($file, "\tpublic const $constName = '$propertyName';\n");
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,10 @@ namespace pocketmine;
|
|||||||
*/
|
*/
|
||||||
final class ServerProperties{
|
final class ServerProperties{
|
||||||
|
|
||||||
|
private function __construct(){
|
||||||
|
//NOOP
|
||||||
|
}
|
||||||
|
|
||||||
public const AUTO_SAVE = "auto-save";
|
public const AUTO_SAVE = "auto-save";
|
||||||
public const DEFAULT_WORLD_GENERATOR = "level-type";
|
public const DEFAULT_WORLD_GENERATOR = "level-type";
|
||||||
public const DEFAULT_WORLD_GENERATOR_SETTINGS = "generator-settings";
|
public const DEFAULT_WORLD_GENERATOR_SETTINGS = "generator-settings";
|
||||||
|
@ -30,6 +30,11 @@ namespace pocketmine;
|
|||||||
* Do not edit this file manually.
|
* Do not edit this file manually.
|
||||||
*/
|
*/
|
||||||
final class YmlServerProperties{
|
final class YmlServerProperties{
|
||||||
|
|
||||||
|
private function __construct(){
|
||||||
|
//NOOP
|
||||||
|
}
|
||||||
|
|
||||||
public const ALIASES = 'aliases';
|
public const ALIASES = 'aliases';
|
||||||
public const ANONYMOUS_STATISTICS = 'anonymous-statistics';
|
public const ANONYMOUS_STATISTICS = 'anonymous-statistics';
|
||||||
public const ANONYMOUS_STATISTICS_ENABLED = 'anonymous-statistics.enabled';
|
public const ANONYMOUS_STATISTICS_ENABLED = 'anonymous-statistics.enabled';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user