mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Pretty print options for Config JSON
This commit is contained in:
parent
a964c0e3ec
commit
76fcad92b3
@ -126,7 +126,7 @@ class Config{
|
|||||||
$content = $this->writeProperties();
|
$content = $this->writeProperties();
|
||||||
break;
|
break;
|
||||||
case CONFIG_JSON:
|
case CONFIG_JSON:
|
||||||
$content = json_encode($this->config);
|
$content = json_encode($this->config, JSON_PRETTY_PRINT | JSON_BIGINT_AS_STRING);
|
||||||
break;
|
break;
|
||||||
case CONFIG_YAML:
|
case CONFIG_YAML:
|
||||||
$content = Spyc::YAMLDump($this->config);
|
$content = Spyc::YAMLDump($this->config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user