• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“ChatControl Pro/WIKI/聊天忽略”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
第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>
The interesting part is 'Ignore_Chatdisplay', we'll get to it later.
+
 
  
 
=== 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: The name of the ignorer. This is simply the name of the filter that players will use in-game. The section name is important, as it is used further in handlers.txt in step #3 or can also be used in rules with 'ignore chatdisplay swears' operator.
+
Chat_Ignorer.Sets.swears:忽略器名称.这个名称很重要, 可用于handlers.txt 或用于使用了 'ignore chatdisplay swears' 运算符的规则.
  
Ignored_By_Default: This option determines whether to display or hide all rules that has assigned this ignorer by default. On false, players will see swearing unless they manually hide it using a command.
+
Ignored_By_Default:这个选项决定是否隐藏忽略器内的所有规则. 如果关闭,玩家看得到脏话规则除非玩家输入指令手动隐藏.
  
 
=== 4) 进入游戏测试, 给予玩家权限 'chatcontrol.commands.ignore' 和 'chatcontrol.ignoreset.swears'. ===
 
=== 4) 进入游戏测试, 给予玩家权限 'chatcontrol.commands.ignore' 和 'chatcontrol.ignoreset.swears'. ===
Player 1 tries to write one of the three words in the game chat. Player 2 has not done anything so far, and since the option 'Ignored_By_Default' is to false (as above), he will see the swear.
+
玩家 1 尝试输入三句话中的一句.玩家2 暂时什么也不做 Player 2 ,之后如果关闭了'Ignored_By_Default'玩家会看到脏话.
  
Player 2 so executes following command: '/chc ignore swears'. A message appears informing him that the messages from 'swear' ignore set are now hidden.
+
Player 2 输入了执行: '/chc ignore swears'. 会出现一条消息告诉该玩家'swear'忽略组合内的详细已被隐藏.
  
Player 1 swears again. He will see his own message since he has not done anything, but player 2 won't be able to see the swear (unless he executes the command above again or server restarts).
+
Player 1 再次说脏话. 他可以看到自己说的话,但玩家 2 看不到 (除非玩家2再次输入指令或服务器重启).

2019年1月29日 (二) 16:08的版本

子页面

常见疑问

权限

指令

频道

JSON

分组

格式

Discord

获取帮助

变量

处理器

JavaScript变量

多世界聊天格式

自定义指令缩写

自定义服务器名

监听优先度

聊天忽略

本地化

聊天忽略器这个名字并不好听,但它可以让玩家屏蔽掉他们不想看到的消息 (如脏话). 比如你想要玩家能否看到单词: '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再次输入指令或服务器重启).