Package net.crystalyx.bukkit.simplyperms.io

Examples of net.crystalyx.bukkit.simplyperms.io.ConfigSQL.checkDatabase()


  @Override
  public void run() throws Exception {
      try {
        ConfigFile importFile = new ConfigFile(plugin);
        ConfigSQL importSQL = new ConfigSQL(plugin);
        if (!importSQL.checkDatabase()) {
          throw new Exception("Could not connect to database !");
        }
       
        for (String player : importSQL.getAllPlayers()) {
          for (String group : importSQL.getPlayerGroups(player)) {
View Full Code Here


  @Override
  public void run() throws Exception {
      try {
        ConfigFile importFile = new ConfigFile(plugin);
        ConfigSQL importSQL = new ConfigSQL(plugin);
        if (!importSQL.checkDatabase()) {
          throw new Exception("Could not connect to database !");
        }

        for (String player : importFile.getAllPlayers()) {
          for (String group : importFile.getPlayerGroups(player)) {
View Full Code Here

  private void initDatabase() {
    if (getConfig().getString("db/type") != null
        && !getConfig().getString("db/type").equals("file")) {
      ConfigSQL configsql = new ConfigSQL(this);
      if (configsql.checkDatabase()) {
        config = configsql;
      } else {
        debug("Fail to connect to database !");
        config = new ConfigFile(this);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.