Package com.bergerkiller.bukkit.common.config

Examples of com.bergerkiller.bukkit.common.config.FileConfiguration.load()


    }
  }

  public static void init(String filename) {
    FileConfiguration config = new FileConfiguration(filename);
    config.load();
    for (String key : config.getKeys()) {
      String dur = config.get(key, String.class, null);
      if (dur != null) {
        TimeSign t = getTimer(key);
        t.duration = ParseUtil.parseTime(dur);
View Full Code Here


   * Loads all Train Properties and defaults from disk
   */
  public static void load() {
    loadDefaults();
    FileConfiguration config = new FileConfiguration(TrainCarts.plugin, propertiesFile);
    config.load();
    if (fixDeprecation(config)) {
      config.save();
    }
    for (ConfigurationNode node : config.getNodes()) {
      TrainProperties prop = new TrainProperties(node.getName());
View Full Code Here

    }

    // Worlds configuration
    worldConfigs.clear();
    FileConfiguration config = new FileConfiguration(MyWorlds.plugin, "worlds.yml");
    config.load();
    for (ConfigurationNode node : config.getNodes()) {
      String worldname = node.get("name", node.getName());
      if (WorldManager.worldExists(worldname)) {
        WorldConfig wc = create(worldname);
        wc.load(node);
View Full Code Here

    isSpoutPluginEnabled = CommonUtil.isPluginEnabled("Spout");
    isMultiverseEnabled = CommonUtil.isPluginEnabled(MULTIVERSE_NAME);

    // Continue loading the configuration(s)
    FileConfiguration config = new FileConfiguration(this);
    config.load();

    config.setHeader("This is the configuration of MyWorlds");
    config.addHeader("For more information, you can visit the following websites:");
    config.addHeader("http://dev.bukkit.org/server-mods/my-worlds/");
    config.addHeader("http://forums.bukkit.org/threads/myworlds.31718");
View Full Code Here

  }

  public static void load() {
    inventories.clear();
    FileConfiguration config = new FileConfiguration(MyWorlds.plugin, "inventories.yml");
    config.load();
    for (ConfigurationNode node : config.getNodes()) {
      String sharedWorld = node.get("folder", String.class, null);
      if (sharedWorld == null) {
        continue;
      }
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.