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

Bans given player, their IP, and all other accounts on IP. All players from IP are kicked. Throws PlayerOpException on problems.

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

Syntax

   
 C# 
public void BanAll(
	Player player,
	string reason,
	bool announce,
	bool raiseEvents
)

Parameters

player
Player
Player who is banning.
reason
String
Reason for ban. May be empty, if permitted by server configuration.
announce
Boolean
Whether ban should be publicly announced on the server.
raiseEvents
Boolean
Whether AddingIPBan, AddedIPBan, BanChanging, and BanChanged events should be raised.

Exceptions

See Also