ConfigurationSections rather than Maps which aren't easily read on their
first creation and then subsequent load.
- It is no longer recommended to delete your channels.yml when
updating from TownyChat 0.109 or earlier.
* Give channels.yml the abilities of the CommentedConfiguration
Now possible to update existing channels.yml files when the comments
should change.
Adds missing comments from the channels.yml, better explaining features
available to channels.
Deletes the old configuration handler that loaded yaml file details.
* Update channels comments and deprecate autojoin
* Fixes for legacy configs loading improperly.
* Add missing comments, update changelog.
- The channels in the channels.yml may now be given listenpermission
and speakpermission keys, whose values will be the permission node
require to either speak or listen to the channel.
- When these are set on a channel they will make the permission key
of the channel redundant and unused.
- Closes https://github.com/TownyAdvanced/Towny/issues/1020.
* 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
- When a resident has a primary rank with a prefix this will display
their prefix with a space added to the end.
- Primary ranks and their prefixes are set in the townyperms.yml
like so:
- towny.rankpriority.#
- towny.rankprefix.<somewordshere>
- By default channels are focusable and adding focusable: true has
no effect.
- Adding focusable: false will prevent players making their primary
channel, ie using /tc with no message.
- Default: true
- If true players that say !somewords will have their message sent
to a global type channel with unlimited range (usually your general
chat.)
won't parse.
- On the off chance you have put unparse-able placeholders into your
chatconfig.yml you will be made aware of them in your log.
- This new system should be able to let TownyChat format your chat
properly when this occurs.
- Update min. Towny version to 0.98.4.0.
* Replace towny modes usage with player channel map.
Ends TownyChat's usage of Towny's Resident Modes to determine which
channel a player is actively chatting into.
Done as an attempt to fix
https://github.com/TownyAdvanced/Towny/issues/5451 but did not result in
solving the bug, in the end this is probably the correct thing to do
anyways.
* Add temporary debug messaging, make the directChat map store the channel
name instead of the channel command.
* Handle Spigot 1.18.1 config changes. Remove debug messaging.