Creating an addon

Main class

Your main class should extend DimensionsAddonarrow-up-right

circle-info

If you want to use the Dimensions eventsarrow-up-right then your class must also implement Listenerarrow-up-right

META-INF

When you are done coding, you have to let Dimensions know about the addon otherwise its not going to load it.

You need to create a few folders and files inside our src folder.

src
└───main
    └───java
        └───META-INF
            └───services

Inside the services folder you need to create a new file named:

me.xxastaspastaxx.dimensions.addons.DimensionsAddon

Finally, inside the file, enter the path to your main class as you would with plugin.yml

circle-info

This part is required by ServiceLoaderarrow-up-right in order to load the addons properly

Last updated