mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-07 04:38:03 +02: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());
|
||||||
|
|
||||||
settings = new Settings(this);
|
try {
|
||||||
settings.loadConfigOptions();
|
settings = new Settings(this);
|
||||||
|
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