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

Finds a player by name, using autocompletion. Does not include hidden players.

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

Syntax

   
 C# 
public static Player[] FindPlayers(
	Player player,
	string name,
	bool raiseEvent
)

Parameters

player
Player
Player who initiated the search. Used to determine whether others are hidden or not.
name
String
Full or partial name of the search target.
raiseEvent
Boolean
Whether to raise Server.SearchingForPlayer event.

Return Value

An array of matches. List length of 0 means "no matches"; 1 is an exact match; over 1 for multiple matches.

See Also