Ban
Kicks the player and bans their name and address.
A Hello under the name or from the address is refused with the reason until the ban runs out; seconds 0 or none =
for good. Written to data/bans.json.
Syntax
Section titled “Syntax”Ban(pid, reason [, seconds])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
reason |
string | shown to the player now and at every refused join |
seconds |
number | how long; 0 or none = for good (optional) |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”Ban(pid, "speed hacking", 7 * 24 * 3600) -- a weekSee also
Section titled “See also”BanName · BanAddress · Unban · IsBanned · Kick · the Accounts, admins, bans and the audit group of the index
