diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-12-02 08:55:01 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-12-02 08:55:01 -0500 |
commit | d3b451bfe6a9703036cfb49236ca85ab28431836 (patch) | |
tree | 876b3973c92b7eceed342b332f9c3cb9cb487bd4 /src/main/java/me | |
parent | db9ad0bcd3f31ee7ad29dcba99469872c5143dbe (diff) | |
download | SkyblockMod-d3b451bfe6a9703036cfb49236ca85ab28431836.tar.gz SkyblockMod-d3b451bfe6a9703036cfb49236ca85ab28431836.tar.bz2 SkyblockMod-d3b451bfe6a9703036cfb49236ca85ab28431836.zip |
Fix config not saving anything
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/Danker/handlers/ConfigHandler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/handlers/ConfigHandler.java b/src/main/java/me/Danker/handlers/ConfigHandler.java index b8fb927..73ff7e3 100644 --- a/src/main/java/me/Danker/handlers/ConfigHandler.java +++ b/src/main/java/me/Danker/handlers/ConfigHandler.java @@ -89,6 +89,7 @@ public class ConfigHandler { config = new Configuration(new File(file)); try { config.load(); + int set = config.get(category, key, value).getInt(); config.getCategory(category).get(key).set(value); } catch (Exception ex) { ex.printStackTrace(); @@ -101,6 +102,7 @@ public class ConfigHandler { config = new Configuration(new File(file)); try { config.load(); + double set = config.get(category, key, value).getDouble(); config.getCategory(category).get(key).set(value); } catch (Exception ex) { ex.printStackTrace(); @@ -113,6 +115,7 @@ public class ConfigHandler { config = new Configuration(new File(file)); try { config.load(); + String set = config.get(category, key, value).getString(); config.getCategory(category).get(key).set(value); } catch (Exception ex) { ex.printStackTrace(); @@ -125,6 +128,7 @@ public class ConfigHandler { config = new Configuration(new File(file)); try { config.load(); + boolean set = config.get(category, key, value).getBoolean(); config.getCategory(category).get(key).set(value); } catch (Exception ex) { ex.printStackTrace(); |