Add shutDown method to TimersPlugin

Remove all TimerTimer infoboxes on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-01-19 19:39:43 -05:00
committed by Adam
parent d59324623a
commit 7c68ddcfa8
@@ -65,6 +65,12 @@ public class TimersPlugin extends Plugin
return configManager.getConfig(TimersConfig.class);
}
@Override
protected void shutDown() throws Exception
{
infoBoxManager.removeIf(t -> t instanceof TimerTimer);
}
@Subscribe
public void updateConfig(ConfigChanged event)
{