MertMC
Demir Cevheri Gibiyim
- Katılım
- 17 Ağustos 2017
- Mesajlar
- 217
- Elmaslar
- 37
- Puanlar
- 13.420
- Yaş
- 22
Towny plugini içerisindeki chat ayarlarıyla ilgili bir sorunum var.
Oyun içerisinde şu şekil gözüküyor:
ismin başındaki [g] [world] ve tekrar grup adını yazmasını nasıl engellerim ?
ChatConfig.yml içerisi:
Channels.yml içerisi:
Oyun içerisinde şu şekil gözüküyor:
ismin başındaki [g] [world] ve tekrar grup adını yazmasını nasıl engellerim ?
ChatConfig.yml içerisi:
Kod:
version:
# This is the current version of Towny. Please do not edit.
version: '0.107'
# This is for showing the changelog on updates. Please do not edit.
last_run_version: '0.107'
############################################################
# +------------------------------------------------------+ #
# | ChatConfig.yml | #
# +------------------------------------------------------+ #
############################################################
#
# The formats below will specify the changes made to the player chat when talking.
#
# {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.
# {permuserprefix} - Permission user prefix.
# {permusersuffix} - Permission user suffix.
# {permgroupprefix} - Permission group prefix.
# {permgroupsuffix} - Permission group suffix.
# {permprefix} - Permission group and user prefix.
# {permsuffix} - Permission group and user suffix.
#
# {primaryresidentrank} - When a resident has a primary rank with a prefix this will display their prefix with a space added to the end.
#
# {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
#
# Hex Chat Coloring
# -----------------
# Valid formats:
# #RRGGBB
# &#RRGGBB
# {#RRGGBB}
chatconfigcomments: ''
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: '{town}{playername}&f:{msgcolour} {msg}'
# TOWN channel types.
town: '{town}{playername}&f:{msgcolour} {msg}'
# NATION channel types.
nation: '{town}{playername}&f:{msgcolour} {msg}'
# ALLIANCE channel types.
alliance: '{town}{playername}&f:{msgcolour} {msg}'
# DEFAULT channel types.
default: '{town}{playername}&f:{msgcolour} {msg}'
tag_formats:
world: ''
town: ''
nation: ''
# First %s is the nation tag, second is the town tag.
# You may also use %t for the town tag and %n for the nation tag!
both: ''
colour:
king: '&6'
mayor: '&b'
resident: '&f'
nomad: '&f'
modify_chat:
# When true Towny will format all ChannelTypes,
# When false Towny will only format TOWN, NATION, ALLIANCE, DEFAULT types.
# When false Towny will not format GLOBAL types, leaving other chat plugins to do the work.
enable: 'false'
# 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 message.
alone_message_string: No one in range can hear you or you are alone in this channel.
# If true players will see You have joined channel {channel} message on joining the server.
display_channel_join_message_on_joining_the_server: 'true'
# If true players that say !somewords will have their message sent to a global type channel with unlimited range (usually your general chat.)
allow_exclamation_point_to_shout: 'true'
Channels.yml içerisi:
Kod:
# 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.
# In order to swap channels, you must use the desired channel's command
# to enter the new chat and leave the old one.
# eg. /tc (would put you in town chat) and typing it again would not change
# you channel. To get back to general chat, you can do /g.
# 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.
# focusable is a setting which allows players to set their focused channel,
# ie: using the /tc command with no message. Channels are focusable by default,
# so there is no point to adding focusable: true. You make a channel un-focusable
# by adding focusable: false.
# 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
# Sounds
# ------
# Each channel can have a sound by adding sound: SOUND_TO_USE
# Sounds can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
Channels:
general:
commands: [g]
type: GLOBAL
channeltag: ''
messagecolour: '&f'
permission: 'towny.chat.general'
default: true
range: '-1'
spam_time: '0.5'
town:
commands: [tc]
type: TOWN
channeltag: '&f[&3TC&f]'
messagecolour: '&b'
permission: 'towny.chat.town'
range: '-1'
spam_time: '0.5'
nation:
commands: [nc]
type: NATION
channeltag: '&f[&6NC&f]'
messagecolour: '&e'
permission: 'towny.chat.nation'
range: '-1'
spam_time: '0.5'
alliance:
commands: [ac]
type: ALLIANCE
channeltag: '&f[&2AC&f]'
messagecolour: '&a'
permission: 'towny.chat.alliance'
range: '-1'
spam_time: '0.5'
admin:
commands: [a,admin]
type: DEFAULT
channeltag: '&f[&4ADMIN&f]'
messagecolour: '&c'
permission: 'towny.chat.admin'
range: '-1'
mod:
commands: [m,mod]
type: DEFAULT
channeltag: '&f[&9MOD&f]'
messagecolour: '&5'
permission: 'towny.chat.mod'
range: '-1'
local:
commands: [l,lc]
type: GLOBAL
channeltag: '&f[local]'
messagecolour: '&f'
permission: 'towny.chat.local'
range: '100'