Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Griseo-bh3rd committed Sep 2, 2023
1 parent e338153 commit deb62c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/MainClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PluginConfig : IConfig
public int Slots { get; set; } = 5;
[Description("预留位踢出理由")]
public string ReserveSlotKickReason { get; set; } = "服务器已满人";
[Description("允许投票提前开启系统核")]
[Description("允许投票提前开启系统核(Disabled)")]
public bool AllowVoteSystemWarhead { get; set; } = true;
[Description("投票时长")]
public int VotingTime { get; set; } = 90;
Expand Down
2 changes: 1 addition & 1 deletion util/SystemWarhead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void Register()
{
Exiled.Events.Handlers.Server.EndingRound -= OnRoundEnded;
}
if (UtilPlugin.Instance.Config.AllowVoteSystemWarhead)
if (true)
{
Voting.Register(new VotingEvent { Action = () => Detonate(false), Name = "systemwarhead", Description = "启动系统核[55%]", VotingDes = "系统核弹", Votingpercent = 0.55, AcceptBroadcast = "系统核弹已经启动", CheckBeforeVoting = () => { return true; }, OnVotingEnded = () => { return ((double)Voting.AcceptPlayer.Count + (double)(Server.PlayerCount - Voting.AcceptPlayer.Count - Voting.AgainstPlayer.Count)*0.3) / Server.PlayerCount >= 0.55; } });
}
Expand Down

0 comments on commit deb62c4

Please sign in to comment.