Add shutDown method to TimersPlugin
Remove all TimerTimer infoboxes on shutdown Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -65,6 +65,12 @@ public class TimersPlugin extends Plugin
|
|||||||
return configManager.getConfig(TimersConfig.class);
|
return configManager.getConfig(TimersConfig.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void shutDown() throws Exception
|
||||||
|
{
|
||||||
|
infoBoxManager.removeIf(t -> t instanceof TimerTimer);
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void updateConfig(ConfigChanged event)
|
public void updateConfig(ConfigChanged event)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user