An example plugin is available in bukkit-example. For more real-life usage examples see okaeri-minecraft repository.
Add repository to the repositories
section:
<repository>
<id>okaeri-repo</id>
<url>https://storehouse.okaeri.eu/repository/maven-public/</url>
</repository>
Add dependency to the dependencies
section:
<dependency>
<groupId>eu.okaeri</groupId>
<artifactId>okaeri-configs-yaml-bukkit</artifactId>
<version>5.0.6</version>
</dependency>
Additionally if you want to serialize/deserialize supported bukkit objects:
<dependency>
<groupId>eu.okaeri</groupId>
<artifactId>okaeri-configs-serdes-bukkit</artifactId>
<version>5.0.6</version>
</dependency>
Add repository to the repositories
section:
maven { url "https://storehouse.okaeri.eu/repository/maven-public/" }
Add dependency to the maven
section:
implementation 'eu.okaeri:okaeri-configs-yaml-bukkit:5.0.6'
- Comments do not work on the elements of Collection or Map.
Please use YamlBukkitConfigurer as your configurer:
new YamlBukkitConfigurer()
For serializers/deserializers/transformers use:
new SerdesBukkit()