mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-02-17 20:31:34 +01:00
Added getter for newSettings field.
This commit is contained in:
parent
10fedfb66d
commit
c3e3bdf3a4
@ -109,7 +109,6 @@ public class AuthMe extends JavaPlugin {
|
|||||||
private Management management;
|
private Management management;
|
||||||
private CommandHandler commandHandler = null;
|
private CommandHandler commandHandler = null;
|
||||||
private PermissionsManager permsMan = null;
|
private PermissionsManager permsMan = null;
|
||||||
private Settings settings;
|
|
||||||
private NewSetting newSettings;
|
private NewSetting newSettings;
|
||||||
private Messages messages;
|
private Messages messages;
|
||||||
private JsonCache playerBackup;
|
private JsonCache playerBackup;
|
||||||
@ -192,6 +191,15 @@ public class AuthMe extends JavaPlugin {
|
|||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the plugin's NewSetting instance.
|
||||||
|
*
|
||||||
|
* @return NewSetting.
|
||||||
|
*/
|
||||||
|
public NewSetting getSettings() {
|
||||||
|
return newSettings;
|
||||||
|
}
|
||||||
|
|
||||||
// Get version and build number of the plugin
|
// Get version and build number of the plugin
|
||||||
private void setPluginInfos() {
|
private void setPluginInfos() {
|
||||||
String versionRaw = this.getDescription().getVersion();
|
String versionRaw = this.getDescription().getVersion();
|
||||||
@ -440,7 +448,7 @@ public class AuthMe extends JavaPlugin {
|
|||||||
*/
|
*/
|
||||||
private boolean loadSettings() {
|
private boolean loadSettings() {
|
||||||
try {
|
try {
|
||||||
settings = new Settings(this);
|
new Settings(this);
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ConsoleLogger.logException("Can't load the configuration file... Something went wrong. "
|
ConsoleLogger.logException("Can't load the configuration file... Something went wrong. "
|
||||||
|
Loading…
Reference in New Issue
Block a user