95 Commits
Author SHA1 Message Date
darksaid98 c24ca1ec70 build: downgrade maven shade for jitpack 2024-07-09 21:29:44 +02:00
darksaid98 6ecf2b2cfa build: downgrade maven compiler for jitpack 2024-07-09 21:24:51 +02:00
darksaid98 dce1a8b77b feat: minimessage support 2024-07-09 21:09:17 +02:00
darksaid98 1fe9e80af6 Merge branch 'master' into feat/adventure 2024-07-08 23:26:13 +02:00
darksaid98 7eedf4b56c refactor: new minimessage builder 2024-05-01 23:21:34 +02:00
darksaid98 e0281e10a8 feat: paper API 2024-03-22 00:04:08 +01:00
darksaid98 7efcc38354 feat: tag resolvers 2024-03-21 23:46:21 +01:00
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
darksaid98 b2b78bd542 Merge remote-tracking branch 'upstream/master' into feat/adventure 2024-01-24 20:58:02 +01:00
darksaid98 45e5f33410 feat: add adventure lib 2024-01-24 20:51:33 +01: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
darksaid98 465400dfd5 feat: allow unlimited channel formats
- The original implementation was weirdly splitting configuration and limiting customization of the plugin.
- This moves all format configuration directly into each channels config.
- Generates default config entries.
2024-01-12 13:37:41 +01: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 6540b2cf1d - Update min. Towny version to 0.100.0.0. 2023-12-06 08:59:17 -06: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 80157f7d7d Bump min. Towny version to 0.99.5.0 2023-07-20 09:43:17 -05:00
LlmDl 0eba3bdddb Fake release 2023-07-01 09:48:48 -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 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
WarriorandLlmDl 945b66f803 Folia Support (#46)
* Folia Support

* Unused import.

* Changelog and min. version bump.

---------

Co-authored-by: LlmDl <[email protected]>
2023-05-09 15:03:06 -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 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 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 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 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 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 242dabe657 - Fix hex colouring not being parsed for some tags. 2022-10-01 07:59:45 -05:00
LlmDl 0e6544c52f - Update java to 17 and adopt jabel.
- More StandardChannel refactoring.
2022-09-30 12:01:44 -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 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 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