server.banIP: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = server |type = method |class = Server |name = banIP |parameters = string ipAddress int timeoutInMilliseconds |parameter1 = string dataName The IP to b...") |
No edit summary |
||
Line 5: | Line 5: | ||
|name = banIP | |name = banIP | ||
|parameters = string ipAddress int timeoutInMilliseconds | |parameters = string ipAddress int timeoutInMilliseconds | ||
|parameter1 = string | |parameter1 = string ipAddress The IP to be banned | ||
|parameter2 = int timeout How long before the ban should expire (in milliseconds). Use 0 for permanent ban. | |parameter2 = int timeout How long before the ban should expire (in milliseconds). Use 0 for permanent ban. | ||
|return1 = null n/a | |return1 = null n/a |
Latest revision as of 19:21, 26 November 2020
Method
Server Only
Online and Offline
Available since Server 1.2.4
null server.banIP(string ipAddress int timeoutInMilliseconds)
The server.banIP method is used to bans an IP address and blocks it from connecting.
Parameters
1) | string | ipAddress | The IP to be banned. |
2) | int | timeout | How long before the ban should expire (in milliseconds). Use 0 for permanent ban. |
Return
null | This method doesn't return a value. |
Types
Client
Server
Notes
There aren't any notes for this method.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.