[This is preliminary documentation and is subject to change.]
Bans given IP address and all accounts on that IP. All players from IP are kicked.
Throws PlayerOpException on problems.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.2.4 (0.6.2.4)
Syntax
| C# |
Parameters
- targetAddress
- IPAddress
IP address that is being banned.
- 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.