This is a Spigot Configuration API made by me, it's extremely useful & easy to use.
- Tested Minecraft Versions:
- 1.7
- 1.8
- 1.9
- 1.10
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- Source Code:
- http://github.com/GleemingKnight/spigot-config-api
How to use
Copy and paste the code at the bottom of the page, into a new class called something like 'Config'. Then in your main spigot class that extends JavaPlugin, create a variable like this above your onEnable();
In your onEnable() initialize the config by doingCode (Text):private Config motdConfig;
After adding those methods into your code, you need to make the actual 'config.yml' or whatever your configuration is called in your resources. You can then access the configuration file by using motdConfig.getConfig().Code (Text):motdConfig = new Config("motd.yml", this);

Spigot Configuration API 1.0-SNAPSHOT
A lightweight, easy to use, spigot configuration api.