Sueta

Spigot Configuration API

1.0-SNAPSHOT

A lightweight, easy to use, spigot configuration api.

·Plugin

This is a Spigot Configuration API made by me, it's extremely useful & easy to use.

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();

private Config motdConfig;

In your onEnable() initialize the config by doing

motdConfig = new Config("motd.yml", this);

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().

Similar projects

Plugin →