aboutsummaryrefslogtreecommitdiff
path: root/lib/lua
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2020-08-05 05:00:00 +0100
committerGitHub <noreply@github.com>2020-08-05 05:00:00 +0100
commitf92a393f6f949377b1d78630a8f7d24e78e6ff9d (## Extended Ban Mod API ### ban_player `xban.ban_player(player_or_ip, source, expires, reason)` Ban a player and all of his/her alternative names and IPs. #### Arguments: * `player_or_ip` - Player to search for and ban. See note 1 below. * `source` - Source of the ban. See note 2 below. * `expires` - Time at which the ban expires. If nil, ban is permanent. * `reason` - Reason for ban. ### unban_player `xban.unban_player(player_or_ip, source, reason)` Unban a player and all of his/her alternative names and IPs. A reason may be given for this unbanning, so other moderators can follow your thoughts. #### Arguments: * `player_or_ip` - Player to search for and unban. * `source` - Source of the ban. See note 2 below. * `reason` - Reason for unbanning. ### add_record: `xban.add_record(player, record)` Adds a record to the player's cr