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

Searches for player names starting with namePart. If exactly one player matched, returns the corresponding PlayerInfo object. If name format is incorrect, or if no matches were found, an appropriate message is printed to the player. If multiple players were found matching the partialName, first 25 matches are printed.

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

Syntax

   
 C# 
[CanBeNullAttribute]
public static PlayerInfo FindPlayerInfoOrPrintMatches(
	Player player,
	string partialName
)

Parameters

player
Player
Player to print feedback to.
partialName
String
Partial or full player name.

Return Value

PlayerInfo object if one player was found. Null if no or multiple matches were found.

See Also