Update ConvertT2ClibConfig.java
This commit is contained in:
parent
6ea2335bc2
commit
5f2c2cacbe
@ -8,7 +8,7 @@ import java.io.File;
|
||||
|
||||
public class ConvertT2ClibConfig {
|
||||
|
||||
private static YamlConfiguration yamlConfiguration;
|
||||
private static YamlConfiguration yamlConfiguration;
|
||||
|
||||
|
||||
public static void convert() {
|
||||
@ -18,7 +18,7 @@ public class ConvertT2ClibConfig {
|
||||
yamlConfiguration = YamlConfiguration.loadConfiguration(config);
|
||||
|
||||
|
||||
if (yamlConfiguration.contains("plugin.updateCheck.onJoin")) return;
|
||||
if (yamlConfiguration.contains("proxy.serverUUID")) return;
|
||||
|
||||
set("Plugin.UpdateCheck.OnJoin", T2C_LibConfig.VALUES.updateCheckOnJoin);
|
||||
set("Plugin.UpdateCheck.TimeInterval", T2C_LibConfig.VALUES.updateCheckTimeInterval);
|
||||
@ -29,12 +29,12 @@ public class ConvertT2ClibConfig {
|
||||
set("Plugin.Not recommended to disable.developerTool", T2C_LibConfig.VALUES.developerTool);
|
||||
set("BungeeCord.Enable", T2C_LibConfig.VALUES.proxy);
|
||||
set("Player.Inventories.CloseByServerStop", T2C_LibConfig.VALUES.inventoriesCloseByServerStop);
|
||||
set("Command.PermToggle.PermissionSetCommand", T2C_LibConfig.VALUES.updateCheckOnJoin);
|
||||
|
||||
set("Command.PermToggle.PermissionSetCommand", T2C_LibConfig.VALUES.commandPermToggleCommand);
|
||||
config.delete();
|
||||
}
|
||||
|
||||
private static void set(String path, T2C_ConfigItem item){
|
||||
if (yamlConfiguration.contains(path)){
|
||||
private static void set(String path, T2C_ConfigItem item) {
|
||||
if (yamlConfiguration.contains(path)) {
|
||||
item.setValue(yamlConfiguration.get(path));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user