public abstract class TacoLanguage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private org.bukkit.configuration.file.YamlConfiguration |
config |
private java.io.File |
file |
| Constructor and Description |
|---|
TacoLanguage(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultValue(java.lang.String path,
java.lang.Object value)
Adds a default value to the language file if and only if the path does not exist.
|
java.lang.String |
getString(java.lang.String path)
Gets a boolean from the language file.
|
void |
save()
Saves the language file.
|
abstract void |
setDefaults()
Sets the default values.
|
private org.bukkit.configuration.file.YamlConfiguration config
private java.io.File file
public abstract void setDefaults()
public void addDefaultValue(java.lang.String path,
java.lang.Object value)
path - - The path in which the value is setvalue - - The value to setpublic void save()
public java.lang.String getString(java.lang.String path)
path - - The path which the boolean is taken from