421 Commits
Author SHA1 Message Date
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
Glare 90cddc894c Implemented sounds for channels and toggling (#34)
* 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
2021-11-18 14:28:30 -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
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 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
Llm Dl 047b14f6ac - Fix players who've just recently joined a town/nation/alliance not
being included in the town/nation/alliance chats.
2021-04-17 08:17:49 -05:00
Llm Dl cc12304b2e - Replace deprecated Essentials call. 2021-04-16 16:44:39 -05:00
Llm Dl ceef86242e - Fix UnsupportedOperationException which was possible when leaving a
channel.
2021-02-08 11:37:49 -06: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 6b7aeaaf61 - Fix permission tests being done too early on PlayerJoin.
- Closes https://github.com/TownyAdvanced/Towny/issues/4615
2020-12-21 14:50:45 -06:00
Llm Dl 99d0433b3e v0.85:
- Bump minimum Towny version to 0.96.5.5.
2020-12-19 12:06:36 -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 fecf3035a3 - Implemented PlayerJoinChatChannelEvent, courtesy of Glare with PR
#32.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4575.
2020-12-15 14:57:29 -06:00
LlmDl cc6358791a Merge pull request #32 from darbyjack/channel-join-event
Implemented PlayerJoinChatChannelEvent
2020-12-15 14:55:31 -06:00
darbyjack d5c8223217 Fire for channel switching via command 2020-12-15 06:10:05 -06:00
darbyjack ffbfe074e0 Call join event in StandardChannel 2020-12-14 19:51:28 -06:00
Llm Dl 6923c06d0a - Allow hex colour codes to be used in the messagecolour options
channels.yml.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4087.
2020-12-14 17:44:34 -06:00
darbyjack 26ada97d4d Implemented PlayerJoinChatChannelEvent 2020-12-14 17:03:50 -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 8088af95d9 - Fix spam countdown resetting if you speak too early. 2020-11-20 19:24:47 -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
Llm Dl 4e305f9038 v0.80:
- Add townychat.chat.format.* childnodes to plugin.yml so players are
explicitly not given them.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4351
2020-10-04 15:47:26 -05:00
Llm Dl 6a95810e7c v0.79:
- Fix colouring the alone message.
  - Replace TownyMessaging method used to send some TownyChat messages.
    - Removes double prefixes ie: [Towny] [TownyChat] message....
2020-09-18 16:59:48 -05:00
Llm Dl b6f81d938c - Dynmap added to softdepends list, courtesy of ZombiMigz with PR #31.
- 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.
2020-09-10 09:26:35 -05:00
Llm Dl aab307dd39 v0.78:
- Dynmap added to softdepends list, courtesy of ZombiMigz with PR #31.
2020-08-24 14:38:09 -05:00