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

Unbans given IP address and all accounts on that IP.

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

Syntax

   
 C# 
public static void UnbanAll(
	this IPAddress targetAddress,
	Player player,
	string reason,
	bool announce,
	bool raiseEvents
)

Parameters

targetAddress
IPAddress
IP address that is being unbanned.
player
Player
Player who is unbanning.
reason
String
Reason for unban. May be null or empty, if permitted by server configuration.
announce
Boolean
Whether unban should be publicly announced on the server.
raiseEvents
Boolean
Whether RemovingIPBan, RemovedIPBan, BanChanging, and BanChanged events should be raised.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPAddress. When you use instance method syntax to call this method, omit the first parameter.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If targetAddress or player is null.
fCraft..::..PlayerOpException If permission or configuration issues arise, or if everyone has already been unbanned.

See Also