[This is preliminary documentation and is subject to change.]
Mutes this player (prevents from writing chat messages).
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
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.