diff --git a/src/main/java/world/bentobox/bentobox/api/configuration/Config.java b/src/main/java/world/bentobox/bentobox/api/configuration/Config.java index 85d514a92..ab27a83b1 100644 --- a/src/main/java/world/bentobox/bentobox/api/configuration/Config.java +++ b/src/main/java/world/bentobox/bentobox/api/configuration/Config.java @@ -24,12 +24,12 @@ public class Config { public Config(BentoBox plugin, Class type) { this.logger = plugin.getLogger(); - handler = new FlatFileDatabase().getHandler(type); + handler = new FlatFileDatabase().getConfig(type); } public Config(Addon addon, Class type) { this.logger = addon.getLogger(); - handler = new FlatFileDatabase().getHandler(type); + handler = new FlatFileDatabase().getConfig(type); } /** @@ -53,7 +53,6 @@ public class Config { * @return the object or null if it cannot be loaded */ public T loadConfigObject(String uniqueId) { - try { return handler.loadObject(uniqueId); } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException diff --git a/src/main/java/world/bentobox/bentobox/database/flatfile/ConfigHandler.java b/src/main/java/world/bentobox/bentobox/database/flatfile/ConfigHandler.java index df44857b9..74cc7d5a1 100644 --- a/src/main/java/world/bentobox/bentobox/database/flatfile/ConfigHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/flatfile/ConfigHandler.java @@ -7,7 +7,7 @@ import world.bentobox.bentobox.BentoBox; import world.bentobox.bentobox.database.DatabaseConnector; /** - * Class handles config settings saving and loading + * Handles config settings saving and loading. * * @author tastybento *