public class MythicConfig extends Object implements GenericConfig, Cloneable
Constructor and Description |
---|
MythicConfig(String name,
File file) |
MythicConfig(String name,
io.lumine.utils.config.file.FileConfiguration fc) |
MythicConfig(String name,
File file,
io.lumine.utils.config.file.FileConfiguration fc) |
public MythicConfig(String name, io.lumine.utils.config.file.FileConfiguration fc)
public MythicConfig(String name, File file, io.lumine.utils.config.file.FileConfiguration fc)
public void setKey(String key)
public String getKey()
public io.lumine.utils.config.file.FileConfiguration getFileConfiguration()
public boolean isSet(String field)
public void load()
public void save()
public MythicConfig getNestedConfig(String field)
public Map<String,MythicConfig> getNestedConfigs(String key)
public String getString(String field)
getString
in interface GenericConfig
public String getString(String field, String def)
getString
in interface GenericConfig
public PlaceholderString getPlaceholderString(String field)
public PlaceholderString getPlaceholderString(String field, String def)
public boolean getBoolean(String field)
getBoolean
in interface GenericConfig
public boolean getBoolean(String field, boolean def)
getBoolean
in interface GenericConfig
public int getInteger(String field)
getInteger
in interface GenericConfig
public int getInteger(String field, int def)
getInteger
in interface GenericConfig
@Deprecated public int getInt(String field)
@Deprecated public int getInt(String field, int def)
public double getDouble(String field)
public double getDouble(String field, double def)
public List<PlaceholderString> getPlaceholderStringList(String field)
public boolean isConfigurationSection(String section)
public boolean isList(String section)
public PlaceholderInt getPlaceholderInt(String key, String def)
public PlaceholderInt getPlaceholderInt(String[] key, String def, String... args)
public PlaceholderDouble getPlaceholderDouble(String key, String def)
public PlaceholderDouble getPlaceholderDouble(String[] key, String def, String... args)
Copyright © 2020. All rights reserved.