mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
...
This commit is contained in:
parent
31d8cc1cb5
commit
2912e7ca29
@ -62,9 +62,34 @@ if($file === false){
|
|||||||
fwrite(STDERR, "Failed to open output file\n");
|
fwrite(STDERR, "Failed to open output file\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
fwrite($file, "<?php\n\n");
|
fwrite($file, "<?php\n");
|
||||||
|
fwrite($file, <<<'HEADER'
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
HEADER
|
||||||
|
);
|
||||||
fwrite($file, "declare(strict_types=1);\n\n");
|
fwrite($file, "declare(strict_types=1);\n\n");
|
||||||
fwrite($file, "namespace pocketmine;\n\n");
|
fwrite($file, "namespace pocketmine;\n\n");
|
||||||
|
|
||||||
fwrite($file, "final class YmlServerProperties{\n");
|
fwrite($file, "final class YmlServerProperties{\n");
|
||||||
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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user