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

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

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“开坑待填”)
 
第1行: 第1行:
开坑待填
+
=配置=
 +
城镇聊天系统的配置位于/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)
 +
#          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.
 +
#  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 is applied if the chat format for that channel has the {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
 +
#   0 = same world only
 +
#   any positive value = limited range in the same world.
 +
 +
# Text colouring
 +
# --------------
 +
# Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
 +
# Purple = &5, Gold = &6, LightGray = &7, Gray = &8
 +
# DarkPurple = &9, LightGreen = &a, LightBlue = &b
 +
# Rose = &c, LightPurple = &d, Yellow = &e, White = &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: [lc]
 +
        type: GLOBAL
 +
        channeltag: '&f[本地频道]'
 +
        messagecolour: '&f'
 +
        permission: 'towny.chat.local'
 +
        craftIRCTag: 'admin'
 +
        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.
 +
 
 +
    # {worldname} - Displays the world the player is currently in.
 +
    # {town} - Displays town name if a member of a town.
 +
    # {townformatted} - Displays town name (if a member of a town) using tag_format.town.
 +
    # {towntag} - Displays the formated town tag (if a member of a town) using 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).
 +
 
 +
    # {nation} - Displays nation name if a member of a nation.
 +
    # {nationformatted} - Displays nation name (if a member of a nation) using tag_format.town.
 +
    # {nationtag} - Displays the formated nation tag (if a member of a nation) using 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).
 +
 
 +
    # {townytag} - Displays the formated town/nation tag as specified in modify_chat.tag_format.both.
 +
    # {townyformatted} - Displays the formated full town/nation names as specified in 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).
 +
 
 +
    # {title} - Towny resident Title
 +
    # {surname} - Towny resident surname
 +
    # {townynameprefix} - Towny name prefix taken from the townLevel/nationLevels
 +
    # {townynamepostfix} - Towny name postfix taken from the townLevel/nationLevels.
 +
    # {townyprefix} - Towny resident title, or townynameprefix if no title exists
 +
    # {townypostfix} - Towny resident surname, or townynamepostfix if no surname exists
 +
 
 +
    # {townycolor} - Towny name colour for king/mayor/resident
 +
    # {group} - Players group name pulled from your permissions plugin
 +
    # {permprefix} - Permission group prefix
 +
    # {permsuffix} - Permission group suffix.
 +
 
 +
    # {playername} - Default player name.
 +
    # {modplayername} - Modified player name (use if Towny is over writing some other plugins changes).
 +
    # {msg} - The message sent.
 +
   
 +
    # {channelTag} - Defined in the channels entry in Channels.yml
 +
    # {msgcolour} - Defined in the channels entry in Channels.yml
 +
   
 +
    # Text colouring
 +
    # --------------
 +
    # Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
 +
    # Purple = &5, Gold = &6, LightGray = &7, Gray = &8
 +
    # DarkPurple = &9, LightGreen = &a, LightBlue = &b
 +
    # Rose = &c, LightPurple = &d, Yellow = &e, White = &f
 +
   
 +
    # Text altering
 +
    # -------------
 +
    # Bold = &l, Italics = &o, Underlined = &n,
 +
    # Magic = &k, Strike = &m, Reset = &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}'

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

配置

城镇聊天系统的配置位于/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)
#          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.
#  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 is applied if the chat format for that channel has the {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
#	  0 = same world only
#	  any positive value = limited range in the same world.

# Text colouring
# --------------
# Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
# Purple = &5, Gold = &6, LightGray = &7, Gray = &8
# DarkPurple = &9, LightGreen = &a, LightBlue = &b
# Rose = &c, LightPurple = &d, Yellow = &e, White = &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: [lc]
        type: GLOBAL
        channeltag: '&f[本地频道]'
        messagecolour: '&f'
        permission: 'towny.chat.local'
        craftIRCTag: 'admin'
        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.
  
   # {worldname} - Displays the world the player is currently in.
   # {town} - Displays town name if a member of a town.
   # {townformatted} - Displays town name (if a member of a town) using tag_format.town.
   # {towntag} - Displays the formated town tag (if a member of a town) using 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).
  
   # {nation} - Displays nation name if a member of a nation.
   # {nationformatted} - Displays nation name (if a member of a nation) using tag_format.town.
   # {nationtag} - Displays the formated nation tag (if a member of a nation) using 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).
  
   # {townytag} - Displays the formated town/nation tag as specified in modify_chat.tag_format.both.
   # {townyformatted} - Displays the formated full town/nation names as specified in 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).
  
   # {title} - Towny resident Title
   # {surname} - Towny resident surname
   # {townynameprefix} - Towny name prefix taken from the townLevel/nationLevels
   # {townynamepostfix} - Towny name postfix taken from the townLevel/nationLevels.
   # {townyprefix} - Towny resident title, or townynameprefix if no title exists
   # {townypostfix} - Towny resident surname, or townynamepostfix if no surname exists
  
   # {townycolor} - Towny name colour for king/mayor/resident
   # {group} - Players group name pulled from your permissions plugin
   # {permprefix} - Permission group prefix
   # {permsuffix} - Permission group suffix.
  
   # {playername} - Default player name.
   # {modplayername} - Modified player name (use if Towny is over writing some other plugins changes).
   # {msg} - The message sent.
   
   # {channelTag} - Defined in the channels entry in Channels.yml
   # {msgcolour} - Defined in the channels entry in Channels.yml
   
   # Text colouring
   # --------------
   # Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4
   # Purple = &5, Gold = &6, LightGray = &7, Gray = &8
   # DarkPurple = &9, LightGreen = &a, LightBlue = &b
   # Rose = &c, LightPurple = &d, Yellow = &e, White = &f
   
   # Text altering
   # -------------
   # Bold = &l, Italics = &o, Underlined = &n, 
   # Magic = &k, Strike = &m, Reset = &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}'