diff --git a/StayClose/StayClose.cs b/StayClose/StayClose.cs index 0f9eaab..332cf12 100644 --- a/StayClose/StayClose.cs +++ b/StayClose/StayClose.cs @@ -142,6 +142,13 @@ internal static void TimerElapsed(object? sender, ElapsedEventArgs args, string { foreach (TSPlayer player in TShock.Players) { + if (config.enableTeams) + { + if (player.Team != TSPlayer.FindByNameOrID(playerName)[0].Team) + { + continue; + } + } if (player != null && player.RealPlayer && !player.Dead) { player.KillPlayer();