FriendlyGamer 0b3e9518b1 Message | 4 лет назад | |
---|---|---|
.. | ||
LICENSE | 4 лет назад | |
README.md | 4 лет назад | |
README.txt | 4 лет назад | |
depends.txt | 4 лет назад | |
init.lua | 4 лет назад | |
mod.conf | 4 лет назад |
This mod will ban player based on its username, not its IP address.
MIT License (see LICENSE file)
FILE_NAME
: name of the file that contains list of banned playerBAN_MESSAGE
: a message that will be sent to the banned player each time it connects/abancheck <player name>
(requires ban
privilege)
/aban <player name>
/unaban <player name>
(requires ban
and kick
privileges)
/abankick <player name>
(requires ban
privilege)
/aban+ <player name>
/unban+ <player name>
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