Commit Graph
81 Commits
Author SHA1 Message Date
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
Llm Dl dea9c433f1 Bump Min. Towny Version to 0.97.2.7. 2021-11-07 11:54:57 -06:00
Llm Dl 226ae6ee30 - Allow channeltags to make use of hex colour formatting. 2021-08-22 15:04:14 -05:00
Josh RoyandLlm Dl 5bee9611aa Add support for EssentialsDiscord (#33)
* Add initial support for EssentialsDiscord

* Fixup some stuff

* Exclude JDA

* Restore ChannelsHolder.java

* Fix canceled logic

* Fix bool logic

* Make sure direct channel always gets handled

* Remove isHooked check

* Add javadoc to EssentialsDiscordHookListener, remove unneeded diff.

Co-authored-by: Llm Dl <[email protected]>
2021-06-27 09:48:34 -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 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 cc12304b2e - Replace deprecated Essentials call. 2021-04-16 16:44:39 -05:00
Llm Dl f12fda4558 v0.87:
- Fix event firing async.
  - Fix ranged global channels' chat being forwarded to dynmap.
2021-02-05 06:04:46 -06:00
Llm Dl c94342ca2b v0.86:
- Fix firing PlayerJoinChatChannelEvent async.
2021-01-16 11:43:42 -06:00
Llm Dl 44978325e5 v0.85:
- 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.
2020-12-19 10:08:14 -06:00
Llm Dl e10ba6f427 v0.84:
- Fix nation and town names not parsing out the _'s for spaces.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4489.
2020-11-30 15:42:29 -06:00
Llm Dl 61f5b27aa8 v0.83:
- Fix townychat.spam.bypass doing the opposite of its job.
2020-11-20 17:27:09 -06:00
Llm Dl 2044a6bd69 v0.82:
- Fix Towny not being in the depend list (instead of the softdepend
list.)
    - Should solve load order issues.
2020-10-30 12:23:24 -05:00
Llm Dl 6be15e699c v0.81:
- Fix double prefix displaying on the message shown when using a
channel command for the channel you're already joined to.
2020-10-19 19:24:30 -05:00