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