-
Notifications
You must be signed in to change notification settings - Fork 63
How to use API
Apehum edited this page Jul 31, 2022
·
5 revisions
<project>
<repositories>
<repository>
<id>plasmo-repo</id>
<url>https://repo.plo.su</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>su.plo.voice</groupId>
<artifactId>spigot</artifactId>
<version>1.0.11</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
repositories {
maven { url 'https://repo.plo.su/' }
}
dependencies {
compileOnly 'su.plo.voice:spigot:1.0.11'
}
repositories {
maven {
url = uri("https://repo.plo.su")
}
}
dependencies {
compileOnly("su.plo.voice:spigot:1.0.11")
}
RegisteredServiceProvider<PlasmoVoiceAPI> provider = Bukkit.getServicesManager().getRegistration(PlasmoVoiceAPI.class);
if (provider != null) {
PlasmoVoiceAPI api = provider.getProvider();
}
PlasmoVoiceAPI api = PlasmoVoice.getInstance();
See this: PlasmoVoiceAPI