advancedban/README.txt

46 lines
939 B
Plaintext
Raw Permalink Normal View History

2019-08-08 08:50:10 -07:00
Advanced Ban [advancedban]
2014-12-24 05:51:40 -08:00
===========
2019-08-08 08:50:10 -07:00
This mod will ban player based on its username, not its IP address.
# License
MIT License (see LICENSE file)
2014-12-24 05:51:40 -08:00
# Usage
2019-08-08 08:50:10 -07:00
## 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
2014-12-24 05:51:40 -08:00
2019-08-08 08:50:10 -07:00
## Chat commands
### Check ban for a player
2014-12-24 05:51:40 -08:00
2019-08-08 08:50:10 -07:00
/abancheck <player name>
2014-12-24 05:51:40 -08:00
2019-08-08 08:50:10 -07:00
### Simple ban/unban
(requires "ban" privilege)
2014-12-24 05:51:40 -08:00
2019-08-08 08:50:10 -07:00
/aban <player name>
/unaban <player name>
2014-12-24 05:51:40 -08:00
2019-08-08 08:50:10 -07:00
### Ban with kick
(requires "ban" and "kick" privileges)
2019-08-08 08:50:10 -07:00
/abankick <player name>
2019-08-08 08:50:10 -07:00
### Ban/unban with its IP
(requires "ban" privilege)
2019-08-08 08:50:10 -07:00
/aban+ <player name>
/unban+ <player name>
2019-08-08 08:50:10 -07:00
## API
2019-08-08 08:50:10 -07:00
advancedban.is_banned(player_name)
-- true if the player is banned, false if not
2019-08-08 08:50:10 -07:00
advancedban.ban(player_name)
-- true if OK, false if the player has been banned before
2019-08-08 08:50:10 -07:00
advancedban.unban(player_name)
-- true if OK, false if the player hasn't been banned before