我已开启支持 Discord,立即加入!
Detoxify
Detoxify 是一款轻量且强大的 AI 聊天审核工具,可将消息分类为多个类别,让你能够精细调整过滤规则。尽管性能出色,它仅占用 不到 150MB 的内存,非常适合服务器和客户端使用。
工作原理
Detoxify 使用 detoxify AI 模型对聊天消息进行分类。每条消息都会被分析,并针对以下类别分配分数:
- 毒性 (Toxicity)
- 严重毒性 (Severe Toxicity)
- 淫秽内容 (Obscene content)
- 威胁 (Threats)
- 侮辱 (Insults)
- 身份攻击 (Identity Attacks)
这些分数允许你配置阈值,从而自定义具体哪些消息会被过滤。
安装
服务器端
-
下载正确版本的 Detoxify 服务器端文件。
-
将
.jar文件放入你的plugins或mods文件夹中。 -
启动服务器。
-
配置文件位于:
- Modded platforms:
config/Detoxify - Plugin platforms:
plugins/Detoxify
- Modded platforms:
客户端
- 下载正确版本的 Detoxify 客户端文件。
- 将
.jar文件放入你的mods文件夹中。 - 任何被判定为有毒的消息将在聊天中被隐藏,但仍会记录以供审查。
- 配置文件位于:
.minecraft/config/Detoxify
权限
此功能仅在 Paper 和 Spigot 上有效;在 Fabric 和 NeoForge 上你需要拥有 OP 权限
- detoxify.notify -> 授予你在玩家被标记时接收通知的权限。
- detoxify.admin -> 授予你接收更新通知的权限
配置选项
此配置同时适用于客户端和服务器端。它允许微调消息阈值和调试选项:
####################################
# #
# Detoxify Configuration #
# #
####################################
# 是否显示调试消息
debug=false
############################
# 数值设置 #
############################
toxicity=0.9
severe-toxicity=0.5
obscene=0.25
threat=-1.0
insult=-1.0
identity-attack=-1.0
############################
# 消息设置 #
############################
player=§c你的消息因违反聊天规则已被移除。
staff=§c%s 的消息已被移除 [%s]
console=§c%s 的消息已被移除 [%s]
Skript 支持
注意:仅在 Spigot 和 Paper 平台上可用
Detoxify 支持与 Skript 集成以实现自定义聊天过滤。它提供了一个表达式,根据消息是否被视为有毒来返回 true 或 false:
is [the] %string% toxic
detoxify %string%
示例
on chat:
if detoxify message is true:
cancel event
send "&c该消息因毒性被阻止!" to player
on chat:
if is the message toxic is true:
cancel event
send "&c该消息因毒性被阻止!" to player
I have opened a support discord, join now!
Detoxify
Detoxify is a lightweight yet powerful AI chat moderation tool that classifies messages into multiple categories, allowing you to finely tune what gets caught by the filter. Despite its performance, it uses less than 150MB of RAM, making it extremely efficient for both server and client use.
How It Works
Detoxify uses the detoxify AI model to classify chat messages. Each message is analyzed and assigned scores for categories such as:
- Toxicity
- Severe Toxicity
- Obscene content
- Threats
- Insults
- Identity Attacks
These scores allow you to configure thresholds and customize exactly which messages are filtered.
Installation
Server
-
Download the correct server version of Detoxify.
-
Place the
.jarfile in yourpluginsormodsfolder. -
Start your server.
-
The configuration will be located in:
- Modded platforms:
config/Detoxify - Plugin platforms:
plugins/Detoxify
- Modded platforms:
Client
- Download the correct client version of Detoxify.
- Place the
.jarfile in yourmodsfolder. - Any messages classified as toxic will be hidden in chat, but still logged for review.
- The configuration will be located in:
.minecraft/config/Detoxify
Permissions
This is only on paper and spigot, on fabric and neoforge you need to be op
- detoxify.notify -> Gives you permissions to receive notifications when a player is flagged.
- detoxify.admin -> Gives you permission to receive update notifications
Configuration Options
This configuration works for both client and server. It allows fine-tuning of message thresholds and debug options:
####################################
# #
# Detoxify Configuration #
# #
####################################
# Whether or not there should be debug message
debug=false
############################
# Value Settings #
############################
toxicity=0.9
severe-toxicity=0.5
obscene=0.25
threat=-1.0
insult=-1.0
identity-attack=-1.0
############################
# Message Settings #
############################
player=§cYour message was removed for violating chat rules.
staff=§c%s's message has been removed [%s]
console=§c%s's message has been removed [%s]
Skript Support
Note: Only available for Spigot and Paper platforms
Detoxify integrates with Skript for custom chat filtering. It provides a single expression that returns true or false depending on whether a message is considered toxic:
is [the] %string% toxic
detoxify %string%
Examples
on chat:
if detoxify message is true:
cancel event
send "&cThat message was blocked for toxicity!" to player
on chat:
if is the message toxic is true:
cancel event
send "&cThat message was blocked for toxicity!" to player
下载 Detoxify
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Detoxify
下载 Detoxify
下载 Detoxify
下载 Detoxify
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Detoxify
下载 Detoxify
下载 Detoxify
下载 Detoxify
下载 Detoxify
v0.3.0 - 更新检查器
更新检查器
我添加了一个简单的更新检查器,以便在有新版本发布时始终通知您!它将在服务器启动时通知拥有 detoxify.admin 权限的管理员,并通知控制台。
可以通过在配置中禁用 check-updates 来关闭此功能。
其他内容
我还移除了一些从测试配置系统时遗留下来的烦人调试信息,以及其他一些不必要的消息。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧