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-15 10:07:59 +01:00
committed by Adam
parent d59324623a
commit 7c68ddcfa8

View File

@@ -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)
{