Use PluginManager#whichPlugin instead it.getPlugin