Method Global:Ban [-] [+]
Ban's a Player's account, character or IP
enum BanMode
{
BAN_ACCOUNT = 0,
BAN_CHARACTER = 1,
BAN_IP = 2
};
Synopsis
result = Ban( banMode, nameOrIP, duration, reason, whoBanned )
Arguments
BanMode banMode
Method of ban, refer to BanMode above.
string nameOrIP
If BanMode is 0 then accountname, if 1 then charactername if 2 then ip.
number duration
Duration (in seconds) of the ban.
Valid numbers: integers from 0 to 4,294,967,295.
string reason
- See method description.
string whoBanned
- See method description.
Returns
number result
Status 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.