π§ Installing
1. SETTING AS A DEPENDENCY
Make shure to add "velocityutils" as depend or soft-depend
2. ADDING THE DEPENDENCY
On gradle
Add the jitpack repository and then the plugin dependency
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.Rexi666:VelocityUtils:VelocityUtils:3.3.1'
}On Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.Rexi666</groupId>
<artifactId>VelocityUtils</artifactId>
<version>main-SNAPSHOT</version>
</dependency>3. Implementation
import org.rexi.velocityUtils.VelocityUtils;
import org.rexi.velocityUtils.api.VelocityUtilsAPI;
import java.util.UUID;
public class YourPlugin {
public void example(UUID player) {
VelocityUtilsAPI api = VelocityUtilsProvider.get();
api.sendAlert("Β‘Hello!");
}
}Last updated