Add optional listen and speak nodes to TownyChat channels. (#53)

* 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
This commit is contained in:
LlmDl authored and GitHub committed 2023-12-05 17:36:28 -06:00
1 parent 834e2dc7d9
commit 8e0664d212
8 files changed
+79 -14

No files matched your search

+13
View File
@@ -14,6 +14,19 @@
# 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.