Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Commit

Permalink
fixed it to GetAllPlayers(this Team[] teams)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Jul 18, 2020
1 parent 1d33c3f commit 081c7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Synapse/Api/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void RaMessage(this CommandSender sender, string message, bool suc

public static IEnumerable<Player> GetAllPlayers(this RoleType[] roles) => Player.GetAllPlayers().Where(x => roles.Any(r => x.Role == r));

public static IEnumerable<Player> GetAllPlayers(this Team[] roles) => Player.GetAllPlayers().Where(x => roles.Any(t => x.Team == t));
public static IEnumerable<Player> GetAllPlayers(this Team[] teams) => Player.GetAllPlayers().Where(x => teams.Any(t => x.Team == t));

/// <summary>
/// Gives all players on the server in this Team
Expand Down

0 comments on commit 081c7c3

Please sign in to comment.