Package org.bukkit.configuration.file

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


        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

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

        pm.registerEvents(new OpenInvPlayerListener(), this);
View Full Code Here

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

        pm.registerEvents(new OpenInvPlayerListener(), this);
        pm.registerEvents(new OpenInvEntityListener(), this);
View Full Code Here

        // load configuration
        FileConfiguration config = getConfig();

        // set defaults
        config.options().copyDefaults(true);
        config.addDefault("runtime.ruby-version", "1.8");
        config.addDefault("runtime.jruby-path", getDataFolder() + File.separator + "jruby.jar");
        config.addDefault("settings.plugins-path", getDataFolder().getPath());
        config.addDefault("settings.debug", true);

        // Ruby version
View Full Code Here

        FileConfiguration config = getConfig();

        // set defaults
        config.options().copyDefaults(true);
        config.addDefault("runtime.ruby-version", "1.8");
        config.addDefault("runtime.jruby-path", getDataFolder() + File.separator + "jruby.jar");
        config.addDefault("settings.plugins-path", getDataFolder().getPath());
        config.addDefault("settings.debug", true);

        // Ruby version
        rubyVersion = config.getString("runtime.ruby-version");
View Full Code Here

        // set defaults
        config.options().copyDefaults(true);
        config.addDefault("runtime.ruby-version", "1.8");
        config.addDefault("runtime.jruby-path", getDataFolder() + File.separator + "jruby.jar");
        config.addDefault("settings.plugins-path", getDataFolder().getPath());
        config.addDefault("settings.debug", true);

        // Ruby version
        rubyVersion = config.getString("runtime.ruby-version");
        if (!rubyVersion.equals("1.8") && !rubyVersion.equals("1.9")) {
View Full Code Here

        // set defaults
        config.options().copyDefaults(true);
        config.addDefault("runtime.ruby-version", "1.8");
        config.addDefault("runtime.jruby-path", getDataFolder() + File.separator + "jruby.jar");
        config.addDefault("settings.plugins-path", getDataFolder().getPath());
        config.addDefault("settings.debug", true);

        // Ruby version
        rubyVersion = config.getString("runtime.ruby-version");
        if (!rubyVersion.equals("1.8") && !rubyVersion.equals("1.9")) {
            log(SEVERE, "Invalid Ruby version \"" + rubyVersion + "\". Possible values are \"1.8\" and \"1.9\".");
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.