Fix adding of raid timer multiple times in Raids

Fix adding timer multiple times when you change option while inside
raids.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-08-09 16:48:40 +02:00
parent 1bd82ad260
commit 699f4927c3

View File

@@ -321,7 +321,10 @@ public class RaidsPlugin extends Plugin
if (inRaidChambers && config.raidsTimer())
{
infoBoxManager.addInfoBox(timer);
if (!infoBoxManager.getInfoBoxes().contains(timer))
{
infoBoxManager.addInfoBox(timer);
}
}
else
{