mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-21 03:12:24 +02:00
Fix NPE from ConsoleLogger
if plugin could not load configuration.
This commit is contained in:
parent
408e8dd0dd
commit
e06c5e7309
@ -215,7 +215,7 @@ public class AuthMe extends JavaPlugin {
|
|||||||
// Load settings and custom configurations, if it fails, stop the server due to security reasons.
|
// Load settings and custom configurations, if it fails, stop the server due to security reasons.
|
||||||
newSettings = createNewSetting();
|
newSettings = createNewSetting();
|
||||||
if (newSettings == null) {
|
if (newSettings == null) {
|
||||||
ConsoleLogger.showError("Could not load configuration. Aborting.");
|
getLogger().warning("Could not load configuration. Aborting.");
|
||||||
getServer().shutdown();
|
getServer().shutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user