Spigot Configuration API 1.0-SNAPSHOT

A lightweight, easy to use, spigot configuration api.

  1. Gleemingknight
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    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();
    Code (Text):
    private Config motdConfig;
    In your onEnable() initialize the config by doing
    Code (Text):
    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().
    xmattiaHD and ArshQuick like this.