描述:
我一直在寻找能够限制滥用大写字母(通常出现在年轻玩家身上)的插件,虽然找到了一些这类插件,但都没有成功运行,因此我编写了自己的插件。
CapsBlock 会过滤包含大量大写字母的消息。目前,“大量”的定义在配置文件中设定,默认为超过 50% 的大写字母比例。
消息可以被拦截、替换或转换为小写。此外,如果用户尝试发送的大写字母比例超过允许值,该用户会被踢出服务器。
安装方法:
1. 下载 .jar 文件
2. 将 .jar 文件放入你的 plugins 目录
3. 重启服务器
配置选项:
ReplaceWithLowerCase - 将消息中的所有大写字母替换为小写并正常显示
NotifyOnReplaceWithLowerCase - 通知用户其消息已被修改?
ReplaceWithLowerCaseMessage - 定义要发送给用户的提示信息
ReplaceText - 用自定义文本替换消息内容
NotifyOnReplaceText - 通知用户其消息被替换的原因?
ReplaceTextMessage - 定义要发送给用户的提示信息
NewText - 定义用于替换用户消息的文本
CancelText - 取消包含大量大写字母的消息
NotifyOnCancelText - 通知用户其消息已被取消?
KickOnCaps - 踢出发送包含大量大写字母消息的用户
KickMessage - 定义踢人时的提示信息
PercentCaps - 定义消息中大写字母比例达到多少被视为“过量”
MinMsgLength - 定义需要过滤的消息最小长度
命令:
• /CapsBlock - 显示 CapsBlock 菜单
• /CapsBlock reload - 重新加载配置文件
权限:
• capsblock.ignore - 拥有此权限的用户消息不会被过滤。
• capsblock.reload - 拥有此权限的用户可以重新加载 CapsBlock 配置文件
Ultibyte 制作的 YouTube 评测视频
待办事项:
• 添加选项以定义过滤消息的最小长度(当前长度小于 2 字符的消息不会被过滤) 已在 0.6 版本完成
• 处理标点符号,不将其计入消息总长度 已在 0.3 版本完成
更新日志:
0.6.4
- 将 /me 命令加入 CapsBlock 监控范围(兼容 mChat)
0.6.3
- 小修复:更新了命令别名
- 小修复:移除了菜单中的一些调试文本
0.6.2
- 踢出用户改为在主服务器线程中执行(更新以确保线程安全)
0.6.1
- 适配 1.3 版本
0.6
- 添加了 MinMsgLength 配置选项。
0.5
- 修复了 /capsblock 菜单
- 小修复 / 代码清理
0.4
- 修复了菜单
- 改进了标点符号的处理方式
Description:
I've been looking for and have found a number of plugins which aim to block the excessive use of caps that often comes with younger players, however having had no luck getting any of them to work, I wrote my own.
CapsBlock filters messages which contain excessive caps usage, currently 'excessive' is defined in the config, default is anything above 50% Caps.
The message can then either be blocked, replaced, or converted to lowercase. Alternatively, a user can be kicked for attempting to send a message which contains a percentage of caps greater than what is allowed.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server
Configuration:
ReplaceWithLowerCase - Replace all the caps in the message with lowercase and display it as normal
NotifyOnReplaceWithLowerCase - Notify the user their message has been amended?
ReplaceWithLowerCaseMessage - Define the notification to send the user
ReplaceText - Replace the message text with your own text
NotifyOnReplaceText - Notify the user why their message has been replaced?
ReplaceTextMessage - Define the notification to send the user
NewText - Define the text to replace the user's message with
CancelText - Cancel a message with excessive caps
NotifyOnCancelText - Notify the user their message has been cancelled?
KickOnCaps - Kick a user who sends a message with excessive caps
KickMessage - Define the kick message
PercentCaps - Define what percent of caps in a message is considered 'excessive'
MinMsgLength - Define the minimum length of a message to be filtered
Commands:
• /CapsBlock - Display CapsBlock Menu
• /CapsBlock reload - Reload the config
Permissions:
• capsblock.ignore - Users with this permission will not have their messages filtered.
• capsblock.reload - Users with this permission will be able to reload the CapsBlock config
Youtube Review by Ultibyte
To Do:
• Add option to define the minimum length for a filtered message (Currently messages under 2 chars are not filtered) Done in 0.6
• Cater for punctuation by not counting it toward the total message length Done in 0.3
Change-Log:
0.6.4
- Added /me command to capsblock monitoring (Compatible with mChat)
0.6.3
- Minor Bugfix: Updated Command alias
- Minor Bugfix: Removed some debug text from menu
0.6.2
- Kicking user changed to execute in main server thread (Updated for Thread Safety)
0.6.1
- Updated for 1.3
0.6
- Added MinMsgLength configuration option.
0.5
- Fixed the menu /capsblock
- Minor bugfix / code cleanup
0.4
- Fixed the menu
- Mild improvements to the way punctuation is handled
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
下载 CapsBlock
0.6.4
- 向 capsblock 监控添加了 /me 命令(兼容 mChat)
0.6.3 - 小修复:更新了命令别名
- 小修复:从菜单中移除了部分调试文本
0.6.2 - 踢出用户改为在主服务器线程中执行(已更新以确保线程安全)
0.6.1 - 适配 1.3 版本
0.6 - 添加了 MinMsgLength 配置选项。
0.5 - 修复了 /capsblock 菜单
- 小修复/代码清理
0.4 - 改进了标点符号的处理方式
0.3 - 修复了消息中标点符号的过滤。标点符号将不再计入消息的总长度。
0.2 - 添加了定义消息中大写字母百分比以判定为“过度”的选项,默认为 50%
- 添加了将过滤消息中的所有大写字母替换为小写的选项
- 添加了将过滤消息的文本替换为你自定义文本的选项
- 添加了取消包含过度大写字母的消息的选项
- 添加了踢出发送包含过度大写字母消息的用户的选项
- 添加了通知用户所采取行动的相关选项
- 添加了重载 config.yml 的命令及权限 capsblock.reload
- 添加了限制器 [长度小于 2 个字符的消息不会被过滤]
0.1 - 初始创建
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧