diff --git a/util/Voting.cs b/util/Voting.cs index 731ad91..84c6986 100644 --- a/util/Voting.cs +++ b/util/Voting.cs @@ -135,7 +135,7 @@ public static IEnumerator SendBroadcast(VotingEvent votingEvent, Player p while (time != 0) { time--; - BroadcastMain.SendGlobalcast(new BroadcastItem { prefix = "投票", priority = (byte)BroadcastPriority.Higher, time = 1, text = $"{player.Nickname}: 发起{votingEvent.VotingDes}的投票,使用.v ty同意,.v fd反对({AcceptPlayer.Count}|{AgainstPlayer.Count})({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]" }); + BroadcastMain.SendGlobalcast(new BroadcastItem { prefix = "投票", priority = (byte)BroadcastPriority.Higher, time = 1, text = $"{player.Nickname}: 发起{votingEvent.VotingDes}的投票,使用.v ty同意,.v fd反对({AcceptPlayer.Count}|{AgainstPlayer.Count})({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]" }); //PluginAPI.Core.Server.SendBroadcast($"{player.Nickname}: 发起{votingEvent.VotingDes}的投票,使用.v ty同意,.v fd反对({AcceptPlayer.Count}|{AgainstPlayer.Count})({(int)((double)AcceptPlayer.Count / (Server.PlayerCount) * 100)}%)[{time}]", 1, Broadcast.BroadcastFlags.Normal, true); yield return Timing.WaitForSeconds(1f); }