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

Commit

Permalink
added GetAllPlayers(this Team[] roles)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Jul 18, 2020
1 parent 5754a78 commit 1d33c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Synapse/Api/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ 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));

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

0 comments on commit 1d33c3f

Please sign in to comment.