- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
“ChatControl Pro/WIKI/聊天忽略”的版本间的差异
Qsefthuopq(讨论 | 贡献) 小 |
Qsefthuopq(讨论 | 贡献) |
||
第14行: | 第14行: | ||
Player_Warn_Message: "&cSwearing is prohibited on this server." | Player_Warn_Message: "&cSwearing is prohibited on this server." | ||
Ignore_Chatdisplay: swears</code> | Ignore_Chatdisplay: swears</code> | ||
− | + | ||
=== 3) 在settings.yml内启用聊天呼啦圈并能创建名为 'swears'的忽略器作为示例 (示例在下面). === | === 3) 在settings.yml内启用聊天呼啦圈并能创建名为 'swears'的忽略器作为示例 (示例在下面). === | ||
第22行: | 第22行: | ||
swears: | swears: | ||
Ignored_By_Default: false</code> | Ignored_By_Default: false</code> | ||
− | Chat_Ignorer.Sets.swears: | + | Chat_Ignorer.Sets.swears:忽略器名称.这个名称很重要, 可用于handlers.txt 或用于使用了 'ignore chatdisplay swears' 运算符的规则. |
− | Ignored_By_Default: | + | Ignored_By_Default:这个选项决定是否隐藏忽略器内的所有规则. 如果关闭,玩家看得到脏话规则除非玩家输入指令手动隐藏. |
=== 4) 进入游戏测试, 给予玩家权限 'chatcontrol.commands.ignore' 和 'chatcontrol.ignoreset.swears'. === | === 4) 进入游戏测试, 给予玩家权限 'chatcontrol.commands.ignore' 和 'chatcontrol.ignoreset.swears'. === | ||
− | + | 玩家 1 尝试输入三句话中的一句.玩家2 暂时什么也不做 Player 2 ,之后如果关闭了'Ignored_By_Default'玩家会看到脏话. | |
− | Player 2 | + | Player 2 输入了执行: '/chc ignore swears'. 会出现一条消息告诉该玩家'swear'忽略组合内的详细已被隐藏. |
− | Player 1 | + | Player 1 再次说脏话. 他可以看到自己说的话,但玩家 2 看不到 (除非玩家2再次输入指令或服务器重启). |
2019年1月29日 (二) 16:08的版本
子页面
聊天忽略器这个名字并不好听,但它可以让玩家屏蔽掉他们不想看到的消息 (如脏话). 比如你想要玩家能否看到单词: 'fuck' 和 'asshole'.
目录
1) 创建匹配脏话的规则并将处理器命名为 'swear' 来便于处理.把规则放到rules.txt内.
match fuck
handle as swear
match asshole
handle as swear
2) 在handlers.txt内创建适合的处理器
swear:
Bypass_With_Permission: "chatcontrol.bypass.swear"
Player_Warn_Message: "&cSwearing is prohibited on this server."
Ignore_Chatdisplay: swears
3) 在settings.yml内启用聊天呼啦圈并能创建名为 'swears'的忽略器作为示例 (示例在下面).
Chat_Ignorer:
Enabled: true
Sets:
swears:
Ignored_By_Default: false
Chat_Ignorer.Sets.swears:忽略器名称.这个名称很重要, 可用于handlers.txt 或用于使用了 'ignore chatdisplay swears' 运算符的规则.
Ignored_By_Default:这个选项决定是否隐藏忽略器内的所有规则. 如果关闭,玩家看得到脏话规则除非玩家输入指令手动隐藏.
4) 进入游戏测试, 给予玩家权限 'chatcontrol.commands.ignore' 和 'chatcontrol.ignoreset.swears'.
玩家 1 尝试输入三句话中的一句.玩家2 暂时什么也不做 Player 2 ,之后如果关闭了'Ignored_By_Default'玩家会看到脏话.
Player 2 输入了执行: '/chc ignore swears'. 会出现一条消息告诉该玩家'swear'忽略组合内的详细已被隐藏.
Player 1 再次说脏话. 他可以看到自己说的话,但玩家 2 看不到 (除非玩家2再次输入指令或服务器重启).