-
Notifications
You must be signed in to change notification settings - Fork 0
Config
The Config is a class, that can create config files. There are three constructures:
public Config(String startPath, String path, String filename)
public Config(String path, String filename)
public Config(String filename)
The first constructor is the most important. It can create configurations in any folder in the server folder. The second and third construct is for the configurations used by the API for configuration. If you search a Config for your Module use the ModuleConfig
You can get the normal YamlConfiguration with the Getter-Method cfg(). To save it you can use the save() Method. You can set and get ArrayLists with the Methods saveArrayList(ArrayList list, String root) and getArrayList(String root).
There is a getter( getOption(String path, Object start) ), that: If the path dont exists
- It creates the path and set Object start to it
- It returns the Object start When the path exists
- It gets you the value from the path
The ModuleConfig is a Config that differs only with the composition. The only new thing about ModuleConfig is that you can specify your module and the config is created in the module folder.
| Servers | Bukkit | Spigot | Paper | Pupur |
|---|---|---|---|---|
| 1.16 | ✔️ | ✔️ | ✔️ | ✔️ |
| 1.17 | ✔️ | ✔️ | ✔️ | ✔️ |
| 1.18 | ✔️ | ✔️ | ✔️ | ✔️ |
| Proxies | BungeeCord | Waterfall | Velocity |
|---|---|---|---|
| 1.16 | ✔️ | ✔️ | ✔️ |
| 1.17 | ✔️ | ✔️ | ✔️ |
| 1.18 | ✔️ | ✔️ | ✔️ |
- Setup Location
- module.yml
- Module Class
- ModuleDescriptionFile
- Config
- ModuleConfig
- ModuleCommandManager
- ModuleListenerManager
- PermissionsManager
- LanguagesManager
- LPlayer
- CraftingRecipes
- Inventorys
- ItemBuilders
- Other Utils
- LPlayer