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

Unbans an IP address. If an associated PlayerInfo is known, use a different overload of this method instead. Throws PlayerOpException on problems.

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

Syntax

   
 C# 
public static void UnbanIP(
	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 empty, if permitted by server configuration.
announce
Boolean
Whether unban should be publicly announced on the server.
raiseEvents
Boolean
Whether RemovingIPBan and RemovedIPBan 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 IP is already unbanned.

See Also