public class LangFile
extends java.lang.Object
getInstance()
to access the file and it's
values.Modifier and Type | Method and Description |
---|---|
LangFile |
addEntry(java.lang.String pluginName,
java.lang.String entryName,
java.lang.String value)
Add a lang.yml entry.
|
java.lang.String |
getEntry(java.lang.String pluginName,
java.lang.String entryName)
Get an entry's value from the lang.yml file.
|
static LangFile |
getInstance() |
org.bukkit.configuration.file.YamlConfiguration |
getLang() |
LangFile |
reloadLang()
Reloads the Lang File, updating any changes.
|
LangFile |
saveLang()
Saves the Lang File.
|
LangFile |
setup()
This method is run when the plugin is enabled and when reloading.
|
public static LangFile getInstance()
public LangFile setup()
public LangFile addEntry(java.lang.String pluginName, java.lang.String entryName, java.lang.String value)
pluginName
- The name of your plugin. This is similar to the ID Name first
part for CustomItem
s. For example: "additons_api" or
"vanilla_additions".entryName
- The name of the entry.value
- The default value of the entry. This will not be overriden if
there is a value already in place in the file.public java.lang.String getEntry(java.lang.String pluginName, java.lang.String entryName)
pluginName
- The name of your plugin. This is similar to the ID Name first
part for CustomItem
s. For example: "additons_api" or
"vanilla_additions".entryName
- The name of the entry.public org.bukkit.configuration.file.YamlConfiguration getLang()
YamlConfiguration
of the lang.yml file.public LangFile saveLang()
public LangFile reloadLang()