public void CheckHealthCommands(TwitchMessage message) { if (!Plugin.cooldowns.GetCooldown("Health")) { if (message.message.ToLower().Contains("!gm instafail")) { if (Plugin.trySuper && Plugin.charges >= ChatConfig.chargesForSuperCharge + ChatConfig.instaFailChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempInstaFail(Plugin.songAudio.clip.length)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(Plugin.songAudio.clip.length, "Health", "Super Insta Fail Active.")); Plugin.trySuper = false; Plugin.healthActivated = true; Plugin.charges -= ChatConfig.chargesForSuperCharge + ChatConfig.instaFailChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } else if (Plugin.charges >= ChatConfig.instaFailChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempInstaFail(ChatConfig.instaFailDuration)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(ChatConfig.instaFailCooldown, "Health", "Insta Fail Active.")); Plugin.healthActivated = true; Plugin.charges -= ChatConfig.instaFailChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } } if (message.message.ToLower().Contains("!gm invincible") && !Plugin.healthActivated && !Plugin.cooldowns.GetCooldown("Health")) { if (Plugin.trySuper && Plugin.charges >= ChatConfig.chargesForSuperCharge + ChatConfig.invincibleChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempInvincibility(Plugin.songAudio.clip.length)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(Plugin.songAudio.clip.length, "Health", "Super Invincibility Active.")); Plugin.trySuper = false; Plugin.charges -= ChatConfig.chargesForSuperCharge + ChatConfig.invincibleChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } else if (Plugin.charges >= ChatConfig.invincibleChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempInvincibility(ChatConfig.invincibleDuration)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(ChatConfig.invincibleCooldown, "Health", "Invincibility Active.")); Plugin.charges -= ChatConfig.invincibleChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } } if (message.message.ToLower().Contains("!gm poison")) { if (Plugin.trySuper && Plugin.charges >= ChatConfig.chargesForSuperCharge + ChatConfig.poisonChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempPoison(Plugin.songAudio.clip.length)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(Plugin.songAudio.clip.length, "Health", "Health Regen Super Disabled.")); Plugin.trySuper = false; Plugin.healthActivated = true; Plugin.charges -= ChatConfig.chargesForSuperCharge + ChatConfig.poisonChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } else if (Plugin.charges >= ChatConfig.poisonChargeCost) { // Plugin.beepSound.Play(); Plugin.twitchPowers.StartCoroutine(TwitchPowers.TempPoison(ChatConfig.poisonDuration)); Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(ChatConfig.poisonCooldown, "Health", "Health Regen Disabled.")); Plugin.healthActivated = true; Plugin.charges -= ChatConfig.poisonChargeCost; Plugin.commandsLeftForMessage -= 1; globalActive = true; } } } }