[This is preliminary documentation and is subject to change.]
Unbans given IP address and all accounts on that IP.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If targetAddress or player is null. |
| fCraft..::..PlayerOpException | If permission or configuration issues arise, or if everyone has already been unbanned. |