Reorder updateConfig to match TimerConfig

This commit is contained in:
Hydrox6
2018-06-02 23:39:07 +01:00
parent 1c76e38d4d
commit 503d17e59d

View File

@@ -122,51 +122,9 @@ public class TimersPlugin extends Plugin
@Subscribe @Subscribe
public void updateConfig(ConfigChanged event) public void updateConfig(ConfigChanged event)
{ {
if (!config.showCharge()) if (!config.showAntidotePlus())
{ {
removeGameTimer(CHARGE); removeGameTimer(ANTIDOTEPLUS);
}
if (!config.showStamina())
{
removeGameTimer(STAMINA);
}
if (!config.showAntiFire())
{
removeGameTimer(ANTIFIRE);
}
if (!config.showExAntiFire())
{
removeGameTimer(EXANTIFIRE);
}
if (!config.showOverload())
{
removeGameTimer(OVERLOAD);
removeGameTimer(OVERLOAD_RAID);
}
if (!config.showCannon())
{
removeGameTimer(CANNON);
}
if (!config.showMagicImbue())
{
removeGameTimer(MAGICIMBUE);
}
if (!config.showTeleblock())
{
removeGameTimer(FULLTB);
removeGameTimer(HALFTB);
}
if (!config.showSuperAntiFire())
{
removeGameTimer(SUPERANTIFIRE);
} }
if (!config.showAntidotePlusPlus()) if (!config.showAntidotePlusPlus())
@@ -174,9 +132,9 @@ public class TimersPlugin extends Plugin
removeGameTimer(ANTIDOTEPLUSPLUS); removeGameTimer(ANTIDOTEPLUSPLUS);
} }
if (!config.showAntidotePlus()) if (!config.showSanfew())
{ {
removeGameTimer(ANTIDOTEPLUS); removeGameTimer(SANFEW);
} }
if (!config.showAntiVenom()) if (!config.showAntiVenom())
@@ -189,9 +147,55 @@ public class TimersPlugin extends Plugin
removeGameTimer(ANTIVENOMPLUS); removeGameTimer(ANTIVENOMPLUS);
} }
if (!config.showSanfew()) if (!config.showAntiFire())
{ {
removeGameTimer(SANFEW); removeGameTimer(ANTIFIRE);
}
if (!config.showExAntiFire())
{
removeGameTimer(EXANTIFIRE);
}
if (!config.showSuperAntiFire())
{
removeGameTimer(SUPERANTIFIRE);
}
if (!config.showStamina())
{
removeGameTimer(STAMINA);
}
if (!config.showOverload())
{
removeGameTimer(OVERLOAD);
removeGameTimer(OVERLOAD_RAID);
}
if (!config.showPrayerEnhance())
{
removeGameTimer(PRAYER_ENHANCE);
}
if (!config.showCannon())
{
removeGameTimer(CANNON);
}
if (!config.showMagicImbue())
{
removeGameTimer(MAGICIMBUE);
}
if (!config.showCharge())
{
removeGameTimer(CHARGE);
}
if (!config.showImbuedHeart())
{
removeGameTimer(IMBUEDHEART);
} }
if (!config.showVengeance()) if (!config.showVengeance())
@@ -204,9 +208,10 @@ public class TimersPlugin extends Plugin
removeGameTimer(VENGEANCEOTHER); removeGameTimer(VENGEANCEOTHER);
} }
if (!config.showImbuedHeart()) if (!config.showTeleblock())
{ {
removeGameTimer(IMBUEDHEART); removeGameTimer(FULLTB);
removeGameTimer(HALFTB);
} }
if (!config.showFreezes()) if (!config.showFreezes())
@@ -222,11 +227,6 @@ public class TimersPlugin extends Plugin
removeGameTimer(ICEBLITZ); removeGameTimer(ICEBLITZ);
removeGameTimer(ICEBARRAGE); removeGameTimer(ICEBARRAGE);
} }
if (!config.showPrayerEnhance())
{
removeGameTimer(PRAYER_ENHANCE);
}
} }
@Subscribe @Subscribe