index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
lib
/
lua
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Paramat <paramat@users.noreply.github.com>
2020-08-05 05:00:00 +0100
committer
GitHub <noreply@github.com>
2020-08-05 05:00:00 +0100
commit
f92a393f6f949377b1d78630a8f7d24e78e6ff9d
(
## 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