Package com.booksaw.betterTeams
Class ConfigManager
java.lang.Object
com.booksaw.betterTeams.ConfigManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigManager
(String resourceName, boolean updateChecks) ConfigManager
(String resourceName, String filePath) Used to load / create a config file where the resource name is different from the destination path -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.configuration.file.YamlConfiguration
void
save()
void
save
(boolean log) void
saveResource
(String resourcePath, String resultPath, boolean replace) void
void
updateFromDefaultSave
(boolean log)
-
Field Details
-
config
public final org.bukkit.configuration.file.YamlConfiguration config
-
-
Constructor Details
-
ConfigManager
-
ConfigManager
Used to load / create a config file where the resource name is different from the destination path- Parameters:
resourceName
- The name of the resource within the jar filefilePath
- The path to save the resource to
-
-
Method Details
-
save
public void save() -
save
public void save(boolean log) -
updateFromDefaultSave
public void updateFromDefaultSave() -
updateFromDefaultSave
public void updateFromDefaultSave(boolean log) -
saveResource
-
getConfig
public org.bukkit.configuration.file.YamlConfiguration getConfig() -
getResourceName
-
getFilePath
-