Skip to content

Commit c6d801d

Browse files
authored
Update README.md
1 parent c349333 commit c6d801d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ Advanced configuration library with mapping for Bukkit!<br>
77
![Badge](https://img.shields.io/jitpack/version/com.github.ZorTik/ConfigurationLib?style=for-the-badge) ![Badge](https://img.shields.io/github/license/ZorTik/ConfigurationLib?style=for-the-badge)
88
</div>
99

10+
```java
11+
@AllArgsContructor
12+
class Item {
13+
private String name;
14+
private String description;
15+
}
16+
17+
SectionNode<?> node = ...;
18+
node.set("items.item1", new User("Item 1", "The first item"));
19+
```
20+
becomes
21+
```yaml
22+
items:
23+
item1:
24+
name: Item 1
25+
description: The first item
26+
```
27+
1028
## About
1129
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.
1230

0 commit comments

Comments
 (0)