WolfyUtilities | Core plugin API [1.13.2 - 1.15.x] 1.5.6.3

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
    • 1.15
    Source Code:
    https://github.com/WolfyScript/WolfyUtilities
    Title.png
    Minecraft 1.13.2 - 1.15.x

    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
    Getting an 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 = WolfyUtilities.getOrCreateAPI(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 Updates

  1. Changed File
  2. Important Bug Fix | v1.5.6.3
  3. Changes for CustomItem placement | v1.5.6.2

Recent Reviews

  1. EchocallingEarth
    EchocallingEarth
    5/5,
    Version: 1.5.6.1
    Fantastic, the plugin works great and if any issues arise the Dev is on the spot-fixing them. The Discord is watched closely by the Dev and though you may not get a reply at that moment(I mean people do have to sleep, even awesome Devs) You will get one and 99% of the time I would wager it is the reply you need with the fix coming shortly. The overall rating is a 10 out of 10 extremely satisfied.
  2. CustomWorldYT
    CustomWorldYT
    5/5,
    Version: 0.1.10.0
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥