Update config style
This commit is contained in:
@@ -41,7 +41,7 @@ public final class PrefixConfig {
|
|||||||
CONFIG_FILE = new File(Config.CONFIGPATH, "prefix.yml");
|
CONFIG_FILE = new File(Config.CONFIGPATH, "prefix.yml");
|
||||||
configLoader = YamlConfigurationLoader.builder()
|
configLoader = YamlConfigurationLoader.builder()
|
||||||
.file(CONFIG_FILE)
|
.file(CONFIG_FILE)
|
||||||
.nodeStyle(NodeStyle.FLOW)
|
.nodeStyle(NodeStyle.BLOCK)
|
||||||
.build();
|
.build();
|
||||||
if (!CONFIG_FILE.getParentFile().exists()) {
|
if (!CONFIG_FILE.getParentFile().exists()) {
|
||||||
if(!CONFIG_FILE.getParentFile().mkdirs()) {
|
if(!CONFIG_FILE.getParentFile().mkdirs()) {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public final class RegexConfig {
|
|||||||
CONFIG_FILE = new File(Config.CONFIGPATH, "filters.yml");
|
CONFIG_FILE = new File(Config.CONFIGPATH, "filters.yml");
|
||||||
configLoader = YamlConfigurationLoader.builder()
|
configLoader = YamlConfigurationLoader.builder()
|
||||||
.file(CONFIG_FILE)
|
.file(CONFIG_FILE)
|
||||||
.nodeStyle(NodeStyle.FLOW)
|
.nodeStyle(NodeStyle.BLOCK)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (!CONFIG_FILE.getParentFile().exists()) {
|
if (!CONFIG_FILE.getParentFile().exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user