Package org.bukkit.configuration.file

Examples of org.bukkit.configuration.file.YamlConfiguration.addDefault()


       
        writer.addComment("broadcast-on-skill-up", "Do all players get a message when somone goes up a skill level?");
        config.addDefault("broadcast-on-skill-up", false);
       
        writer.addComment("broadcast-on-level-up", "Do all players get a message when somone goes up a level?");
        config.addDefault("broadcast-on-level-up", false);
       
        writer.addComment("max-jobs",
                "Maximum number of jobs a player can join.",
                "Use 0 for no maximum"
        );
View Full Code Here


       
        writer.addComment("max-jobs",
                "Maximum number of jobs a player can join.",
                "Use 0 for no maximum"
        );
        config.addDefault("max-jobs", 3);
       
        writer.addComment("hide-jobs-without-permission", "Hide jobs from player if they lack the permission to join the job");
        config.addDefault("hide-jobs-without-permission", false);
       
        writer.addComment("enable-pay-near-spawner", "option to allow payment to be made when killing mobs from a spawner");
View Full Code Here

                "Use 0 for no maximum"
        );
        config.addDefault("max-jobs", 3);
       
        writer.addComment("hide-jobs-without-permission", "Hide jobs from player if they lack the permission to join the job");
        config.addDefault("hide-jobs-without-permission", false);
       
        writer.addComment("enable-pay-near-spawner", "option to allow payment to be made when killing mobs from a spawner");
        config.addDefault("enable-pay-near-spawner", false);
       
        writer.addComment("enable-pay-creative", "option to allow payment to be made in creative mode");
View Full Code Here

       
        writer.addComment("hide-jobs-without-permission", "Hide jobs from player if they lack the permission to join the job");
        config.addDefault("hide-jobs-without-permission", false);
       
        writer.addComment("enable-pay-near-spawner", "option to allow payment to be made when killing mobs from a spawner");
        config.addDefault("enable-pay-near-spawner", false);
       
        writer.addComment("enable-pay-creative", "option to allow payment to be made in creative mode");
        config.addDefault("enable-pay-creative", false);
       
        writer.addComment("add-xp-player", "Adds the Jobs xp recieved to the player's Minecraft XP bar");
View Full Code Here

       
        writer.addComment("enable-pay-near-spawner", "option to allow payment to be made when killing mobs from a spawner");
        config.addDefault("enable-pay-near-spawner", false);
       
        writer.addComment("enable-pay-creative", "option to allow payment to be made in creative mode");
        config.addDefault("enable-pay-creative", false);
       
        writer.addComment("add-xp-player", "Adds the Jobs xp recieved to the player's Minecraft XP bar");
        config.addDefault("add-xp-player", false);
       
        writer.addComment("modify-chat", "Modifys chat to add chat titles.  If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.");
View Full Code Here

       
        writer.addComment("enable-pay-creative", "option to allow payment to be made in creative mode");
        config.addDefault("enable-pay-creative", false);
       
        writer.addComment("add-xp-player", "Adds the Jobs xp recieved to the player's Minecraft XP bar");
        config.addDefault("add-xp-player", false);
       
        writer.addComment("modify-chat", "Modifys chat to add chat titles.  If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.");
        config.addDefault("modify-chat", true);
       
        writer.addComment("economy-batch-delay", "Changes how often, in seconds, players are paid out.  Default is 5 seconds.",
View Full Code Here

       
        writer.addComment("add-xp-player", "Adds the Jobs xp recieved to the player's Minecraft XP bar");
        config.addDefault("add-xp-player", false);
       
        writer.addComment("modify-chat", "Modifys chat to add chat titles.  If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.");
        config.addDefault("modify-chat", true);
       
        writer.addComment("economy-batch-delay", "Changes how often, in seconds, players are paid out.  Default is 5 seconds.",
                "Setting this too low may cause tick lag.  Increase this to improve economy performance (at the cost of delays in payment)");
        config.addDefault("economy-batch-delay", 5);
       
View Full Code Here

        writer.addComment("modify-chat", "Modifys chat to add chat titles.  If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.");
        config.addDefault("modify-chat", true);
       
        writer.addComment("economy-batch-delay", "Changes how often, in seconds, players are paid out.  Default is 5 seconds.",
                "Setting this too low may cause tick lag.  Increase this to improve economy performance (at the cost of delays in payment)");
        config.addDefault("economy-batch-delay", 5);
       
        writer.addComment("economy-async""Enable async economy calls.",
                "Only enable if your economy plugin is thread safe, use with EXTREME caution.");
        config.addDefault("economy-async", false);
       
View Full Code Here

                "Setting this too low may cause tick lag.  Increase this to improve economy performance (at the cost of delays in payment)");
        config.addDefault("economy-batch-delay", 5);
       
        writer.addComment("economy-async""Enable async economy calls.",
                "Only enable if your economy plugin is thread safe, use with EXTREME caution.");
        config.addDefault("economy-async", false);
       
        String storageMethod = config.getString("storage-method");
        if(storageMethod.equalsIgnoreCase("mysql")) {
            String legacyUrl = config.getString("mysql-url");
            if (legacyUrl != null) {
View Full Code Here

    YamlConfiguration metaYaml = new YamlConfiguration();
    metaYaml.options().header("CityWorld/WorldEdit schematic configuration");
    metaYaml.options().copyDefaults(true);
   
    // add the defaults
    metaYaml.addDefault(tagGroundLevelY, groundLevelY);
    metaYaml.addDefault(tagFlipableX, flipableX);
    metaYaml.addDefault(tagFlipableZ, flipableZ);
//    metaYaml.addDefault(tagScalableX, ScalableX);
//    metaYaml.addDefault(tagScalableZ, ScalableZ);
//    metaYaml.addDefault(tagScalableY, ScalableY);
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.