Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Griseo-bh3rd committed Aug 22, 2023
1 parent 4e9521b commit 9c805cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/Voting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public static bool CancalVote(Player player)
{
Timing.KillCoroutines(votingcoroutine);
PluginAPI.Core.Server.SendBroadcast($"<color=red>「投票失败」</color>管理员 {player.Nickname} 强制废除了此次投票", 5, Broadcast.BroadcastFlags.Normal, true);
Timing.CallDelayed(30, () => Canvote = true);
VotedPlayer = new ConcurrentBag<string>();
Timing.CallDelayed(90f, () => Canvote = true);
voting = false;
return true;
}
Expand All @@ -70,7 +71,7 @@ public static void OnVotingEnded(VotingEvent votingEvent)
PluginAPI.Core.Server.SendBroadcast($"<color=red>「投票失败」</color>没有足够玩家投票", 5, Broadcast.BroadcastFlags.Normal, true);
}
VotedPlayer = new ConcurrentBag<string>();
Timing.CallDelayed(30f, () => Canvote = true);
Timing.CallDelayed(90f, () => Canvote = true);
}
public static void Callvote(string name, Player player)
{
Expand Down

0 comments on commit 9c805cf

Please sign in to comment.