Пример #1
0
 public void CheckPauseMessage(TwitchMessage message)
 {
     if (message.Content.ToLower().Contains("!gm pause") && Plugin.commandsLeftForMessage > 0)
     {
         if (Plugin.charges >= Plugin.Config.pauseChargeCost)
         {
             Plugin.beepSound.Play();
             Plugin.twitchPowers.StartCoroutine(TwitchPowers.Pause());
             Plugin.twitchPowers.StartCoroutine(TwitchPowers.CoolDown(Plugin.Config.pauseGlobalCooldown, "Global", "Game Paused :)"));
             Plugin.charges -= Plugin.Config.pauseChargeCost;
             Plugin.commandsLeftForMessage = 0;
         }
     }
 }