[This is preliminary documentation and is subject to change.]

Filters a collection of players, leaving only those who have the given permission, and with permission limits allowing operation on the given rank.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[NotNullAttribute]
public static IEnumerable<Player> Can(
	this IEnumerable<Player> source,
	Permission permission,
	Rank affectedRank
)

Parameters

source
IEnumerable<(Of <(<'Player>)>)>
Original collection of players. Will not get modified.
permission
Permission
Permission that players are required to have.
affectedRank
Rank
Permission limit will be checked against this rank.

Return Value

Filtered collection of players.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'Player>)>)>. When you use instance method syntax to call this method, omit the first parameter.

See Also