βAPI
How to integrate your plugin with GSigns
Add GSigns to your plugin
Examples of use
// Returns whether the GSigns-API could be found
private boolean setupGSignsAPI() {
if(getServer().getPluginManager().getPlugin("GSigns") == null) {
return false;
}
RegisteredServiceProvider<GSignsAPI> rsp = getServer().getServicesManager().getRegistration(GSignsAPI.class);
if(rsp == null) {
return false;
}
gSignsAPI = rsp.getProvider(); // Save the instance of the public API
return gSignsAPI != null;
}Create a sign from a code
Create a sign from an Order object
Remove a sign
Last updated