Fix NPE from ConsoleLogger

if plugin could not load configuration.
This commit is contained in:
DNx 2016-06-02 05:23:16 +07:00
parent 408e8dd0dd
commit e06c5e7309

View File

@ -215,7 +215,7 @@ public class AuthMe extends JavaPlugin {
// Load settings and custom configurations, if it fails, stop the server due to security reasons.
newSettings = createNewSetting();
if (newSettings == null) {
ConsoleLogger.showError("Could not load configuration. Aborting.");
getLogger().warning("Could not load configuration. Aborting.");
getServer().shutdown();
return;
}