Skip to content
LPDMinecraft edited this page Dec 29, 2021 · 5 revisions

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

ModuleConfig

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.

Supports

Servers Bukkit Spigot Paper Pupur
1.16 ✔️ ✔️ ✔️ ✔️
1.17 ✔️ ✔️ ✔️ ✔️
1.18 ✔️ ✔️ ✔️ ✔️
Proxies BungeeCord Waterfall Velocity
1.16 ✔️ ✔️ ✔️
1.17 ✔️ ✔️ ✔️
1.18 ✔️ ✔️ ✔️

Help map

Commands

Improved Bukkit classes/utils

  • LPlayer
  • CraftingRecipes
  • Inventorys
  • ItemBuilders
  • Other Utils

Improved BungeeCord classes/utils

  • LPlayer

Update Map

Version 1.0.0

Version 1.0.1

Version 1.0.2

Version 1.0.3

Version 1.0.4

Version 1.0.5

Version 1.0.6

Version 1.0.7

Version 1.0.8

Clone this wiki locally