Skip to content

ZorTik/ConfigurationLib

Repository files navigation

ConfigurationLib

Advanced configuration library with mapping for Bukkit!

Badge Badge

@AllArgsContructor
class Item {
  private String name;
  private String description;
}

SectionNode<?> node = ...;
node.set("items.item1", new User("Item 1", "The first item"));
Item item = node.getSection("items.item1").map(Item.class);

becomes

items:
  item1:
    name: Item 1
    description: The first item

More on wiki!

About

This library is designed to help you build Bukkit configurations quick and easy. It has bunch of good features that you don't want to miss. You can see some of them through official wiki on this repository.

Wiki

For fast intro, I recommend official wiki section on this repository. Click to open Wiki
Or you can see my examples.

Implementation

To add this library to your project, you can use one of these methods. I recommend shading the library using shadowJar to avoid version concurrency issues.

Implementation on Wiki

Attributions

Document icons created by vectorsmarket15 - Flaticon