public class LapisCoreConfiguration extends Object
| Constructor and Description |
|---|
LapisCoreConfiguration(LapisCorePlugin core,
int configVersion,
int messagesVersion)
Register the configurations and generate them
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateConfigs()
Generates the default configs from the plugin jar file
Will not overwrite existing files, will only generate them if they don't exist
|
String |
getMessage(String key)
Get a message from the messages.yml, This method will colorize the file when it is loaded
|
org.bukkit.configuration.file.YamlConfiguration |
getMessages()
Get the messages.yml as a
YamlConfiguration |
void |
reloadMessages(File f)
Load the given file into memory as the messages.yml
|
public LapisCoreConfiguration(LapisCorePlugin core, int configVersion, int messagesVersion)
core - The LapisCorePlugin that the files should be loaded forconfigVersion - The current config version for the config.ymlmessagesVersion - The current config version for the messages.ymlpublic void generateConfigs()
public void reloadMessages(File f)
f - The messages.yml filepublic org.bukkit.configuration.file.YamlConfiguration getMessages()
YamlConfigurationCopyright © 2019. All rights reserved.