Disable when initializing database loads
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
package nl.interestingcorner;
|
package nl.interestingcorner;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
|
||||||
import org.bukkit.plugin.PluginManager;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import nl.interestingcorner.db.DatabaseManager;
|
import nl.interestingcorner.db.DatabaseManager;
|
||||||
@@ -17,7 +13,8 @@ public class App extends JavaPlugin {
|
|||||||
if (!DatabaseManager.INSTANCE.initialize(this))
|
if (!DatabaseManager.INSTANCE.initialize(this))
|
||||||
{
|
{
|
||||||
getLogger().severe("Could not initialize database. Exiting!");
|
getLogger().severe("Could not initialize database. Exiting!");
|
||||||
System.exit(1);
|
setEnabled(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user