* 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.
* Cleaned up diff
* Documentation on how to add a sound to a channel
* Added missing null check before trying to play a sound
* Warn when invalid sound is being used
* Set channel sound to null if invalid
* Only run if channel sound not null
* Implemented suggested changes
* One more change
- Add persistant leaving for channels.
- Uses Towny resident metadata, you will be able to see ignored
channels on your /res status screen.
- Normal joining/leaving commands are used just like before.
- Closes https://github.com/TownyAdvanced/Towny/issues/3133.
- Bump minimum Towny version to 0.96.3.0.
- Allow for colouring the alone message.
- Adapt to change in Towny 0.96.2.17 Version code.
- Build against 0.96.2.17, minimum required Towny version now
0.96.2.17.
- Add Hex Color Support to TownyChat, courtesy of Siris with PR #27.
- The format for hex colors is a # symbol followed by 6 numbers.
- You can use any of the 3 formats:
- #RRGGBB
- &#RRGGBB
- {#RRGGBB}
Adjusted comments to reflect a change where using the same chat channel command (eg /tc) repeatedly no longer toggles the chat channel. Players must swap channels via using their desired channels command (eg to leave /tc and get back to general, a player must use the command /g, rather than running /tc a second time).
no longer formatted by TownyChat if modify_chat.enabled is false.
- DEFAULT, TOWN, NATION & ALLIANCE types are still formatted by
Towny when modify_chat.enable is false.
- Closes: https://github.com/TownyAdvanced/Towny/issues/3568
- Altered behaviour:
- Previously using the channel command for the channel you're
already speaking in would move you to the next default channel,
or if non was found, the next global channel.
- Ex: While being in townchat you use "/tc" you could find yourself
in globalchat.
- Now you will be told you're already in the channel you just used
the command to enter into.