public class CommentedConfiguration
extends org.bukkit.configuration.file.YamlConfiguration
Constructor and Description |
---|
CommentedConfiguration(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(java.lang.String path,
java.lang.String... commentLines)
Adds a comment just before the specified path.
|
boolean |
load() |
boolean |
save() |
loadConfiguration, loadConfiguration, loadFromString, options, saveToString
load, load, load, save, save
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set
public boolean load()
public boolean save()
public void addComment(java.lang.String path, java.lang.String... commentLines)
path
- Configuration path to add comment.commentLines
- Comments to add. One String per line.