mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 18:17:34 +01:00
Add a security in case config fail to load
This commit is contained in:
parent
7f844ec946
commit
5585db221f
@ -31,6 +31,7 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import com.earth2me.essentials.Essentials;
|
import com.earth2me.essentials.Essentials;
|
||||||
import com.maxmind.geoip.LookupService;
|
import com.maxmind.geoip.LookupService;
|
||||||
import com.onarandombox.MultiverseCore.MultiverseCore;
|
import com.onarandombox.MultiverseCore.MultiverseCore;
|
||||||
@ -118,8 +119,15 @@ public class AuthMe extends JavaPlugin {
|
|||||||
|
|
||||||
authmeLogger.setParent(this.getLogger());
|
authmeLogger.setParent(this.getLogger());
|
||||||
|
|
||||||
|
try {
|
||||||
settings = new Settings(this);
|
settings = new Settings(this);
|
||||||
settings.loadConfigOptions();
|
settings.loadConfigOptions();
|
||||||
|
} catch (Exception e)
|
||||||
|
{
|
||||||
|
ConsoleLogger.showError("Can't load config file... Something goes wrong, for prevent security issues, server will shutdown");
|
||||||
|
this.getServer().shutdown();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
citizens = new CitizensCommunicator(this);
|
citizens = new CitizensCommunicator(this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user