Package me.bimmr.bimmcore.files
Class FileManager
- java.lang.Object
-
- me.bimmr.bimmcore.files.FileManager
-
public class FileManager extends java.lang.Object
The Manager for the Config files
-
-
Constructor Summary
Constructors Constructor Description FileManager(org.bukkit.plugin.java.JavaPlugin plugin)
-
Method Summary
Modifier and Type Method Description boolean
fileExists(java.lang.String name)
Config
getConfig(java.lang.String name)
java.util.HashMap<java.lang.String,Config>
getConfigs()
org.bukkit.plugin.java.JavaPlugin
getPlugin()
boolean
isConfig(java.lang.String name)
void
loadAllConfigs()
void
loadAllConfigs(java.lang.String path)
void
reloadAll()
Config
reloadConfig(java.lang.String name)
void
removeFile(java.lang.String name)
Config
saveConfig(java.lang.String name)
void
setDefaultFileFromResources(java.lang.String file)
-
-
-
Method Detail
-
getPlugin
public org.bukkit.plugin.java.JavaPlugin getPlugin()
-
getConfig
public Config getConfig(java.lang.String name)
-
fileExists
public boolean fileExists(java.lang.String name)
-
removeFile
public void removeFile(java.lang.String name)
-
getConfigs
public java.util.HashMap<java.lang.String,Config> getConfigs()
-
isConfig
public boolean isConfig(java.lang.String name)
-
reloadAll
public void reloadAll()
-
reloadConfig
public Config reloadConfig(java.lang.String name)
-
saveConfig
public Config saveConfig(java.lang.String name)
-
loadAllConfigs
public void loadAllConfigs(java.lang.String path)
-
loadAllConfigs
public void loadAllConfigs()
-
setDefaultFileFromResources
public void setDefaultFileFromResources(java.lang.String file)
-
-