I have updated alot of things today.
Heres a list:
You now have a wipe command, so if you have a wipe command defined it will run that command when you /punish or /offend a player.
Cross server messages have been implemented (to use them you are required to have a redis database). If you have a pterodactyl panel you can host your own.
Ban exclude players:
You can now exclude players listed in the config.yml
I have added an unban/unmute wave command. you can do /punishments unbanwave/unmutewave. And it will unban/unmute all players that are currently banned/muted.
You will need to add these to your config.yml
YAML:cross-server-messages: false # REDIS IS REQUIRED FOR THIS redis: host: "127.0.0.1" port: 6379 password: "" channel: "global-messages" exclude_players: - player1 - player2 - player3 - player4 - player5 #Only use this if you have a command to wipe player data. You can use the placeholder %player% to use the player name wipe-command: ""
Updated the plugin so that if the player changes their username they will not be unbanned
Added an auto punish alts feature
YAML:license_key: "https://discord.gg/JttqRTAsyd" cross-server-support: false # YOU MUST HAVE MYSQL FOR THE CROSS SERVER SUPPORT TO WORK simple-voice-chat-support: false database: type: "sqlite" # You can either use sqlite or mysql host: "127.0.0.1" port: "3306" database: "DonutPunishments" username: "DonutPunishmentsOnTop" password: "kf45mc is w" auto-punish-alt: true punish-command: "ban %player% 30d You have been banned for ban evading" messages: ban-usage: "&cUsage: /ban <player> [duration] <reason>" unban-usage: "&cUsage: /unban <player>" not-banned: "&c%player% is not currently banned." not-muted: "&c%player% is not currently muted." unbanned: "&cUnbanned &f%player%" auto-punish: "&cAuto punished account %player% for joining while one of their alt accounts was banned" player-kicked: "&cKicked &f%player% &cwith reason: &f%reason%" player-banned: "&cTemporarily banned player &f%player% &cfor &f%duration% &cwith reason: &f%reason%" ban-alts-found: "&cWarning: Player &f%player% &chas these alt accounts: &f%alts%" player-punished: "&cPunishment executed with success. Offension: %offenses%" join-alert: "&c[DonutPunishments] &e%player% joined using the same IP as banned player(s): &c%banned%" player-perm-banned: "&cPermanently banned &f%player% &cwith reason: &f%reason%" mute-usage: "&cUsage: /mute <player> [duration] <reason>" player-muted: "&cMuted &f%player% &cfor &f%duration% &cwith reason: &f%reason%" voicechat-mute-message: "&cUnfortunately you are prohibited from using the voice chat due to active mute or previous punishment history." muted-chat-block: "&cYou are currently %duration% muted for: &f%reason%. &cThis will expire &f%expires%" player-not-found: "&cPlayer not found." unmuted: "&cUmuted &f%player%" ban-kick-message: - "&c%reason%" - "%expires%" - "&7Ban ID: &f%id%" - "&7You may be able to appeal this ban on\n&fdiscord.examplesmp.net" ban-kick-expires-line: "&7Time left: &f%expires%\n" error-sql: "&cA database error occurred." # Enable or disable Discord webhook notifications for bans enable-discord-webhook: false # Discord webhook URL (only used if enabled) discord-webhook-url: "your webhook url here" reasons: # THiS IS USED FOR THE /punish AND THE /offend COMMAND hacking: type: "ban" duration: "15d" message: "You have been banned for cheating" xray/esp: type: "ban" duration: "30d" message: "You have been banned for xray/esp" bug abuse: type: "ban" duration: "30d" # LEAVE BLANK TO MAKE IT PERM message: "You have been banned for bug abuse" too much chat filters: type: "mute" duration: "30m" message: "You have been banned for setting off chat filters too much" abuse of voice chat: type: "mute" duration: "20d" message: "You have been banned for abuse of voice chat" donutpunishments is the best: type: "kick" duration: "69420d" message: "DonutPunishments is the best (https://builtbybit.com/resources/donutpunishments.69528/)"
Update your config.yml to this please.
2 simple bugs have been fixed
1. The mute listener, when a player talked in chat, before it would say they would be unmuted in like 4 months, when it was just like a 2h mute. Now it says the correct expire time
2. Fixed the ban id on the join whist banned message
3. Fixed the bug where if the player's ip changes, it would just add a new ip to the database, instead of changing the old one.
4. Added /alts command
5. Added a type to the punish/offend command, so you can choose if it is a mute, ban, or kick for example.
YAML:reasons: # THiS IS USED FOR THE /punish AND THE /offend COMMAND hacking: type: "ban" duration: "15d" message: "You have been banned for cheating" xray/esp: type: "ban" duration: "30d" message: "You have been banned for xray/esp" bug abuse: type: "ban" duration: "30d" # LEAVE BLANK TO MAKE IT PERM message: "You have been banned for bug abuse" too much chat filters: type: "mute" duration: "30m" message: "You have been banned for setting off chat filters too much" abuse of voice chat: type: "mute" duration: "20d" message: "You have been banned for abuse of voice chat" donutpunishments is the best: type: "kick" duration: "69420d" message: "DonutPunishments is the best (https://builtbybit.com/resources/donutpunishments.69528/)"
I have added simple voice chat support to the plugin so if the player is muted it will not allow them to speak.
You will need to add this to the config.yml
simple-voice-chat-support: false
and add this under messages:
voicechat-mute-message: "&cUnfortunately you are prohibited from using the voice chat due to active mute or previous punishment history."
I have also removed the Discord bot support as that was useless. The discord webhook support is still there though
