Ban&Mute Manager
Short description оf my plugin
This plugin allows you to oversee a chat, namely muted a player, disable to use a specific words, ban a player or kick. Messages can be fully customized in configuration file. Also you will find configuration instructions in configuration file.
Features
- AntiSpam
- AntiSwear
- AntiReconnect
- Mute & Unmute a player
- Ban & Unban a player
- Kick a player
- Block commands use
- AutoBan
Permissions
- BanMuteManager.kick - allows to kick a player
- BanMuteManager.ban - allows to ban a player
- BanMuteManager.unban - allows to unban a player
- BanMuteManager.mute - allows to mute a player
- BanMuteManager.unmute - allows to unmute a player
- BanMuteManager.check.ban - allows to check a player's ban
- BanMuteManager.check.mute - allows to check a player's mute
- BanMuteManager.list.ban - allows to see list of banned players
- BanMuteManager.list.mute - allows to see list of muted players
- BanMuteManager.notify.ban - ban notification (useful for stuff)
- BanMuteManager.notify.mute - mute notification (useful for stuff)
- BanMuteManager.immunity.kick - gives immunity from kick
- BanMuteManager.immunity.ban - gives immunity from ban
- BanMuteManager.immunity.mute - gives immunity from mute
- BanMuteManager.immunity.antispam - gives immunity from antispam
- BanMuteManager.immunity.antireconnect - gives immunity from antireconnect
- BanMuteManager.immunity.antiswear - gives immunity from antiswear
Commands
- /mute help - shows help
- /mute list - show muted players
- /mute check <player> - check player's mute
- /mute <player> [time] [reason] - mute a player
- /unmute <player> - unmute a player
- /ban help - shows help
- /ban list - show banned players
- /ban check <player> - check player's ban
- /ban <player> [time] [reason] - ban a player
- /unban <player> - unban a player
- /kick <player> [reason] - kick a player
Time usage example
1M - 1 minute
10S - 10 seconds
5H - 5 hours
0 - permanent (only for ban)
- Default mute time is 30 minutes and can be customized in config.
- Default ban time is 0 (permanent).
Config
# Remove messages if it equals to words from words.yml<br />clean-chat: true<br />#AntiSpam <br />anti-spam-enable: true<br />anti-spam-time: 5<br /># AntiReconnect, time in seconds<br />anti-reconnect-enable: true<br />anti-reconnect-time: 10<br /># CUSTOM MESSAGES<br /># \n = new line<br />A_HOUR: H<br />A_MIN: M<br />A_SEC: S<br />MSG_ANTIRECONNECT: "\n\n&8« &cAntiReconnect &8»\n\n &cWait &6%t &cseconds\n\n"<br />MUTE:<br /> MSG_NO_PERM: "&cYou dont have a permission!"<br /> MSG_PL_NOT_FOUND: "&7Player &a%player &7not found!"<br /> MSG_IS_PLAYER_MUTED: "&7Player &a%player &7is &a%result!"<br /> MSG_RESULT_1: "muted"<br /> MSG_RESULT_2: "not muted"<br /> MSG_MUTE_NOTIFY: "&a%author &7muted player &a%player &7to &a%date &7for &a%reason"<br /> MSG_UNMUTE_NOTIFY: "&a%author &7unmute player &a%player"<br /> MSG_CANT_USE_WORD: "&7You can not use this word: &a%word" <br /> MSG_MUTED: "&7You now muted for &a%reason &7to &a%date"<br /> MSG_CANT_MUTE: "&7You can not mute &a%player"<br /> MSG_ANTI_SPAM: "&7You can write a message after &a%t &7seconds."<br />BAN:<br /> MSG_NO_PERM: "&cYou dont have a permission!"<br /> MSG_PL_NOT_FOUND: "&7Player &c%player &7not found!"<br /> MSG_IS_PLAYER_BANNED: "&7Player &c%player &7is &c%result!"<br /> MSG_RESULT_1: "banned"<br /> MSG_RESULT_2: "not banned"<br /> MSG_BAN_NOTIFY: "&c%author &7banned player &c%player &7to &c%date &7for &c%reason"<br /> MSG_UNBAN_NOTIFY: "&c%author &7unban player &c%player"<br /> MSG_BAN_FORMAT: "&cYou have been banned on this server\n&7Reason: &c%reason\n&7Author: &c%author\n&7Date: &c%date"<br /> MSG_CANT_BAN: "&7You can not ban &c%player"<br />KICK:<br /> MSG_NO_PERM: "&cYou dont have a permission!"<br /> MSG_PL_NOT_FOUND: "&7Player &c%player &7not found. Maybe it is not online."<br /> MSG_KICK_NOTIFY: "&c%author &7banned player &c%player &7to &c%date &7for &c%reason"<br /> MSG_CANT_KICK: "&7You can not kick &a%player"<br />
If you have ideas, please write a comment.
Config v3
#Config version. Do not change it config-version: 3 #Plugin refixes prefix: "&8« &c&lBan&8-&a&lMute &8» &f" prefixMute: "&8« &a&lMute &8» &f" prefixBan: "&8« &c&lBan &8» &f" # S - seconds # M - minutes # H - Hours default-mute-time: 30M # Default reason default-mute-reason: oOpS default-ban-reason: "You have been banned" # Remove messages if it equals to words from words.yml clean-chat: true #AntiSpam anti-spam-enable: true anti-spam-time: 5 # AntiReconnect, time in seconds anti-reconnect-enable: true anti-reconnect-time: 10 # CUSTOM MESSAGES # \n = new line MSG_ANTIRECONNECT: "\n\n&8« &cAntiReconnect &8»\n\n &cWait &6%t &cseconds\n\n" MUTE: MSG_NO_PERM: "&cYou dont have a permission!" MSG_PL_NOT_FOUND: "&7Player &a%player &7not found!" MSG_IS_PLAYER_MUTED: "&7Player &a%player &7is &a%result!" MSG_RESULT_1: "muted" MSG_RESULT_2: "not muted" MSG_MUTE_NOTIFY: "&a%author &7muted player &a%player &7to &a%date &7for &a%reason" MSG_UNMUTE_NOTIFY: "&a%author &7unmute player &a%player" MSG_CANT_USE_WORD: "&7You can not use this word: &a%word" MSG_MUTED: "&7You now muted for &a%reason &7to &a%date" MSG_CANT_MUTE: "&7You can not mute &a%player" MSG_ANTI_SPAM: "&7You can write a message after &a%t &7seconds." BAN: MSG_NO_PERM: "&cYou dont have a permission!" MSG_PL_NOT_FOUND: "&7Player &c%player &7not found!" MSG_IS_PLAYER_BANNED: "&7Player &c%player &7is &c%result!" MSG_RESULT_1: "banned" MSG_RESULT_2: "not banned" MSG_BAN_NOTIFY: "&c%author &7banned player &c%player &7to &c%date &7for &c%reason" MSG_UNBAN_NOTIFY: "&c%author &7unban player &c%player" MSG_BAN_FORMAT: "&cYou have been banned on this server\n&7Reason: &c%reason\n&7Author: &c%author\n&7Date: &c%date" MSG_CANT_BAN: "&7You can not ban &c%player"
Config v2
#Config version. Do not change it config-version: 2 #Plugin refix prefix: "&8« &a&lMute &8» &f" # S - seconds # M - minutes # H - Hours default-mute-time: 30M # Default mute reason default-mute-reason: oOpS # Remove messages if it equals to words from words.yml clean-chat: true #AntiSpam anti-spam-enable: true anti-spam-time: 5 # CUSTOM MESSAGES # %player %author %result %date %reason %word MSG_NO_PERM: "&cYou dont have a permission!" MSG_PL_NOT_FOUND: "&7Player &a%player &7not found!" MSG_IS_PLAYER_MUTED: "&7Player &a%player &7is &a%result!" MSG_RESULT_1: "muted" MSG_RESULT_2: "not muted" MSG_MUTE_NOTIFY: "&a%author &7muted player &a%player &7to &a%date &7for &a%reason" MSG_UNMUTE_NOTIFY: "&a%author &7unmute player &a%player" MSG_CANT_USE_WORD: "&7You can not use this word: &a%word" MSG_MUTED: "&7You now muted for &a%reason &7to &a%date" MSG_CANT_MUTE: "&7You can not mute &a%player" MSG_ANTI_SPAM: "&7You can write a message after &a%t &7seconds."
In reply to VovaSolodkii:
In reply to irfanmw:
I can do it only with one char after number (Ex. 10D or 10S), but in your example you typed two chars (Sn).In reply to VovaSolodkii:
Heyyy Pls add kick message at the config
In reply to irfanmw:
pls add kick message in the config