Examples of addDefault()


Examples of org.bukkit.configuration.ConfigurationSection.addDefault()

  ConfigurationSection section = super.createSection(path);
  if (section != null && section.getParent() == this) {
   Configuration defaults = this.getDefaults();
   if (defaults != null) {
    for (String key : defaults.getKeys(true))
     section.addDefault(key, defaults.get(key));
   }
  }
  return section;
}
}
View Full Code Here

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

        FileConfiguration config = getConfig();
        config.set("CheckForUpdates", config.getBoolean("CheckForUpdates", true));
        config.set("NotifySilentChest", config.getBoolean("NotifySilentChest", true));
        config.set("NotifyAnyChest", config.getBoolean("NotifyAnyChest", true));
        config.set("ItemOpenInvItemID", config.getInt("ItemOpenInvItemID", 280));
        config.addDefault("ItemOpenInvItemID", 280);
        config.addDefault("CheckForUpdates", true);
        config.addDefault("NotifySilentChest", true);
        config.addDefault("NotifyAnyChest", true);
        config.options().copyDefaults(true);
        saveConfig();
View Full Code Here

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

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

        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

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

        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

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

        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

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

        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

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

       
        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

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

        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

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

        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
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.