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, saveToStringload, load, load, save, saveaddDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultscontains, 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, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, 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, setpublic 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.