Package org.bukkit.configuration.file

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


       
        writer.options().header(header.toString());
       
        writer.addComment("locale-language", "Default language.  Use your languages two digit ISO 639-1 code, and optionally followed by the ISO-3166-1 country code.",
                "Example: en, en_US");
        config.addDefault("locale-language", Locale.getDefault().getLanguage());

        writer.addComment("storage-method", "storage method, can be MySQL, sqlite");
        config.addDefault("storage-method", "sqlite");
       
        writer.addComment("mysql-username", "Requires Mysql.");
View Full Code Here


        writer.addComment("locale-language", "Default language.  Use your languages two digit ISO 639-1 code, and optionally followed by the ISO-3166-1 country code.",
                "Example: en, en_US");
        config.addDefault("locale-language", Locale.getDefault().getLanguage());

        writer.addComment("storage-method", "storage method, can be MySQL, sqlite");
        config.addDefault("storage-method", "sqlite");
       
        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
View Full Code Here

        writer.addComment("storage-method", "storage method, can be MySQL, sqlite");
        config.addDefault("storage-method", "sqlite");
       
        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
View Full Code Here

        writer.addComment("storage-method", "storage method, can be MySQL, sqlite");
        config.addDefault("storage-method", "sqlite");
       
        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
        writer.addComment("save-period""How often in minutes you want it to save.  This must be a non-zero number");
View Full Code Here

        config.addDefault("storage-method", "sqlite");
       
        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
        writer.addComment("save-period""How often in minutes you want it to save.  This must be a non-zero number");
        config.addDefault("save-period", 10);
View Full Code Here

       
        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
        writer.addComment("save-period""How often in minutes you want it to save.  This must be a non-zero number");
        config.addDefault("save-period", 10);
       
View Full Code Here

        writer.addComment("mysql-username", "Requires Mysql.");
        config.addDefault("mysql-username", "root");       
        config.addDefault("mysql-password", "");  
        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
        writer.addComment("save-period""How often in minutes you want it to save.  This must be a non-zero number");
        config.addDefault("save-period", 10);
       
        writer.addComment("save-on-disconnect",
View Full Code Here

        config.addDefault("mysql-hostname", "localhost:3306");
        config.addDefault("mysql-database", "minecraft");
        config.addDefault("mysql-table-prefix", "jobs_");
       
        writer.addComment("save-period""How often in minutes you want it to save.  This must be a non-zero number");
        config.addDefault("save-period", 10);
       
        writer.addComment("save-on-disconnect",
                "Should player data be saved on disconnect?",
                "Player data is always periodically auto-saved and autosaved during a clean shutdown.",
                "Only enable this if you have a multi-server setup, or have a really good reason for enabling this.",
View Full Code Here

        writer.addComment("save-on-disconnect",
                "Should player data be saved on disconnect?",
                "Player data is always periodically auto-saved and autosaved during a clean shutdown.",
                "Only enable this if you have a multi-server setup, or have a really good reason for enabling this.",
                "Turning this on will decrease database performance.");
        config.addDefault("save-on-disconnect", false);
       
        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?");
View Full Code Here

                "Only enable this if you have a multi-server setup, or have a really good reason for enabling this.",
                "Turning this on will decrease database performance.");
        config.addDefault("save-on-disconnect", false);
       
        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",
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.