Query Minecraft Plugins?

En
- in Plugins
3

I'm currently programming a plugin for Minecraft, and wanted to ask if it is possible to retrieve the plugins in an If query, so whether I can see if a particular plugin is on the server.

Dr

(GetServer (). GetPluginManager (). GetPlugins)

You should, if you In the Main then run but your plugin as last load, so that the list is complete.

Di

Neither Spigot nor Bukkit has a class "Main", what do you mean?

Dr

It's about your own class or method "onEnable"

As you call your own class, it does not matter. The main thing is to extend JavaPlugin.

I always call it Main, because that's the first entry point of my plugin.