MCPcopy Create free account
hub / github.com/Teneted/Tenet / hasPlugin

Method hasPlugin

src/main/java/com/mohistmc/api/ServerAPI.java:32–34  ·  view source on GitHub ↗
(String pluginname)

Source from the content-addressed store, hash-verified

30 }
31
32 public static Boolean hasPlugin(String pluginname) {
33 return Bukkit.getPluginManager().getPlugin(pluginname) != null;
34 }
35
36 public static void registerBukkitEvents(Listener listener, Plugin plugin){
37 Bukkit.getPluginManager().registerEvents(listener, plugin);

Callers

nothing calls this directly

Calls 2

getPluginManagerMethod · 0.95
getPluginMethod · 0.65

Tested by

no test coverage detected