Package me.bimmr.bimmcore.files
Class Config
- java.lang.Object
-
- me.bimmr.bimmcore.files.Config
-
public class Config extends java.lang.Object
A Utilities class for managing a Config file
-
-
Constructor Summary
Constructors Constructor Description Config(FileManager fileManager, java.lang.String name)
-
Method Summary
Modifier and Type Method Description boolean
contains(java.lang.String path)
Config
copyDefaults(boolean force)
boolean
fileExists()
org.bukkit.configuration.file.YamlConfiguration
get()
java.lang.Object
get(java.lang.String key)
boolean
getBoolean(java.lang.String key)
int
getInt(java.lang.String key)
java.util.ArrayList<java.lang.String>
getKeys()
java.util.ArrayList<java.lang.String>
getKeys(java.lang.String path)
java.util.ArrayList<java.lang.String>
getKeys(java.lang.String path, boolean deep)
java.lang.String
getName()
java.lang.String
getString(java.lang.String key)
Config
reload()
void
removeFile()
Config
reset()
Config
save()
Config
saveDefaultConfig()
Config
saveResource(boolean replace)
Config
set(java.lang.String key, java.lang.Object value)
Config
setResourcePlugin(org.bukkit.plugin.Plugin plugin)
Config
setup()
-
-
-
Constructor Detail
-
Config
public Config(FileManager fileManager, java.lang.String name)
-
-
Method Detail
-
contains
public boolean contains(java.lang.String path)
-
copyDefaults
public Config copyDefaults(boolean force)
-
fileExists
public boolean fileExists()
-
removeFile
public void removeFile()
-
get
public org.bukkit.configuration.file.YamlConfiguration get()
-
get
public java.lang.Object get(java.lang.String key)
-
getInt
public int getInt(java.lang.String key)
-
getBoolean
public boolean getBoolean(java.lang.String key)
-
getString
public java.lang.String getString(java.lang.String key)
-
reload
public Config reload()
-
reset
public Config reset()
-
saveResource
public Config saveResource(boolean replace)
-
save
public Config save()
-
saveDefaultConfig
public Config saveDefaultConfig()
-
set
public Config set(java.lang.String key, java.lang.Object value)
-
setResourcePlugin
public Config setResourcePlugin(org.bukkit.plugin.Plugin plugin)
-
getName
public java.lang.String getName()
-
setup
public Config setup()
-
getKeys
public java.util.ArrayList<java.lang.String> getKeys(java.lang.String path, boolean deep)
-
getKeys
public java.util.ArrayList<java.lang.String> getKeys(java.lang.String path)
-
getKeys
public java.util.ArrayList<java.lang.String> getKeys()
-
-