Skip to content

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.

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)

boolean - false when not connected

Ban(pid, "speed hacking", 7 * 24 * 3600) -- a week

BanName · BanAddress · Unban · IsBanned · Kick · the Accounts, admins, bans and the audit group of the index