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

Formats and broadcasts a message.

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

Syntax

   
 C# 
[StringFormatMethodAttribute("message")]
public static int Message(
	this IEnumerable<Player> source,
	Player except,
	string message,
	params Object[] formatArgs
)

Parameters

source
IEnumerable<(Of <(<'Player>)>)>
List of players who will receive the message.
except
Player
Player to exclude from the recepient list. May be null (no one will be excluded).
message
String
A composite format string for the message. Same semantics as String.Format().
formatArgs
array<Object>[]()[][]
An object array that contains zero or more objects to format.

Return Value

Number of players who received the message.

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.

Exceptions

ExceptionCondition
System..::..ArgumentNullException source, message, or formatArgs is null.
System..::..FormatException Message format is invalid.

See Also