public String dateFormat() { return plugin.getConfig().getString("date_format"); } }
public boolean cloudAllowUnverifiedExpansions() { return plugin.getConfig().getBoolean("cloud_allow_unverified_expansions"); }
public String booleanTrue() { return plugin.getConfig().getString("boolean.true"); }
public boolean isCloudEnabled() { return plugin.getConfig().getBoolean("cloud_enabled"); }
public String booleanFalse() { return plugin.getConfig().getString("boolean.false"); }
public boolean checkUpdates() { return plugin.getConfig().getBoolean("check_updates"); }
public void setCloudEnabled(boolean b) { plugin.getConfig().set("cloud_enabled", b); plugin.reloadConfig(); }
public ConfigurationSection getConfigSection(String path) { return getPlaceholderAPI().getConfig() .getConfigurationSection("expansions." + getIdentifier() + "." + path); }
public int getInt(String path, int def) { return getPlaceholderAPI().getConfig() .getInt("expansions." + getIdentifier() + "." + path, def); }
public String getString(String path, String def) { return getPlaceholderAPI().getConfig() .getString("expansions." + getIdentifier() + "." + path, def); }
public long getLong(String path, long def) { return getPlaceholderAPI().getConfig() .getLong("expansions." + getIdentifier() + "." + path, def); }
public Object get(String path, Object def) { return getPlaceholderAPI().getConfig().get("expansions." + getIdentifier() + "." + path, def); }
public double getDouble(String path, double def) { return getPlaceholderAPI().getConfig() .getDouble("expansions." + getIdentifier() + "." + path, def); }
public List<String> getStringList(String path) { return getPlaceholderAPI().getConfig() .getStringList("expansions." + getIdentifier() + "." + path); }
public boolean configurationContains(String path) { return getPlaceholderAPI().getConfig().contains("expansions." + getIdentifier() + "." + path); }
public ConfigurationSection getConfigSection() { return getPlaceholderAPI().getConfig().getConfigurationSection("expansions." + getIdentifier()); }
Map<String, Object> defaults = ((Configurable) expansion).getDefaults(); String pre = "expansions." + expansion.getIdentifier() + "."; FileConfiguration cfg = plugin.getConfig(); boolean save = false; for (Entry<String, Object> entries : defaults.entrySet()) {