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 banMode

Method of ban, refer to table 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 ("")

Ban reason, this is optional.

string whoBanned ("")

The Player's name that banned the account, character or IP, this is optional.

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.

Generated on
© 2010 - 2024 Eluna Lua Engine