JavaDocs: Link
First you'll want to add RandomUtils as a dependency
Replace <version>
with the version tag
Gradle Example:
repositories {
maven {
name = "DeltaPvP Repositories"
url = "https://repo.deltapvp.net/"
}
}
dependencies {
implementation 'net.deltapvp:RandomUtils:<version>'
}
Maven Example:
<!-- TODO -->
package com.example.testplugin;
import net.deltapvp.randomutils.RandomUtils;
import org.bukkit.plugin.java.JavaPlugin;
public class TestPlugin extends JavaPlugin {
private RandomUtils randomUtils = new RandomUtils();
@Override
public void onLoad() {
randomUtils.onLoad();
}
@Override
public void onEnable() {
randomUtils.onDisable();
}
@Override
public void onDisable() {
randomUtils.onDisable();
}
public RandomUtils getRandomUtils() {
return this.randomUtils;
}
}
RandomUtils is licensed under MIT