示例#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();
  }