HolaAntiSpam
HolaAntiSpam 是什么?
HolaAntiSpam 是一款专为基于 Velocity 的 Minecraft 服务器设计的强大反垃圾信息插件。它通过防止聊天和命令中的垃圾信息,确保服务器环境的整洁与专业。凭借可配置的冷却时间、消息长度限制以及重复消息检测功能,HolaAntiSpam 赋予服务器管理员维护秩序并提升玩家体验的能力。
特性
-
?️ 聊天冷却:强制执行可自定义的聊天消息冷却时间,以防止快速刷屏,确保流畅且受控的交流。
-
⏲️ 命令冷却:对命令执行应用冷却时间,减少命令滥用和服务器过载。
-
✅ 重复消息检测:检测并阻止重复消息,保持聊天清晰并防止滥用。
-
? 消息长度限制:限制消息长度,防止过长或 Spam 式消息,支持配置最大长度。
-
? 实时警报:向拥有 holaantispam.admin 权限的工作人员发送游戏内和控制台警报,以通知垃圾信息违规行为;每位玩家仅发送一次警报,以避免通知骚扰。
-
⚒️ 配置热重载:使用 /holaantispam reload 或 /has reload 动态更新设置,无需重启服务器。
-
? 基于权限的控制:支持绕过权限 (holaantispam.bypass) 以豁免特定玩家,以及重载权限 (holaantispam.admin) 用于配置管理。
-
? 自定义警报:完全可配置的警报格式,支持 MiniMessage,包括渐变、悬停事件和点击复制玩家名称等功能,以提升可用性。
? 依赖要求
⚙️ 配置
HolaAntiSpam 提供高度可定制的 config.yml,以便根据您的服务器需求调整反垃圾信息设置。
反垃圾信息设置:
配置设置
settings:
# 在所有消息前显示的前缀
prefix: "<gradient:dark_aqua:aqua>[HolaAntiSpam]</gradient> "
# 接收垃圾信息警报所需的权限
notify-permission: "holaantispam.admin"
# 绕过反垃圾信息限制的权限
bypass-permission: "holaantispam.bypass"
# 重载配置所需的权限
reload-permission: "holaantispam.admin"
chat:
# 聊天消息之间的冷却时间(毫秒)
cooldown-ms: 2000
# 允许的最大消息长度
max-length: 100
command:
# 命令执行之间的冷却时间(毫秒)
cooldown-ms: 1000
spam:
# 在重置垃圾信息分数之前的违规次数阈值
threshold: 3
logging:
# 启用或禁用控制台日志记录
enable: true
消息配置:
消息配置
messages:
# 配置重载时显示的消息
reload: "<prefix><gray>[<green>✓</green>]</gray> <green>配置重载成功!</green>"
# 玩家缺乏权限时显示的消息
no-permission: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <gradient:dark_red:red>您没有权限使用此命令!</gradient>"
spam:
# 发送给拥有 notify 权限玩家的警报格式
player: |
<prefix><gray>╔══════════════╗</gray>
<prefix><red>║ ⚠ <dark_red><bold>SPAM ALERT</bold></dark_red> ⚠ ║</red>
<prefix><gray>╠══════════════╣</gray>
<prefix><gray>╠ Player: <yellow><hover:show_text:'<green>Click to copy player name!</green>'><click:copy_to_clipboard:<player>><player></click></hover></yellow>
<prefix><gray>╠ Message: <white><message></white>
<prefix><gray>╚══════════════╝</gray>
# 发送给控制台的警报格式
console: |
<prefix><gray>╔═══════════════╗</gray>
<prefix><red>║ ⚠ <dark_red><bold>SPAM ALERT</bold></dark_red> ⚠ ║</red>
<prefix><gray>╠═══════════════╣</gray>
<prefix><gray>╠ Player: <yellow><player></yellow>
<prefix><gray>╠ Message: <white><message></white>
<prefix><gray>╚═══════════════╝</gray>
violation:
# 玩家发生垃圾信息违规时发送的消息
cooldown: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>请等待后再发送另一条消息。</red>"
repeated: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>不允许重复消息。</red>"
length: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>消息超过最大长度 <length> 个字符。</red>"
command: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>请等待后再执行另一个命令。</red>"
? 命令
/holaantispam 或 /has:显示插件信息和当前垃圾信息分数。
/holaantispam reload 或 /has reload:重载配置(需要 holaantispam.admin 权限)。
? 权限
holaantispam.admin:接收游戏内垃圾信息警报并重载配置。
holaantispam.bypass:绕过聊天和命令的反垃圾信息限制。
? 为什么选择 HolaAntiSpam?
HolaAntiSpam 是服务器管理员维持无垃圾信息环境的完美解决方案,且不会牺牲性能。其轻量级设计、单次警报系统以防止通知骚扰以及广泛的配置选项,使其适用于各种规模的服务器。无论您是运营小型社区还是大型网络,HolaAntiSpam 都能确保清洁且愉快的玩家体验。
由 M0_kii 开发,HolaAntiSpam 将强大的功能与用户友好的配置相结合,使反垃圾邮件变得轻松且高效。
HolaAntiSpam
What is HolaAntiSpam?
HolaAntiSpam is a powerful anti-spam plugin designed for Velocity-powered Minecraft servers. It ensures a clean and professional server environment by preventing spam in chat and command usage. With configurable cooldowns, message length restrictions, and duplicate message detection, HolaAntiSpam empowers server administrators to maintain order and enhance the player experience.
Features
-
?️ Chat Cooldowns: Enforce customizable cooldowns between chat messages to prevent rapid spamming, ensuring smooth and controlled communication.
-
⏲️ Command Cooldowns: Apply cooldowns to command executions, reducing command spam and server overload.
-
✅ Duplicate Message Detection: Detect and block repeated messages, maintaining chat clarity and preventing abuse.
-
? Message Length Limits: Restrict message length to prevent overly long or spammy messages, with configurable maximum lengths.
-
? Real-Time Alerts: Notify staff with the holaantispam.admin permission of spam violations through in-game and console alerts, with one-time alerts per player to avoid notification spam.
-
⚒️ Reloadable Configuration: Use /holaantispam reload or /has reload to dynamically update settings without restarting the server.
-
? Permission-Based Controls: Support for bypass permissions (holaantispam.bypass) to exempt certain players and reload permissions (holaantispam.admin) for configuration management.
-
? Customizable Alerts: Fully configurable alert formats using MiniMessage, with support for gradients, hover events, and click-to-copy player names for enhanced usability.
? Requirements
⚙️ Configuration
HolaAntiSpam offers a highly customizable config.yml to tailor anti-spam settings to your server’s needs.
Anti-Spam Settings:
Configuration settings
settings:
# Prefix displayed before all messages
prefix: "<gradient:dark_aqua:aqua>[HolaAntiSpam]</gradient> "
# Permission required to receive spam alerts
notify-permission: "holaantispam.admin"
# Permission to bypass anti-spam restrictions
bypass-permission: "holaantispam.bypass"
# Permission to reload the configuration
reload-permission: "holaantispam.admin"
chat:
# Cooldown between chat messages (in milliseconds)
cooldown-ms: 2000
# Maximum allowed message length
max-length: 100
command:
# Cooldown between command executions (in milliseconds)
cooldown-ms: 1000
spam:
# Number of violations before resetting spam score
threshold: 3
logging:
# Enable or disable console logging
enable: true
Messages Configuration:
Messages configuration
messages:
# Message displayed when configuration is reloaded
reload: "<prefix><gray>[<green>✓</green>]</gray> <green>Configuration reloaded successfully!</green>"
# Message displayed when the player lacks permission
no-permission: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <gradient:dark_red:red>You do not have permission to use this command!</gradient>"
spam:
# Alert format sent to players with notify permission
player: |
<prefix><gray>╔══════════════╗</gray>
<prefix><red>║ ⚠ <dark_red><bold>SPAM ALERT</bold></dark_red> ⚠ ║</red>
<prefix><gray>╠══════════════╣</gray>
<prefix><gray>╠ Player: <yellow><hover:show_text:'<green>Click to copy player name!</green>'><click:copy_to_clipboard:<player>><player></click></hover></yellow>
<prefix><gray>╠ Message: <white><message></white>
<prefix><gray>╚══════════════╝</gray>
# Alert format sent to console
console: |
<prefix><gray>╔═══════════════╗</gray>
<prefix><red>║ ⚠ <dark_red><bold>SPAM ALERT</bold></dark_red> ⚠ ║</red>
<prefix><gray>╠═══════════════╣</gray>
<prefix><gray>╠ Player: <yellow><player></yellow>
<prefix><gray>╠ Message: <white><message></white>
<prefix><gray>╚═══════════════╝</gray>
violation:
# Message sent to players on spam violation
cooldown: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>Please wait before sending another message.</red>"
repeated: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>Repeated messages are not allowed.</red>"
length: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>Message exceeds maximum length of <length> characters.</red>"
command: "<prefix><gray>[<dark_red>✕</dark_red>]</gray> <red>Please wait before executing another command.</red>"
? Commands
/holaantispam or /has: Displays plugin information and current spam scores.
/holaantispam reload or /has reload: Reloads the configuration (requires holaantispam.admin permission).
? Permissions
holaantispam.admin: Receive in-game spam alerts and reload the configuration.
holaantispam.bypass: Bypass anti-spam restrictions for chat and commands.
? Why Choose HolaAntiSpam?
HolaAntiSpam is the perfect solution for server administrators looking to maintain a spam-free environment without compromising performance. Its lightweight design, single-alert system to prevent notification spam, and extensive configuration options make it suitable for servers of all sizes. Whether you run a small community or a large network, HolaAntiSpam ensures a clean and enjoyable player experience.
Developed by M0_kii, HolaAntiSpam combines robust functionality with a user-friendly configuration, making spam prevention effortless and effective.
评论 0
登录后参与评分
还没有评论,来抢沙发吧