diff --git a/Configs/Config.cs b/Configs/Config.cs index 12623f8..80cfff5 100644 --- a/Configs/Config.cs +++ b/Configs/Config.cs @@ -102,5 +102,9 @@ namespace EasyTools.Configs /// ///////////////////////////////////////////////// [Description("开启硬币抽卡?")] public bool Coin { get; set; } = true; + + /// ///////////////////////////////////////////////// + [Description("开启回合结束友伤?")] + public bool EnableFriendFire { get; set; } = true; } } diff --git a/Events/CustomEventHandler.cs b/Events/CustomEventHandler.cs index a7ea44f..2a0865d 100644 --- a/Events/CustomEventHandler.cs +++ b/Events/CustomEventHandler.cs @@ -67,6 +67,12 @@ namespace EasyTools.Events { Timing.KillCoroutines(Badge_Coroutine); } + + if (Config.EnableFriendFire) + { + Server.FriendlyFire = true; + Server.SendBroadcast($"\n🎉 回合结束,友伤已开启~", 5); + } } public override void OnPlayerJoined(PlayerJoinedEventArgs ev)