mirror of
https://github.com/itHotL/PlayerStats.git
synced 2025-02-02 23:31:21 +01:00
Updated config version for v1.6 (#86)
This commit is contained in:
parent
bc0918c4f6
commit
0356bc6df8
@ -20,7 +20,7 @@ public class ConfigHandler {
|
||||
|
||||
public ConfigHandler(Main p) {
|
||||
plugin = p;
|
||||
configVersion = 5;
|
||||
configVersion = 6;
|
||||
|
||||
saveDefaultConfig();
|
||||
config = YamlConfiguration.loadConfiguration(configFile);
|
||||
|
@ -26,7 +26,7 @@ public class ConfigUpdateHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/** Adjusts the value for "top-list" to migrate the config file from versions 1 or 2 to version 3.*/
|
||||
/** Adjusts the value for "top-list" to migrate the config file from versions 1 or 2 to version 3 and above.*/
|
||||
private void updateTopListDefault(YamlConfiguration configuration) {
|
||||
String oldTitle = configuration.getString("top-list-title");
|
||||
if (oldTitle != null && oldTitle.equalsIgnoreCase("Top [x]")) {
|
||||
@ -34,7 +34,7 @@ public class ConfigUpdateHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/** Adjusts some of the default colors to migrate from versions 2 or 3 to version 4.1.*/
|
||||
/** Adjusts some of the default colors to migrate from versions 2 or 3 to version 4 and above.*/
|
||||
private void updateDefaultColors(YamlConfiguration configuration) {
|
||||
updateColor(configuration, "top-list.title", "yellow", "#FFD52B");
|
||||
updateColor(configuration, "top-list.stat-names", "yellow", "#FFD52B");
|
||||
|
Loading…
Reference in New Issue
Block a user