@Override protected boolean createManager() { dbHandler = new DatabaseHandler(NAME, new File(getDataFolder(), "sqlconfig.yml")); if (dbHandler == null || !dbHandler.hasConnection()) return false; messageManger = new MessageManager(); return true; }
@Override protected boolean commonDisable() { if (dbHandler != null) dbHandler.closeConnection(); return !dbHandler.hasConnection(); }