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

Mutes this player (prevents from writing chat messages).

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

Syntax

   
 C# 
public void Mute(
	Player player,
	TimeSpan duration,
	bool announce,
	bool raiseEvents
)

Parameters

player
Player
Player who is doing the muting.
duration
TimeSpan
Duration of the mute. If a player is already muted for same or greater length of time, PlayerOpException is thrown with NoActionNeeded code. If a player is already muted for a shorter length of time, the mute duration is extended.
announce
Boolean
Whether to announce muting publicly on the sever.
raiseEvents
Boolean
Whether to raise PlayerInfo.MuteChanging and MuteChanged events.

See Also