Add shutDown to BossTimersPlugin

Remove all RespawnTimers on BossTimersPlugin shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-01-15 10:03:42 +01:00
committed by Adam
parent a1e5c13657
commit 19517856c5

View File

@@ -43,6 +43,12 @@ public class BossTimersPlugin extends Plugin
@Inject
InfoBoxManager infoBoxManager;
@Override
protected void shutDown() throws Exception
{
infoBoxManager.removeIf(t -> t instanceof RespawnTimer);
}
@Subscribe
public void onActorDeath(ActorDeath death)
{