Using another plugin only when it is installed

Hi together,

i would like to use another plugin, if the user installed it. If not, my plugin just should just have less functionality but throw no exceptions. If i add a <depends>-Tag to the plugin.xml File, my plugin would only work if the other plugin is installed, right? So what can i do to achieve this behaviour?

Best regards,

Moritz

3 comments

Is it possible to get version/other information of another plugin in this way?

0

Just use PluginManager.getPlugin("<<pluginId>>").getVersion()

0

Please sign in to leave a comment.