Add shutDown method to HiscorePlugin
Remove navigation button from panel on shutdown Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -71,6 +71,12 @@ public class HiscorePlugin extends Plugin
|
|||||||
menuManager.addPlayerMenuItem(LOOKUP);
|
menuManager.addPlayerMenuItem(LOOKUP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void shutDown() throws Exception
|
||||||
|
{
|
||||||
|
ui.getPluginToolbar().removeNavigation(navButton);
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onLookupMenuClicked(PlayerMenuOptionClicked event)
|
public void onLookupMenuClicked(PlayerMenuOptionClicked event)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user