Add custom methods

Add custom methods to be used in the item actions

MyPluinAddon (In this example) is a class that has all the methods we want to implement

try { // Basically the same as the helper class from before.
    addonProvider.addAddon(new PluginAddon("YourPluginName") // Plugin name most be written correctly, you can check it using /plugins in your server.
            .addon(new Addon<>("itemsCoreCategoryName",
                    (Player player) ->
                            new MyPluginAddon() // Return your new class with all the methods here.
                    )
            )
            );
} catch (Exception ignore) {
}

Last updated