Package org.bukkit.configuration

Examples of org.bukkit.configuration.ConfigurationSection.addDefault()


  ConfigurationSection section = super.createSection(path);
  if (section != null && section.getParent() == this) {
   Configuration defaults = this.getDefaults();
   if (defaults != null) {
    for (String key : defaults.getKeys(true))
     section.addDefault(key, defaults.get(key));
   }
  }
  return section;
}
}
View Full Code Here


        section.addDefault("database", "Fe");

        ConfigurationSection tables = getSection(section, "tables");

        tables.addDefault("accounts", "fe_accounts");

        ConfigurationSection columns = getSection(section, "columns");

        ConfigurationSection columnsAccounts = getSection(columns, "accounts");
View Full Code Here

        ConfigurationSection columns = getSection(section, "columns");

        ConfigurationSection columnsAccounts = getSection(columns, "accounts");

        columnsAccounts.addDefault("username", "name");

        columnsAccounts.addDefault("money", "money");

        columnsAccounts.addDefault("uuid", "uuid");
    }
View Full Code Here

        ConfigurationSection columnsAccounts = getSection(columns, "accounts");

        columnsAccounts.addDefault("username", "name");

        columnsAccounts.addDefault("money", "money");

        columnsAccounts.addDefault("uuid", "uuid");
    }

    public String getName() {
View Full Code Here

        columnsAccounts.addDefault("username", "name");

        columnsAccounts.addDefault("money", "money");

        columnsAccounts.addDefault("uuid", "uuid");
    }

    public String getName() {
        return "MySQL";
    }
View Full Code Here

     
      // create items stacks
     
      //===========================================================================
      // set up the defaults if needed
      section.addDefault(tagIncludeRoads, includeRoads);
      section.addDefault(tagIncludeRoundabouts, includeRoundabouts);
      section.addDefault(tagIncludeSewers, includeSewers);
      section.addDefault(tagIncludeCisterns, includeCisterns);
      section.addDefault(tagIncludeBasements, includeBasements);
      section.addDefault(tagIncludeMines, includeMines);
View Full Code Here

      // create items stacks
     
      //===========================================================================
      // set up the defaults if needed
      section.addDefault(tagIncludeRoads, includeRoads);
      section.addDefault(tagIncludeRoundabouts, includeRoundabouts);
      section.addDefault(tagIncludeSewers, includeSewers);
      section.addDefault(tagIncludeCisterns, includeCisterns);
      section.addDefault(tagIncludeBasements, includeBasements);
      section.addDefault(tagIncludeMines, includeMines);
      section.addDefault(tagIncludeBunkers, includeBunkers);
View Full Code Here

     
      //===========================================================================
      // set up the defaults if needed
      section.addDefault(tagIncludeRoads, includeRoads);
      section.addDefault(tagIncludeRoundabouts, includeRoundabouts);
      section.addDefault(tagIncludeSewers, includeSewers);
      section.addDefault(tagIncludeCisterns, includeCisterns);
      section.addDefault(tagIncludeBasements, includeBasements);
      section.addDefault(tagIncludeMines, includeMines);
      section.addDefault(tagIncludeBunkers, includeBunkers);
      section.addDefault(tagIncludeBuildings, includeBuildings);
View Full Code Here

      //===========================================================================
      // set up the defaults if needed
      section.addDefault(tagIncludeRoads, includeRoads);
      section.addDefault(tagIncludeRoundabouts, includeRoundabouts);
      section.addDefault(tagIncludeSewers, includeSewers);
      section.addDefault(tagIncludeCisterns, includeCisterns);
      section.addDefault(tagIncludeBasements, includeBasements);
      section.addDefault(tagIncludeMines, includeMines);
      section.addDefault(tagIncludeBunkers, includeBunkers);
      section.addDefault(tagIncludeBuildings, includeBuildings);
      section.addDefault(tagIncludeHouses, includeHouses);
View Full Code Here

      // set up the defaults if needed
      section.addDefault(tagIncludeRoads, includeRoads);
      section.addDefault(tagIncludeRoundabouts, includeRoundabouts);
      section.addDefault(tagIncludeSewers, includeSewers);
      section.addDefault(tagIncludeCisterns, includeCisterns);
      section.addDefault(tagIncludeBasements, includeBasements);
      section.addDefault(tagIncludeMines, includeMines);
      section.addDefault(tagIncludeBunkers, includeBunkers);
      section.addDefault(tagIncludeBuildings, includeBuildings);
      section.addDefault(tagIncludeHouses, includeHouses);
      section.addDefault(tagIncludeFarms, includeFarms);
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.