-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
45 lines (30 loc) · 939 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Advanced Ban [advancedban]
===========
This mod will ban player based on its username, not its IP address.
# License
MIT License (see LICENSE file)
# Usage
## Parameter
- FILE_NAME: name of the file that contains list of banned player
- BAN_MESSAGE: a message that will be sent to the banned player each time it connects
## Chat commands
### Check ban for a player
/abancheck <player name>
### Simple ban/unban
(requires "ban" privilege)
/aban <player name>
/unaban <player name>
### Ban with kick
(requires "ban" and "kick" privileges)
/abankick <player name>
### Ban/unban with its IP
(requires "ban" privilege)
/aban+ <player name>
/unban+ <player name>
## API
advancedban.is_banned(player_name)
-- true if the player is banned, false if not
advancedban.ban(player_name)
-- true if OK, false if the player has been banned before
advancedban.unban(player_name)
-- true if OK, false if the player hasn't been banned before