mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 14:38:57 +00:00
* Add optional listen and speak nodes to TownyChat channels. Channels.yml can now accept speakpermission and listenpermission keys in channels. When they are set the players just have the set values in order to speak/listen to a channel. This makes it possible to create channels that can only be heard, and not spoken into. Closes https://github.com/TownyAdvanced/Towny/issues/1020 * Update the default channels.yml with new comments about permissions
118 lines
3.9 KiB
YAML
118 lines
3.9 KiB
YAML
# 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}
|
|
|
|
# permission is an optional key in a channel, when it is set the given value
|
|
# will be the permission node required to listen/speak in the channel. It is used
|
|
# when either spearkpermission or listenpermission is not set.
|
|
|
|
# speakpermission is an optional key in a channel, when it is set the given value
|
|
# will be the permission node required to speak in the channel.
|
|
|
|
# listenpermission is an optional key in a channel, when it is set the given value
|
|
# will be the permission node required to listen to the channel.
|
|
|
|
# leavepermission is an optional key in a channel, when it is set the given value
|
|
# will be the permission node required to listen to the channel.
|
|
|
|
# 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: '&f[g]'
|
|
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'
|