diff options
Diffstat (limited to 'src/main/java/me/Danker/handlers')
-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(); |