WolfyUtilities | Core plugin API [1.13.2 - 1.14.4] 1.4.0.2

Utils and APIs: Config, Language and Inventory API, Protection Utils: WorldGuard, LWC, PlotSquared

  1. WolfyScript
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    Source Code:
    https://github.com/WolfyScript/WolfyUtilities
    Title.png
    Minecraft 1.13.2 - 1.14

    Java 8 required

    With WolfyUtilities you can easily create your in-game GUIs

    You can easily create configs and create a Language system for your plugins.

    It also includes Util-classes for WorldGuard, PlotSquared,
    LWC (More info see below)

    If you are using 1.13
    Spigot 1.13.0 is not supported!

    You need at least Spigot 1.13.2 in order to run this plugin!

    Usage

    The source code will be avaiable soon!
    For now there is only this documentation.
    Getting a instance of the API is very easy. e.g. in onEnable().
    And you need to set the chat and console prefix of your plugin.

    Code (Java):
    public void onEnable() {
        api = new WolfyUtilities(this);
        api.setCHAT_PREFIX("§3[§7AST§3] §7");
        api.setCONSOLE_PREFIX("[AST] ");
    }
    After that you can get all the APIs:
    Code (Java):

    public void onEnable() {
        ConfigAPI configAPI = api.getConfigAPI();
        LanguageAPI languageAPI = api.getLanguageAPI();
        InventoryAPI inventoryAPI = api.getInventoryAPI();
    }
    There are different constructures for creating a config:
    Be aware you import the Config class from my API!

    Code (Java):

    public void onEnable() {
        ConfigAPI configAPI = api.getConfigAPI();
        //This will create a config that has a default file in the package "me/wolfyscript/armorstandtool/configs" called "config.yml"
        //It will be saved in the Plugin Folder
        //The config can now be called in the code via the name "config"
        Config config = new Config(configAPI, "me/wolfyscript/armorstandtool/configs", getDataFolder().getPath(), "config");
        //Now it must be registered
        configAPI.registerConfig(config);
    }
    Now when you registered the config it can be called via the name you gave it e.g. "config":
    Code (Java):

    //Get the config by name
    configAPI.getConfig("config");
     //The defaults are loaded whenever the file doesn't exist already
    //But it can be called whenever you want
    configAPI.getConfig("config").loadDefaults();

    //Get values from config
    configAPI.getConfig("config").getString("language");
     

    Getting values from the Config:
    Code (Java):

    //There are couple of methods for Boolean, Int, Double, etc.
    //e.g. to get a String value
    String lang = configAPI.getConfig("config").getString("language");
     
    More documentation on languages and inventories will follow!!
    Ethon6 likes this.

Recent Reviews

  1. CustomWorldYT
    CustomWorldYT
    5/5,
    Version: 0.1.10.0
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥