Skip to content

Commit

Permalink
Update Voting.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirin3rd authored May 1, 2024
1 parent 850597a commit 1fb7c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/Voting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static IEnumerator<float> SendBroadcast(VotingEvent votingEvent, Player p
while (time != 0)
{
time--;
BroadcastMain.SendGlobalcast(new BroadcastItem { prefix = "投票", priority = (byte)BroadcastPriority.Higher, time = 1, text = $"{player.Nickname}: 发起<color=yellow>{votingEvent.VotingDes}</color>的投票,使用.v ty同意,.v fd反对(<color=green>{AcceptPlayer.Count}</color>|<color=red>{AgainstPlayer.Count}</color>)({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]" });
BroadcastMain.SendGlobalcast(new BroadcastItem { prefix = "<color=yellow>投票</color>", priority = (byte)BroadcastPriority.Higher, time = 1, text = $"{player.Nickname}: 发起<color=yellow>{votingEvent.VotingDes}</color>的投票,使用.v ty同意,.v fd反对(<color=green>{AcceptPlayer.Count}</color>|<color=red>{AgainstPlayer.Count}</color>)({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]" });
//PluginAPI.Core.Server.SendBroadcast($"<size=28>{player.Nickname}: 发起<color=yellow>{votingEvent.VotingDes}</color>的投票,使用.v ty同意,.v fd反对(<color=green>{AcceptPlayer.Count}</color>|<color=red>{AgainstPlayer.Count}</color>)({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]</size>", 1, Broadcast.BroadcastFlags.Normal, true);
yield return Timing.WaitForSeconds(1f);
}
Expand Down

0 comments on commit 1fb7c0a

Please sign in to comment.