public IEnumerator ReleaseModule(string player, string userNickName)
 {
     if (!UserAccess.HasAccess(userNickName, AccessLevel.Mod, true))
     {
         yield return(new WaitForSeconds(TwitchPlaySettings.data.ClaimCooldownTime));
     }
     ClaimedList.Remove(player);
 }
 public void OnPass()
 {
     canvasGroupMultiDecker.alpha = 0.0f;
     Solved = true;
     if (playerName != null)
     {
         ClaimedList.Remove(playerName);
     }
     if (TakeInProgress != null)
     {
         StopCoroutine(TakeInProgress);
         TakeInProgress = null;
     }
 }
    public IEnumerator TakeModule(string userNickName, string targetModule)
    {
        if (takeModuleSound != null)
        {
            takeModuleSound.time = 0.0f;
            takeModuleSound.Play();
        }
        yield return(new WaitForSecondsRealtime(60.0f));

        SetBannerColor(unclaimedBackgroundColor);
        if (playerName != null)
        {
            ircConnection.SendMessage(TwitchPlaySettings.data.ModuleAbandoned, targetModule, playerName, headerText.text);
            ClaimedList.Remove(playerName);
            playerName     = null;
            TakeInProgress = null;
        }
    }