<project>
<repositories>
<repository>
<id>plasmo-repo</id>
<url>https://repo.plo.su</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>su.plo</groupId>
<artifactId>emotes</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
repositories {
maven { url 'https://repo.plo.su/' }
}
dependencies {
compileOnly 'su.plo:emotes:1.0.0'
}
repositories {
maven {
url = uri("https://repo.plo.su")
}
}
dependencies {
compileOnly("su.plo:emotes:1.0.0")
}
RegisteredServiceProvider<EmotesAPI> provider = Bukkit.getServicesManager().getRegistration(EmotesAPI.class);
if(provider != null) {
EmotesAPI api = provider.getProvider();
}
See this: EmotesAPI