From 081c7c303e013bfbbc3fb63c3d3667726699d383 Mon Sep 17 00:00:00 2001 From: GrafDimenzio Date: Sat, 18 Jul 2020 18:59:04 +0200 Subject: [PATCH] fixed it to GetAllPlayers(this Team[] teams) --- Synapse/Api/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Synapse/Api/Extensions.cs b/Synapse/Api/Extensions.cs index 58c4bbf..64309ba 100644 --- a/Synapse/Api/Extensions.cs +++ b/Synapse/Api/Extensions.cs @@ -61,7 +61,7 @@ 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)); + public static IEnumerable GetAllPlayers(this Team[] teams) => Player.GetAllPlayers().Where(x => teams.Any(t => x.Team == t)); /// /// Gives all players on the server in this Team