ValAntiSpam - Description
ValAntiSpam is a plugin that prevents spam in chat by applying a delay between messages sent by players. The delay time is configurable in the config.yml file. This plugin also offers a spam warning management feature with a logging system.
Commands
- /valantispam reload : Reloads the plugin configuration and messages.
- /valantispam set <Time> : Sets the wait time between messages in seconds.
- /valantispam stats : Displays player spam statistics (number of warnings).
- /valantispam help : Displays the list of available commands.
New and Features
- Spam Management : The plugin prevents players from sending messages too quickly by applying a delay between each message..
- Warning System : Each time a player spams, a warning is added. After several warnings, actions can be taken (ban, etc.).
- Detailed Logs : All spam warnings are logged in a log.yml file, with the following information for each player:
- Player name
- Player UUID
- Number of warnings
- Banned Words Support : You can define a list of banned words in config.yml (e.g., "spam", "advertisement", "boost", etc.).
- Warning Sound : A configurable sound is played when a player attempts to spam.
config.yml
Here is the default configuration in the config.yml file:
ValAntiSpam:
Time: 3
Messages:
CooldownMessage: "&cPlease wait &e%time%s &cbefore sending another message."
ForbiddenWordMessage: "&cYour message contains a forbidden word."
WarningMessage: "&eYou have been warned for spam."
ReloadSuccessMessage: "&aThe configuration was successfully reloaded."
NoPermissionMessage: "&cYou do not have permission to run this command."
InvalidCommandUsageMessage: "&cIncorrect use of the command. Use: /valantispam set <temps_en_secondes>"
SetTimeSuccessMessage: "&aThe delay time was set to &e%time% &aseconds."
InvalidNumberMessage: "&c'%value%' is not a valid number."
SpamWarningLogMessage: "[ValAntiSpam] %player% has been warned for spam."
InvalidSoundLogMessage: "[ValAntiSpam] Invalid sound defined in config: %sound%"
EnableSound: true
SoundName: "minecraft:block.note_block.bass"
DisabledWorlds:
- "world_nether"
- "world_the_end"
ForbiddenWords:
- "spam"
- "publicité"
- "boost"
- "discord"