// Token: 0x060027DA RID: 10202 RVA: 0x000F19BC File Offset: 0x000EFDBC private void Update() { if (ChatManager.isVoting && (Time.realtimeSinceStartup - ChatManager.lastVote > ChatManager.voteDuration || ChatManager.voteYes >= ChatManager.votesNeeded || ChatManager.voteNo > ChatManager.votesPossible - ChatManager.votesNeeded)) { ChatManager.isVoting = false; if (ChatManager.voteYes >= ChatManager.votesNeeded) { if (ChatManager.voteOrigin != null) { ChatManager.voteOrigin.nextVote = Time.realtimeSinceStartup + ChatManager.votePassCooldown; } CommandWindow.Log(Provider.localization.format("Vote_Pass")); ChatManager.manager.channel.send("tellVoteStop", ESteamCall.CLIENTS, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] { 3 }); SteamBlacklist.ban(ChatManager.voteTarget, ChatManager.voteIP, CSteamID.Nil, "you were vote kicked", SteamBlacklist.TEMPORARY); } else { if (ChatManager.voteOrigin != null) { ChatManager.voteOrigin.nextVote = Time.realtimeSinceStartup + ChatManager.voteFailCooldown; } CommandWindow.Log(Provider.localization.format("Vote_Fail")); ChatManager.manager.channel.send("tellVoteStop", ESteamCall.CLIENTS, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] { 4 }); } } if (ChatManager.needsVote && !ChatManager.hasVote) { if (Input.GetKeyDown(KeyCode.F1)) { ChatManager.needsVote = false; ChatManager.hasVote = true; ChatManager.sendVote(true); } else if (Input.GetKeyDown(KeyCode.F2)) { ChatManager.needsVote = false; ChatManager.hasVote = true; ChatManager.sendVote(false); } } }