Ment to set as 0.5.4

This commit is contained in:
Sekwah 2020-06-18 03:40:10 +01:00
parent d2a362e5af
commit a4771aa86a
3 changed files with 8 additions and 5 deletions

View File

@ -13,11 +13,14 @@ public class ConfigHelper {
this.config = config;
}
/**
* Recursively for each time there is a future update
*/
public void update() {
String configVersion = config.getString("ConfigVersion");
// Added in 0.5.3 so update to 0.5.3
if(configVersion == null) {
config.set(ConfigHelper.CONFIG_VERSION, "0.5.3");
// Added in 0.5.4
if(configVersion == null || configVersion.equals("0.5.3")) {
config.set(ConfigHelper.CONFIG_VERSION, "0.5.4");
}
}
}

View File

@ -1,4 +1,4 @@
main: com.sekwah.advancedportals.bungee.AdvancedPortalsPlugin
name: AdvancedPortals
version: 0.5.3
version: 0.5.4
author: sekwah41

View File

@ -1,6 +1,6 @@
main: com.sekwah.advancedportals.bukkit.AdvancedPortalsPlugin
name: AdvancedPortals
version: 0.5.3
version: 0.5.4
author: sekwah41
description: An advanced portals plugin for bukkit.
api-version: 1.13