Compare commits

...

2 Commits

Author SHA1 Message Date
5f2c2cacbe Update ConvertT2ClibConfig.java 2024-07-14 12:13:33 +02:00
6ea2335bc2 Update T2C_LibConfig.java 2024-07-14 12:13:29 +02:00
2 changed files with 7 additions and 6 deletions

View File

@ -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,8 +29,8 @@ 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) {

View File

@ -133,6 +133,7 @@ public class T2C_LibConfig {
public static void set(boolean isReload) {
long long_ = System.currentTimeMillis();
ConvertT2ClibConfig.convert();
T2C_ConfigWriter.createConfig(T2C_Util.getPrefix(), new File(T2C_Main.getPath(), "config.yml"), VALUES.values(), isReload, T2C_Util.getConfigLogo());
}