Skip to content

ReloadManager Support

Noah edited this page Sep 10, 2024 · 6 revisions

Step 1: Adding the Maven/Gradle Dependency

Using Maven

Inside of your Maven repositories add the following:

	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>

Then, inside of your Maven dependencies add the following:

	<dependency>
	    <groupId>com.github.amnoah</groupId>
	    <artifactId>betterreload</artifactId>
	    <version>Plugin-v1.4.0</version>
	    <scope>provided</scope>
	</dependency>

Using Gradle

Inside of your Gradle repositories add the following:

	maven { url 'https://jitpack.io' }

Then, inside of your Gradle dependencies add the following:

	implementation 'com.github.amnoah:betterreload:Plugin-v1.4.0'

Step 2: Add to Plugin.yml

Dependency

If your plugin relies on BetterReload being present, you should add BetterReload to your depend node.

Example:

depend:
  - BetterReload

Soft-Dependency

If you are only relying on BetterReload if it is present, you should add BetterReload to your softdepend note.

Example:

softdepend:
  - BetterReload

Step 3: Use the ReloadManager

Now you can use the ReloadManager! To learn more about its methods and its return values, please check out the source code here.

Clone this wiki locally