Package com.bergerkiller.bukkit.common.config

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


    // 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");

    config.setHeader("teleportInterval", "\nThe interval in miliseconds a player has to wait before being teleported again");
    teleportInterval = config.get("teleportInterval", 2000);
View Full Code Here


    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");

    config.setHeader("teleportInterval", "\nThe interval in miliseconds a player has to wait before being teleported again");
    teleportInterval = config.get("teleportInterval", 2000);
View Full Code Here

    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");

    config.setHeader("teleportInterval", "\nThe interval in miliseconds a player has to wait before being teleported again");
    teleportInterval = config.get("teleportInterval", 2000);

    config.setHeader("useWaterTeleport", "\nWhether water stream portals are allowed");
View Full Code Here

    config.setHeader("onlyObsidianPortals", "\nWhether only portal blocks surrounded by obsidian can teleport players");
    onlyObsidianPortals = config.get("onlyObsidianPortals", false);

    config.setHeader("calculateWorldSize", "\nWhether the world info command will calculate the world size on disk");
    config.addHeader("calculateWorldSize", "If this process takes too long, disable it to prevent possible server freezes");
    calculateWorldSize = config.get("calculateWorldSize", true);

    config.setHeader("mainWorld", "\nThe main world in which new players spawn");
    config.addHeader("mainWorld", "If left empty, the main world defined in the server.properties is used");
    mainWorld = config.get("mainWorld", "");
View Full Code Here

    config.setHeader("calculateWorldSize", "\nWhether the world info command will calculate the world size on disk");
    config.addHeader("calculateWorldSize", "If this process takes too long, disable it to prevent possible server freezes");
    calculateWorldSize = config.get("calculateWorldSize", true);

    config.setHeader("mainWorld", "\nThe main world in which new players spawn");
    config.addHeader("mainWorld", "If left empty, the main world defined in the server.properties is used");
    mainWorld = config.get("mainWorld", "");

    config.setHeader("forceMainWorldSpawn", "\nWhether all players respawn on the main world at all times");
    forceMainWorldSpawn = config.get("forceMainWorldSpawn", false);
View Full Code Here

    config.setHeader("maxPortalSignDistance", "\nThe maximum distance to look for a portal sign when entering a portal");
    maxPortalSignDistance = config.get("maxPortalSignDistance", 5.0);

    config.setHeader("enablePortals", "\nTurns portal usage on or off on a global level");
    config.addHeader("enablePortals", "When disabled, portal teleportation will not be handled by MyWorlds whatsoever");
    enablePortals = config.get("enablePortals", true);

    config.setHeader("allowPersonalPortals", "\nWhether individually placed nether/end portals create their own destination portal");
    config.addHeader("allowPersonalPortals", "False: Players are teleported to the spawn point of the world");
    config.addHeader("allowPersonalPortals", "True: Players are teleported to their own portal on the other world");
View Full Code Here

    config.setHeader("enablePortals", "\nTurns portal usage on or off on a global level");
    config.addHeader("enablePortals", "When disabled, portal teleportation will not be handled by MyWorlds whatsoever");
    enablePortals = config.get("enablePortals", true);

    config.setHeader("allowPersonalPortals", "\nWhether individually placed nether/end portals create their own destination portal");
    config.addHeader("allowPersonalPortals", "False: Players are teleported to the spawn point of the world");
    config.addHeader("allowPersonalPortals", "True: Players are teleported to their own portal on the other world");
    allowPersonalPortals = config.get("allowPersonalPortals", true);

    config.setHeader("ignoreEggSpawns", "\nWhether egg-spawned entities are allowed to spawn, even if worlds have these entities blacklisted");
    ignoreEggSpawns = config.get("ignoreEggSpawns", true);
View Full Code Here

    config.addHeader("enablePortals", "When disabled, portal teleportation will not be handled by MyWorlds whatsoever");
    enablePortals = config.get("enablePortals", true);

    config.setHeader("allowPersonalPortals", "\nWhether individually placed nether/end portals create their own destination portal");
    config.addHeader("allowPersonalPortals", "False: Players are teleported to the spawn point of the world");
    config.addHeader("allowPersonalPortals", "True: Players are teleported to their own portal on the other world");
    allowPersonalPortals = config.get("allowPersonalPortals", true);

    config.setHeader("ignoreEggSpawns", "\nWhether egg-spawned entities are allowed to spawn, even if worlds have these entities blacklisted");
    ignoreEggSpawns = config.get("ignoreEggSpawns", true);
View Full Code Here

    config.setHeader("overridePortalPhysics", "\nWhether Vanilla portal physics are overrided to allow them to be built/stacked");
    overridePortalPhysics = config.get("overridePortalPhysics", true);

    config.setHeader("importFromMultiVerse", "\nWhether to automatically import the world configuration of MultiVerse for new (unknown) worlds");
    config.addHeader("importFromMultiverse", "Note that default world properties are then no longer applied, as MultiVerse takes that over");
    config.addHeader("importFromMultiverse", "This setting is only active if MultiVerse-Core is installed.");
    importFromMultiVerse = config.get("importFromMultiVerse", true);

    config.save();
View Full Code Here

    config.setHeader("overridePortalPhysics", "\nWhether Vanilla portal physics are overrided to allow them to be built/stacked");
    overridePortalPhysics = config.get("overridePortalPhysics", true);

    config.setHeader("importFromMultiVerse", "\nWhether to automatically import the world configuration of MultiVerse for new (unknown) worlds");
    config.addHeader("importFromMultiverse", "Note that default world properties are then no longer applied, as MultiVerse takes that over");
    config.addHeader("importFromMultiverse", "This setting is only active if MultiVerse-Core is installed.");
    importFromMultiVerse = config.get("importFromMultiVerse", true);

    config.save();

    // World configurations have to be loaded first
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.