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

“Towny/聊天系统”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
第2行: 第2行:
 
城镇聊天系统的配置位于/Towny/settings内,一项为Channels.yml(聊天频道设置),另一项为ChatConfig(聊天总体设置)
 
城镇聊天系统的配置位于/Towny/settings内,一项为Channels.yml(聊天频道设置),另一项为ChatConfig(聊天总体设置)
 
==聊天总体设置==
 
==聊天总体设置==
  # This file contains all configuration data for channels
+
  # 这个文件包括了所有的聊天设置
  # The formating for them remains in the Towny Config and world files
+
  # 聊天格式也可以在城镇配置文件和世界配置文件内配置
  # so they can still be used on a per world basis.
+
  # 所以可以设置每个世界不同的聊天格式.
 
   
 
   
  # Channels are toggleable using any of the commands listed
+
  # 使用以下指令可以改变聊天频道
  # eg. /tc (would put you in town chat)
+
  # 例如 /tc (进入城镇聊天频道)
  #          doing it again would take you out
+
  #          再次输入会退出该频道
  #         So long as you had the permission node for that channel.
+
  #         你也需要有这个频道的权限才行.
 
   
 
   
  # The channel type is either GLOBAL, TOWN, NATION or DEFAULT.
+
  # 频道类型有 GLOBAL(全服), TOWN(城镇), NATION(国家)或 DEFAULT(默认).
 
  #  These specify what chat formating section they will use
 
  #  These specify what chat formating section they will use
 
  #  and where the chat will go
 
  #  and where the chat will go
 
  # (town goes to all town residents, depending on the range setting)
 
  # (town goes to all town residents, depending on the range setting)
 
   
 
   
  # channeltag is applied if the chat format for that channel has the {channelTag}
+
  # 如果设置了 {channelTag} 就可以改变聊天时显示的标签
 
   
 
   
  # messagecolour sets the colour of the message when sent.
+
  # 聊天颜色设置.
 
   
 
   
  # range is a setting which allows greater control over each channel.
+
  # 聊天范围可以更好地控制各个频道.
  # this will set the maximum distance between players who can hear the message.
+
  # 这会改变一定范围内的玩家才可以看到聊天信息.
  # range is in blocks (if set to a limit).
+
  # 以方块为单位.
 
  #
 
  #
  #    -1 = no limits
+
  #    -1 = 无限制
  #   0 = same world only
+
  #   0 = 只在同一世界内
  #   any positive value = limited range in the same world.
+
  #   任何其他数值 = 在同一世界内限制聊天范围.
 
   
 
   
  # Text colouring
+
  # 文字颜色
 
  # --------------
 
  # --------------
  # Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
+
  # = &0, 深蓝 = &1, 绿 = &2, = &3, = &4
  # Purple = &5, Gold = &6, LightGray = &7, Gray = &8
+
  # = &5, = &6, 浅灰 = &7, = &8
  # DarkPurple = &9, LightGreen = &a, LightBlue = &b
+
  # 深紫 = &9, 淡绿 = &a, 淡蓝 = &b
  # Rose = &c, LightPurple = &d, Yellow = &e, White = &f
+
  # 深红 = &c, 淡紫 = &d, = &e, = &f
 
   
 
   
 
  Channels:
 
  Channels:
第82行: 第82行:
 
          
 
          
 
     local:
 
     local:
         commands: [lc]
+
         commands: [l,lc]
 
         type: GLOBAL
 
         type: GLOBAL
 
         channeltag: '&f[本地频道]'
 
         channeltag: '&f[本地频道]'
第90行: 第90行:
 
         range: '-1'
 
         range: '-1'
 
==聊天频道设置==
 
==聊天频道设置==
     # The formats below will specify the changes made to the player chat when talking.
+
     # 以下的配置会改变玩家的聊天格式.
     # These keys can be used in other plugins that modify the chat format like iChat.
+
     # 这些设置可用于其他像iChat的插件一样来修改聊天格式.
 
    
 
    
     # {worldname} - Displays the world the player is currently in.
+
     # {worldname} - 显示玩家所在世界名.
     # {town} - Displays town name if a member of a town.
+
     # {town} - 显示玩家所在城镇.
     # {townformatted} - Displays town name (if a member of a town) using tag_format.town.
+
     # {townformatted} - 使用 tag_format.town来显示城镇名 (如果玩家有城镇的话).
     # {towntag} - Displays the formated town tag (if a member of a town) using modify_chat.tag_format.town.
+
     # {towntag} - 使用 modify_chat.tag_format.town来显示城镇标签 (如果玩家有城镇的话) .
     # {towntagoverride} - Displays the formated town tag (if a member of a town and present) or falls back to the full name (using modify_chat.tag_format.town).
+
     # {towntagoverride} - 显示城镇标签 (如果玩家有城镇并且在线的话)或者使用全称 (使用 modify_chat.tag_format.town).
 
    
 
    
     # {nation} - Displays nation name if a member of a nation.
+
     # {nation} - 显示国家名.
     # {nationformatted} - Displays nation name (if a member of a nation) using tag_format.town.
+
     # {nationformatted} - 使用 tag_format.town 来显示国家名 .
     # {nationtag} - Displays the formated nation tag (if a member of a nation) using modify_chat.tag_format.nation.
+
     # {nationtag} - 使用modify_chat.tag_format.nation来显示国家标签  .
     # {nationtagoverride} - Displays the formated nation tag (if a member of a nation and present) or falls back to the full name (using modify_chat.tag_format.nation).
+
     # {nationtagoverride} - 显示国家标签 (如果玩家有城镇并且在线的话) 或使用全称 (使用 modify_chat.tag_format.nation).
 
    
 
    
     # {townytag} - Displays the formated town/nation tag as specified in modify_chat.tag_format.both.
+
     # {townytag} - 使用 modify_chat.tag_format.both 的城镇或国家标签.
     # {townyformatted} - Displays the formated full town/nation names as specified in modify_chat.tag_format.both.
+
     # {townyformatted} - 使用 modify_chat.tag_format.both来显示城镇或国家全称.
     # {townytagoverride} - Displays the formated town/nation tag (if present) or falls back to the full names (using modify_chat.tag_format.both).
+
     # {townytagoverride} - 显示国家或城镇标签 (如果在线) 或全称 (使用 modify_chat.tag_format.both).
 
    
 
    
     # {title} - Towny resident Title
+
     # {title} - 城镇居民标题
     # {surname} - Towny resident surname
+
     # {surname} - 城镇居民姓氏
     # {townynameprefix} - Towny name prefix taken from the townLevel/nationLevels
+
     # {townynameprefix} - 根据 城镇/国家 等级显示的前缀
     # {townynamepostfix} - Towny name postfix taken from the townLevel/nationLevels.
+
     # {townynamepostfix} - 根据 城镇/国家 等级显示的后缀.
     # {townyprefix} - Towny resident title, or townynameprefix if no title exists
+
     # {townyprefix} - 城镇居民标题, 如果没有标题的话会显示 城镇/国家 名前缀
     # {townypostfix} - Towny resident surname, or townynamepostfix if no surname exists
+
     # {townypostfix} - 城镇居民姓氏, 如果没设置姓氏的会使用 城镇/国家 名后缀
 
    
 
    
     # {townycolor} - Towny name colour for king/mayor/resident
+
     # {townycolor} - 国王/城镇/居民 的名字的颜色
     # {group} - Players group name pulled from your permissions plugin
+
     # {group} - 玩家所在权限组   
     # {permprefix} - Permission group prefix
+
     # {permprefix} - 权限组前缀
     # {permsuffix} - Permission group suffix.
+
     # {permsuffix} - 权限组后缀
 
    
 
    
     # {playername} - Default player name.
+
     # {playername} - 默认玩家名.
     # {modplayername} - Modified player name (use if Towny is over writing some other plugins changes).
+
     # {modplayername} - 修改过的玩家名 (将在城镇覆盖其他聊天插件时使用).
     # {msg} - The message sent.
+
     # {msg} - 发送的信息.
 
      
 
      
     # {channelTag} - Defined in the channels entry in Channels.yml
+
     # {channelTag} - Channels.yml 内设置的聊天频道标签
     # {msgcolour} - Defined in the channels entry in Channels.yml
+
     # {msgcolour} - Channels.yml 内设置的聊天颜色
 
      
 
      
     # Text colouring
+
     # 文字颜色
 
     # --------------
 
     # --------------
     # Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
+
     # = &0, 深蓝 = &1, 绿 = &2, = &3, = &4
     # Purple = &5, Gold = &6, LightGray = &7, Gray = &8
+
     # = &5, = &6, 浅灰 = &7, = &8
     # DarkPurple = &9, LightGreen = &a, LightBlue = &b
+
     # 深紫 = &9, 淡绿 = &a, 淡蓝 = &b
     # Rose = &c, LightPurple = &d, Yellow = &e, White = &f
+
     # 深红 = &c, 淡紫 = &d, = &e, = &f
 
      
 
      
     # Text altering
+
     # 文字格式
 
     # -------------
 
     # -------------
     # Bold = &l, Italics = &o, Underlined = &n,  
+
     # 粗体 = &l, 斜体 = &o, 下划线 = &n,  
     # Magic = &k, Strike = &m, Reset = &r
+
     # 魔法 = &k, Strike = &m, 重置格式 = &r
 
    
 
    
 
     # Spam_time set the minimum time between messages to be flagged as spam
 
     # Spam_time set the minimum time between messages to be flagged as spam

2018年1月6日 (六) 13:49的版本

配置

城镇聊天系统的配置位于/Towny/settings内,一项为Channels.yml(聊天频道设置),另一项为ChatConfig(聊天总体设置)

聊天总体设置

# 这个文件包括了所有的聊天设置
# 聊天格式也可以在城镇配置文件和世界配置文件内配置
# 所以可以设置每个世界不同的聊天格式.

# 使用以下指令可以改变聊天频道
# 例如 /tc (进入城镇聊天频道)
#          再次输入会退出该频道
#         你也需要有这个频道的权限才行.

# 频道类型有 GLOBAL(全服), TOWN(城镇), NATION(国家)或 DEFAULT(默认).
#  These specify what chat formating section they will use
#  and where the chat will go
# (town goes to all town residents, depending on the range setting)

# 如果设置了 {channelTag} 就可以改变聊天时显示的标签

# 聊天颜色设置.

# 聊天范围可以更好地控制各个频道.
# 这会改变一定范围内的玩家才可以看到聊天信息.
# 以方块为单位.
#
#     -1 = 无限制
#	  0 = 只在同一世界内
#	  任何其他数值 = 在同一世界内限制聊天范围.

# 文字颜色
# --------------
# 黑 = &0, 深蓝 = &1, 绿 = &2, 蓝 = &3, 红 = &4
# 紫 = &5, 金 = &6, 浅灰 = &7, 灰 = &8
# 深紫 = &9, 淡绿 = &a, 淡蓝 = &b
# 深红 = &c, 淡紫 = &d, 黄 = &e, 白 = &f

Channels:
    general:
        commands: [g]
        type: GLOBAL
        channeltag: 
        messagecolour: '&f'
        permission: 'towny.chat.general'
        craftIRCTag: 'admin'
        range: '-1'
        
    town:
        commands: [tc]
        type: TOWN
        channeltag: '&f[&3城镇频道&f]'
        messagecolour: '&b'
        permission: 'towny.chat.town'
        craftIRCTag: 'admin'
        range: '-1'
         
    nation:
        commands: [nc]
        type: NATION
        channeltag: '&f[&6国家频道&f]'
        messagecolour: '&e'
        permission: 'towny.chat.nation'
        craftIRCTag: 'admin'
        range: '-1'
        
    admin:
        commands: [a,admin]
        type: DEFAULT
        channeltag: '&f[&4管理员频道&f]'
        messagecolour: '&c'
        permission: 'towny.chat.admin'
        craftIRCTag: 'admin'
        range: '-1'
        
    mod:
        commands: [mod]
        type: DEFAULT
        channeltag: '&f[&9MOD&f]'
        messagecolour: '&5'
        permission: 'towny.chat.mod'
        craftIRCTag: 'admin'
        range: '-1'
        
    local:
        commands: [l,lc]
        type: GLOBAL
        channeltag: '&f[本地频道]'
        messagecolour: '&f'
        permission: 'towny.chat.local'
        craftIRCTag: 'admin'
        range: '-1'

聊天频道设置

   # 以下的配置会改变玩家的聊天格式.
   # 这些设置可用于其他像iChat的插件一样来修改聊天格式.
  
   # {worldname} - 显示玩家所在世界名.
   # {town} - 显示玩家所在城镇.
   # {townformatted} -  使用 tag_format.town来显示城镇名 (如果玩家有城镇的话).
   # {towntag} - 使用 modify_chat.tag_format.town来显示城镇标签 (如果玩家有城镇的话) .
   # {towntagoverride} - 显示城镇标签 (如果玩家有城镇并且在线的话)或者使用全称 (使用 modify_chat.tag_format.town).
  
   # {nation} - 显示国家名.
   # {nationformatted} - 使用 tag_format.town 来显示国家名 .
   # {nationtag} - 使用modify_chat.tag_format.nation来显示国家标签  .
   # {nationtagoverride} - 显示国家标签 (如果玩家有城镇并且在线的话) 或使用全称 (使用 modify_chat.tag_format.nation).
  
   # {townytag} - 使用 modify_chat.tag_format.both 的城镇或国家标签.
   # {townyformatted} - 使用 modify_chat.tag_format.both来显示城镇或国家全称.
   # {townytagoverride} - 显示国家或城镇标签 (如果在线) 或全称 (使用 modify_chat.tag_format.both).
  
   # {title} - 城镇居民标题
   # {surname} - 城镇居民姓氏
   # {townynameprefix} - 根据 城镇/国家 等级显示的前缀
   # {townynamepostfix} - 根据 城镇/国家 等级显示的后缀.
   # {townyprefix} - 城镇居民标题, 如果没有标题的话会显示 城镇/国家 名前缀
   # {townypostfix} - 城镇居民姓氏, 如果没设置姓氏的会使用 城镇/国家 名后缀
  
   # {townycolor} - 国王/城镇/居民 的名字的颜色
   # {group} - 玩家所在权限组    
   # {permprefix} - 权限组前缀
   # {permsuffix} - 权限组后缀
  
   # {playername} - 默认玩家名.
   # {modplayername} - 修改过的玩家名 (将在城镇覆盖其他聊天插件时使用).
   # {msg} - 发送的信息.
   
   # {channelTag} - 在 Channels.yml 内设置的聊天频道标签
   # {msgcolour} - 在 Channels.yml 内设置的聊天颜色
   
   # 文字颜色
   # --------------
   # 黑 = &0, 深蓝 = &1, 绿 = &2, 蓝 = &3, 红 = &4
   # 紫 = &5, 金 = &6, 浅灰 = &7, 灰 = &8
   # 深紫 = &9, 淡绿 = &a, 淡蓝 = &b
   # 深红 = &c, 淡紫 = &d, 黄 = &e, 白 = &f
   
   # 文字格式
   # -------------
   # 粗体 = &l, 斜体 = &o, 下划线 = &n, 
   # 魔法 = &k, Strike = &m, 重置格式 = &r
  
   # Spam_time set the minimum time between messages to be flagged as spam
   spam_time: 0.5
   
   # If using our updated HeroicDeath.jar and craftIRC 3.1 (dev), you can
   #configure what IRC channels you want death messages relayed to.
   HeroicDeathToIRC:
     enabled: true
     # comma delimited list of craftIRC channel tags 'admin,blah,blah'.
     craftIRCTags: 'admin'
 
   channel_formats:
     # This is the format which will be used for GLOBAL chat/channels.
     # This is also the format used when you have modify_chat.enable: true, but use other plugins to handle chat.
     global: '{channelTag}{townytagoverride}{townycolor}{permprefix}{townyprefix}{modplayername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
     # TOWN channel types.
     town: '{channelTag} {townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
     # NATION channel types.
     nation: '{channelTag}{towntagoverride}{townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
     # DEFAULT channel types.
     default: '{channelTag} {permprefix}{playername}{permsuffix}&f:{msgcolour} {msg}'
     
   tag_formats:
       world: '&f[&f%s&f] '
       town: '&f[&3%s&f] '
       nation: '&f[&e%s&f] '
       # First %s is the nation tag, second is the town tag.
       both: '&f[&6%s&f|&3%s&f] '
       
     # Chat colours
   colour:
     king: '&6'
     mayor: '&b'
     resident: '&f'
     
   modify_chat:
     # This is used for when you don't have another plugin to format chat.
     # or you want some other plugin to handle open chat, but want Towny formatting.
     # It will cause Towny to overwrite any other plugins alterations to the format.
     enable: 'true'
     # If true the chat formats will be read from below to allow per world formatting.
     # These can then be altered individually.
     per_world: 'false'
     # If true any player who speaks in a channel in which he cannot be heard, 
     # either by being along in the channel or out-of-range of another player in his chat channel,
     # that player will see a message saying they cannot be heard.
     alone_message: 'false'
     # This allows you to set your alone messaeg.
     alone_message_string: '在这个频道内没人能听到你说的话.'
   worlds:
     'world_the_end':
       global: '{channelTag} {worldname}{townytagoverride}{townycolor}{permprefix}{group} {townyprefix}{modplayername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       town: '{channelTag} {townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       nation: '{channelTag}{towntagoverride}{townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       default: '{channelTag} {permprefix}{playername}{permsuffix}&f:{msgcolour} {msg}'
     'world':
       global: '{channelTag} {worldname}{townytagoverride}{townycolor}{permprefix}{group} {townyprefix}{modplayername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       town: '{channelTag} {townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       nation: '{channelTag}{towntagoverride}{townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       default: '{channelTag} {permprefix}{playername}{permsuffix}&f:{msgcolour} {msg}'
     'world_nether':
       global: '{channelTag} {worldname}{townytagoverride}{townycolor}{permprefix}{group} {townyprefix}{modplayername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       town: '{channelTag} {townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       nation: '{channelTag}{towntagoverride}{townycolor}{permprefix}{townyprefix}{playername}{townypostfix}{permsuffix}&f:{msgcolour} {msg}'
       default: '{channelTag} {permprefix}{playername}{permsuffix}&f:{msgcolour} {msg}'