Creating an addon

Main class

Your main class should extend DimensionsAddon

If you want to use the Dimensions events then your class must also implement Listener

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

This part is required by ServiceLoader in order to load the addons properly

Last updated