Пример #1
0
  @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;
  }
Пример #2
0
  @Override
  protected boolean commonDisable() {
    if (dbHandler != null) dbHandler.closeConnection();

    return !dbHandler.hasConnection();
  }