detect

private open fun detect(): PluginBridge.Plugins

Bukkit's own PluginManager covers both plugin families: on Paper the legacy SimplePluginManager forwards getPlugins() to the Paper implementation, whose list holds legacy and Paper plugins alike. null when the game loader has no Bukkit, i.e. not a hybrid server.