100 Commits
Author SHA1 Message Date
LlmDl ba695ae06c - Add support for channels.yml's with legacy channelTag keys. (#59) 2024-02-19 17:29:31 -06:00
LlmDl e8166d498f - Actually fix {channelTag} not parsing properly. (#58) 2024-02-08 08:48:17 -06:00
LlmDl fbedd4efb4 - Fix channelTag not parsing properly. (#57)
- Closes https://github.com/TownyAdvanced/Towny/issues/7239.
2024-02-06 23:43:09 -06:00
LlmDl 5f0ef74b20 Fix local channel having default: true, enable upper-case channel names. (#56)
* Fix local channel having default: true, enable upper-case channel names.

* remove commented-out code.
2024-01-22 08:40:04 -06:00
LlmDl 4524260ce1 - Fix creation of channels.yml, opting to make channels into proper (#55)
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.
2024-01-18 11:00:02 -06:00
LlmDl 93df8fb296 Add papermc repo to hopefully fix build. 2023-12-27 08:07:27 -06:00
LlmDl fa2bc13bc9 Update more dependencies in the pom. 2023-12-27 08:03:38 -06:00
LlmDl 688118e46c Update Towny dependency info. 2023-12-27 07:54:45 -06:00
LlmDl 7f20d83bea Give channels.yml the abilities of the CommentedConfiguration. (#54)
* 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.
2023-12-27 07:50:09 -06:00
LlmDl 6540b2cf1d - Update min. Towny version to 0.100.0.0. 2023-12-06 08:59:17 -06:00
LlmDl 7265f58637 - Add optional listen and speak nodes to TownyChat channels.
- 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.
2023-12-06 08:57:35 -06:00
LlmDl 8e0664d212 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
2023-12-05 17:36:28 -06:00
LlmDl 834e2dc7d9 Update deploy_release.yml 2023-11-30 07:27:47 -06:00
LlmDl 43a66a3a1b Merge pull request #52 from TownyAdvanced/fix/perworld_section
Fix worlds section not generating when per-world is set to true in the chatconfig.yml.
2023-08-17 16:10:41 -05:00
LlmDl a47f2e46fe Fix worlds section not generating when per-world is set to true in the
chatconfig.yml.
2023-08-17 16:10:19 -05:00
LlmDl c4c442d43c Merge branch 'master' of https://github.com/TownyAdvanced/TownyChat.git 2023-07-20 12:40:18 -05:00
LlmDl dea1876ce1 - Fix help menus not being coloured properly.
- Update min. Towny version to 0.99.5.0.
2023-07-20 12:40:12 -05:00
LlmDl cc3e219f05 Merge pull request #51 from TownyAdvanced/bump_towny_version
Bump min. Towny version to 0.99.5.0
2023-07-20 09:44:34 -05:00
LlmDl 6152de8760 Merge pull request #50 from TownyAdvanced/fix/help_menu_colours
Fix help menus not being coloured properly.
2023-07-20 09:44:05 -05:00
LlmDl 80157f7d7d Bump min. Towny version to 0.99.5.0 2023-07-20 09:43:17 -05:00
LlmDl 5a7e48a7ce Fix help menus not being coloured properly. 2023-07-20 09:42:47 -05:00
LlmDl 6fa247fed7 Update deploy_release.yml 2023-07-01 10:00:18 -05:00
LlmDl 1efda5c68f Update deploy_release.yml 2023-07-01 09:51:55 -05:00
LlmDl 7c650200b5 Merge pull request #49 from TownyAdvanced/fake_release
Fake release
2023-07-01 09:50:41 -05:00
LlmDl 0eba3bdddb Fake release 2023-07-01 09:48:48 -05:00
LlmDl e36fdb9870 - Handle knock-off Essentials plugins fooling TownyChat into hooking
the real EssentialsX.
2023-06-05 15:26:01 -05:00
LlmDl a1c7e9f7c2 - Remove usage of Version, using new Towny version checker instead. 2023-06-04 11:26:06 -05:00
LlmDl 69c0d2f092 - Update min. Towny version to 0.99.1.0. 2023-05-30 10:41:09 -05:00
LlmDl 72448bec0c Merge pull request #48 from TownyAdvanced/fix/ver-check
Fix version check
2023-05-30 10:36:59 -05:00
LlmDl 666458f7f3 - Add new chat slug: {primaryresidentrank}
- 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>
2023-05-30 10:35:45 -05:00
LlmDl 11b86c7f1c - Add focusable option to channels in the channels.yml.
- 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.
2023-05-09 17:11:15 -05:00
LlmDl f9e8b22c51 Add focusable option to channels, allowing servers to prevent players (#47)
from focusing onto channels, ie preventing using /tc with no message.
2023-05-09 17:08:24 -05:00
LlmDl 60168fae2c Scoot this field up higher. 2023-05-09 14:55:59 -05:00
LlmDl bf5ba6f07a - Update min. Towny version to 0.99.0.0.
- Update EssentialsX maven details.
  - Translate spy message colour codes.
    - Closes https://github.com/TownyAdvanced/Towny/issues/6634
2023-04-27 10:20:15 -05:00
LlmDl fe47196db7 Make forceglobal more readable, maybe even somehow fix an issue a
sponsor had.
2023-02-02 21:08:34 -06:00
LlmDl 93aa36719c Merge pull request #45 from TownyAdvanced/feature/exclamation_point_option
Make exclamation point shouting optional.
2023-01-22 09:40:15 -06:00
LlmDl 238b3cb45a - New Config Option: allow_exclamation_point_to_shout
- 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.)
2023-01-22 09:38:43 -06:00
LlmDl 915285a066 Merge pull request #44 from TownyAdvanced/fix/parse_placeholders_always
Parse placeholders when we're unable to find a channel to speak into, but modify_chat is true.
2023-01-21 15:41:54 -06:00
LlmDl a4a053d32b Parse placeholders when we're unable to find a channel to speak into,
but modify_chat is true.
2023-01-21 15:41:12 -06:00
LlmDl b0f1863eb5 Fix workflow and pom for GH action. 2023-01-11 08:15:57 -06:00
LlmDl 56c0dca478 Update changelog. 2023-01-11 07:03:24 -06:00
LlmDl 208518d715 Merge pull request #43 from TownyAdvanced/fix/join_channel_permission_test
Fix permission test used with /channel join {channelname}.
2023-01-11 07:02:25 -06:00
LlmDl ee63705327 Fix permission test used with /channel join {channelname}. 2023-01-11 07:01:57 -06:00
LlmDl 709cad2a11 Merge pull request #42 from TownyAdvanced/feature/towny_0_98_5_0
Update min. Towny version to 0.98.5.0 & replace deprecated methods.
2023-01-11 06:47:43 -06:00
LlmDl 722f5c7bea - Update min. Towny version to 0.98.5.0 & replace deprecated methods. 2023-01-09 14:31:09 -06:00
LlmDl 90459c2841 Update how we set the Towny version. 2023-01-07 17:35:30 -06:00
LlmDl 021fa47d00 Create deploy_release.yml 2023-01-06 16:21:59 -06:00
LlmDl 261c789ed6 Merge pull request #41 from TownyAdvanced/fix/town_chat_limbo
Fix a player who has lost their town being stuck in /tc or /nc.
2023-01-03 17:58:51 -06:00
LlmDl f1db14c406 - Fix a player who has lost their town being stuck in /tc or /nc. 2023-01-03 17:58:04 -06:00
LlmDl 411b1315ad Merge pull request #40 from TownyAdvanced/fix/ch_mutelist_feedback
Fix incorrect lang string called in /ch mutelist {channelname}
2022-12-22 10:44:51 -06:00
LlmDl 792a392c72 - Fix incorrect lang string called in /ch mutelist {channelname} 2022-12-22 10:44:06 -06:00
LlmDl 0af209cba3 Merge pull request #39 from TownyAdvanced/internal_essentials_support
Use internal Essentials instance.
2022-12-19 19:08:31 -06:00
LlmDl 7b932e2310 Use internal Essentials instance.
Drops the usage of Towny's Essentials instance.
2022-12-19 19:06:41 -06:00
LlmDl be073a1c49 - Make TownyChat better able to handle broken PAPI placeholders that
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.
2022-12-07 17:10:34 -06:00
LlmDl 89aba7a0c1 Fix UnknownFormatConversionExceptions being thrown by badly parsed PAPIPlaceholders. (#38)
* Fix UnknownFormatConversionExceptions being thrown by badly parsed
PAPIPlaceholders.

* Explain where the admin can fix this.
2022-12-07 17:07:28 -06:00
LlmDl a35961367e Make previous ! support also handle servers that have set their default
channel to local/limited range.
2022-11-08 11:48:01 -06:00
LlmDl 0b705e4742 - Allow for players to use !message to send chat to a Global channel.
- Will not work when chat is being directed to a channel, ie: /nc
!chat message.
2022-11-08 11:15:39 -06:00
LlmDl da0cf7c4a2 - Refactor a bunch of the plugin to get rid of old/ugly code.
- There is a chance that some 3rd party chat plugins will break. Let
me know about this asap.
2022-10-03 15:36:49 -05:00
LlmDl 483a79c2b3 Replace channelFormats with ChatSettings inner class WorldFormat 2022-10-03 15:08:46 -05:00
LlmDl d2338ede07 Refactoring Chat & TownyChatPlayerListener, Slimming down FileMgmt. 2022-10-03 13:04:08 -05:00
LlmDl 5c454b9f01 Redo chatconfig loading. 2022-10-03 10:43:14 -05:00
LlmDl 355ad72e03 Replace TownyChatReplacerCallable with TownyChatReplacer
- Makes use of Functions to do what the old Callable did.
2022-10-01 16:22:02 -05:00
LlmDl 3b6e35e3fc Change where chattag-colouring happens. 2022-10-01 09:08:06 -05:00
LlmDl 242dabe657 - Fix hex colouring not being parsed for some tags. 2022-10-01 07:59:45 -05:00
LlmDl 4c29b4e27d - Colour channel name in the You have joined channel messages,
according to the channel message colour.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4503
2022-09-30 13:23:37 -05:00
LlmDl 0e6544c52f - Update java to 17 and adopt jabel.
- More StandardChannel refactoring.
2022-09-30 12:01:44 -05:00
LlmDl 93f8bd846e - Fix channel sounds being played at the sender's location, fix muting
channel sounds.
  - Remove built-in HexFormatter.
  - Refactor some StandardChannel.
2022-09-30 10:43:35 -05:00
LlmDl e256df5020 - Update min. Towny version to 0.98.3.0.
- Make the alone message respect people's vanished status.
    - Closes https://github.com/TownyAdvanced/Towny/issues/6194
2022-09-30 08:51:36 -05:00
LlmDl 60d2af7361 - Replace % when it is found in the channel formats.
- Closes https://github.com/TownyAdvanced/Towny/issues/6125
2022-08-20 18:35:33 -05:00
Llm Dl e71f2d1a71 Set version back to 0.96, which hasn't been released yet. 2022-03-12 12:58:41 -06:00
Llm Dl 671a03ab86 - Delay the login task by another tick so that the player's locale has
been determined on the server.
    - Closes https://github.com/TownyAdvanced/Towny/issues/5802
2022-03-12 12:57:15 -06:00
Llm Dl 956912481b - Fix the display_channel_join_message_on_joining_the_server option in
the config not being used.
2022-03-12 12:32:20 -06:00
Llm Dl 36875fd67d - Replace the splitter for channels saved in metadata with the ,
symbol.
2022-02-20 18:54:25 -06:00
LlmDl 997458394f Merge pull request #37 from TownyAdvanced/hotfix/remove_old_meta_splitter
Hotfix/remove old meta splitter
2022-02-20 18:04:15 -06:00
Llm Dl ce65d2a716 - Replace the splitter for channels saved in metadata with the #
symbol.
2022-02-20 18:02:52 -06:00
Llm Dl 07c3a97437 Swaps out the previous splitter used in metadata for the # symbol.
Default mysql character encoding latin1 does not support the \uFF0C
symbol.
2022-02-18 17:28:44 -06:00
Llm Dl 0ca059d9fe - Display invalid subcommand message when /ch is used with an invalid
subcommand.
2022-02-03 15:20:06 -06:00
Llm Dl 7d6cad6ddf - Regression: channels.yml not handling /townychat reload, bug began
in 0.92.
2022-02-02 13:18:32 -06:00
Llm Dl 1975aa85ca - Switch to using Translatables, so messages appear in the correct
Locale for each player.
2022-01-02 09:25:11 -06:00
LlmDl 2f47e9ce44 Merge pull request #36 from TownyAdvanced/feature/translatables
Change TownyChat over to using Translatables.
2022-01-02 09:17:52 -06:00
Llm Dl 8a62cce939 Change TownyChat over to using Translatables.
Replace Translation calls with Translatables so that TownyChat's
messages appear in the correct locale for each player.
2022-01-02 09:07:51 -06:00
Llm Dl c8ee614e55 - Remove 2 unused replacers in TownyChatFormatter. 2021-12-31 15:54:49 -06:00
Llm Dl c0ff36db3d - Regression: NPE in TownyChatPlayerListener.
- Minimum Towny version set to 0.97.5.0.
  - Use Towny's built-in Commented configuration & adapt to use the new
width() option supplied by Spigot.
2021-12-27 07:11:28 -06:00
Llm Dl bbd8e3b845 - Regression: NPE in EssentialsDiscordHookListener. 2021-12-26 13:16:33 -06:00
LlmDl f355807538 Replace towny modes usage with player channel map. (#35)
* 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.
2021-12-23 11:27:19 -06:00
Llm Dl 27f46966a6 - Handle channelTag being null. 2021-12-21 14:25:59 -06:00
Llm Dl 5f8715ce10 Bump version number. 2021-11-18 14:32:18 -06:00
Llm Dl dfd2d59de0 - Implemented sounds for channels and toggling, courtesy of Glare with
PR #34.
  - Minimum Towny version set to 0.97.2.18.
2021-11-18 14:30:26 -06:00
Llm Dl dea9c433f1 Bump Min. Towny Version to 0.97.2.7. 2021-11-07 11:54:57 -06:00
Llm Dl 9710f43544 - Fix default channels not being returned if TownyChat is searching
for a channel of that type.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4984
2021-08-22 15:14:50 -05:00
Llm Dl 226ae6ee30 - Allow channeltags to make use of hex colour formatting. 2021-08-22 15:04:14 -05:00
Llm Dl 368fcc7486 Merge branch 'master' of https://github.com/TownyAdvanced/TownyChat.git 2021-07-14 16:58:47 -05:00
Llm Dl 341ac76c16 v0.89:
- Update min. Towny to 0.97.0.0 and remove NotRegisteredException
catches.
  - Add support for EssentialsDiscord, courtesy of JRoy with PR #33.
2021-07-14 16:58:41 -05:00
Llm Dl ce03d1dd5c - Update min. Towny to 0.97.0.0 and remove NotRegisteredException
catches.
2021-05-10 16:40:32 -05:00
Llm Dl cb2f8da9c3 - Fix hex color codes not being parsed in TownyChat spy messages. 2021-05-02 12:01:11 -05:00
Llm Dl 893dce6d04 - Fix spam_time settings not working. 2021-04-28 07:54:18 -05:00
Llm Dl c612e22eb0 Undo the essentials stuff for now, look into it another day. 2021-04-28 07:44:57 -05:00
Llm Dl 5a1c9b6ced Make it so that non-Essentials servers can still load TC, bump
Essentials version to 2.18.2.
2021-04-17 16:15:15 -05:00
Llm Dl af02f6571a Tidying, bump Towny version in the pom. 2021-04-17 10:03:26 -05:00
Llm Dl d6ef07081f Improved solution from previous commit. 2021-04-17 09:47:38 -05:00