Package com.bergerkiller.bukkit.common.config

Examples of com.bergerkiller.bukkit.common.config.ConfigurationNode.addHeader()


      defConfig.gameMode = Bukkit.getDefaultGameMode();
      defConfig.saveDefault(defaultProperties);
      ConfigurationNode defEnv = defaultProperties.getNode("normal");
      defEnv.set("gamemode", "NONE");
      defEnv.setHeader("\nAll settings applied to worlds with the normal environment");
      defEnv.addHeader("You can add all the same world settings here and they will override the main defaults");
      defEnv.addHeader("You can use multiple environments, of which nether, the_end and even nether_flat");
      defaultProperties.save();
    }

    // Worlds configuration
View Full Code Here


      defConfig.saveDefault(defaultProperties);
      ConfigurationNode defEnv = defaultProperties.getNode("normal");
      defEnv.set("gamemode", "NONE");
      defEnv.setHeader("\nAll settings applied to worlds with the normal environment");
      defEnv.addHeader("You can add all the same world settings here and they will override the main defaults");
      defEnv.addHeader("You can use multiple environments, of which nether, the_end and even nether_flat");
      defaultProperties.save();
    }

    // Worlds configuration
    worldConfigs.clear();
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.