Skip to content

Open source API

Paolo edited this page Feb 15, 2016 · 9 revisions

ReporterGUI is plugin for Bukkit / Spigot, compatible with version 1.7 / 1.8. You can use this API for your personal plugin, using public classes provided by this page.

First of all, you have to import classes:
import it.itpao25.NMSReport.api.addSegnalazioneAPI;

then:

public static boolean isEnable() {
	Plugin plugin = Bukkit.getPluginManager().getPlugin("ReporterGUI");
	if(plugin != null && plugin.isEnabled()) {
		return true;
	}
	System.out.print("The plugin ReporterGUI must be installed on the server!");
	return false;
}

Method:

addSegnalazioneAPI(Player p, String reason);

This page is in beta test