Method Global:Ban [-] [+]
Ban's a Player's account, character or IP
| Mode | Value |
|---|---|
| ACCOUNT | 0 |
| CHARACTER | 1 |
| IP | 2 |
Synopsis
result = Ban( banMode, nameOrIP, duration )
result = Ban( banMode, nameOrIP, duration, reason )
result = Ban( banMode, nameOrIP, duration, reason, whoBanned )
Arguments
BanMode banModeMethod of ban, refer to table above.
string nameOrIPIf BanMode is 0 then accountname, if 1 then charactername if 2 then ip.
number durationDuration (in seconds) of the ban.
Valid numbers: integers from 0 to 4,294,967,295.
string reason ("")Ban reason, this is optional.
Returns
number resultStatus of the ban. 0 if success, 1 if syntax error, 2 if target not found, 3 if a longer ban already exists, nil if unknown result.
Valid numbers: integers from -2,147,483,647 to 2,147,483,647.