From c3e3bdf3a478c168bd55557a505e977d3eef1db1 Mon Sep 17 00:00:00 2001 From: DNx5 Date: Thu, 18 Feb 2016 11:25:31 +0700 Subject: [PATCH] Added getter for newSettings field. --- src/main/java/fr/xephi/authme/AuthMe.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 872f3cbce..f2595f37b 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -109,7 +109,6 @@ public class AuthMe extends JavaPlugin { private Management management; private CommandHandler commandHandler = null; private PermissionsManager permsMan = null; - private Settings settings; private NewSetting newSettings; private Messages messages; private JsonCache playerBackup; @@ -192,6 +191,15 @@ public class AuthMe extends JavaPlugin { return messages; } + /** + * Get the plugin's NewSetting instance. + * + * @return NewSetting. + */ + public NewSetting getSettings() { + return newSettings; + } + // Get version and build number of the plugin private void setPluginInfos() { String versionRaw = this.getDescription().getVersion(); @@ -440,7 +448,7 @@ public class AuthMe extends JavaPlugin { */ private boolean loadSettings() { try { - settings = new Settings(this); + new Settings(this); return true; } catch (Exception e) { ConsoleLogger.logException("Can't load the configuration file... Something went wrong. "