diff --git a/Synapse/Api/Extensions.cs b/Synapse/Api/Extensions.cs index 5b6f5d8..58c4bbf 100644 --- a/Synapse/Api/Extensions.cs +++ b/Synapse/Api/Extensions.cs @@ -61,6 +61,8 @@ public static void RaMessage(this CommandSender sender, string message, bool suc public static IEnumerable GetAllPlayers(this RoleType[] roles) => Player.GetAllPlayers().Where(x => roles.Any(r => x.Role == r)); + public static IEnumerable GetAllPlayers(this Team[] roles) => Player.GetAllPlayers().Where(x => roles.Any(t => x.Team == t)); + /// /// Gives all players on the server in this Team ///