public class ConfigManager.ConfigCreator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addCommend(java.lang.String command)
Add a commend line to the properties file
|
void |
addEmptyLine()
Add a empty line to the properties file
|
void |
addSetting(java.lang.String key,
java.lang.String value)
Add a setting to the properties file
|
void |
CreateConfig()
Create a new properties file.
|
java.util.ArrayList<java.lang.String> |
getKeys()
Get a List of the existing keys
|
java.lang.String |
getSetting(java.lang.String key)
Get the value of the setting
|
void |
setSetting(java.lang.String key,
java.lang.Object value)
Change a setting in the game and in the properties file
|
public void CreateConfig() throws java.io.IOException
java.io.IOException
public void setSetting(java.lang.String key, java.lang.Object value)
key
- The key of the existing setting as Stringvalue
- The new value of the settingpublic java.lang.String getSetting(java.lang.String key)
key
- The key of the setting as Stringpublic java.util.ArrayList<java.lang.String> getKeys()
public void addCommend(java.lang.String command)
command
- The command as Stringpublic void addSetting(java.lang.String key, java.lang.String value)
key
- The key of the setting as Stringvalue
- The value of the setting as Stringpublic void addEmptyLine()