Reorder updateConfig to match TimerConfig
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user