Commit Graph
96 Commits
Author SHA1 Message Date
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
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
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
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
LlmDl 39713c19a3 Merge pull request #31 from ZombiMigz/patch-1
add dynmap to softdepend list
2020-08-24 14:36:41 -05:00
Llm Dl 456291f153 v0.77:
- Build against 0.96.2.12, minimum required Towny version now
0.96.2.12.
2020-08-22 10:07:02 -05:00
Llm Dl 30c52aa936 v0.76:
- Fix chat format line not parsing hex colors, courtesy of Siris with
PR #28.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4159.
2020-08-11 13:45:35 -05:00
Llm Dl 4c6a1e2da1 v0.75:
- Replace deprecated getLangString code.
  - Update to fix spying on servers with DeluxeChat.
  - Fix changing chat channels removing non-channel modes.
  - Add Towny version checking to enforce min. required versions.
2020-07-29 09:12:23 -05:00
Llm Dl 74de8f816f v0.73:
- 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}
2020-07-11 17:12:34 -05:00
Llm Dl ab55ed69c5 v0.72:
- Fix ConcurrentModificationException caused by spies.
    - Closes https://github.com/TownyAdvanced/Towny/issues/4077
2020-06-12 14:36:16 -05:00
Llm Dl 1fe45712d4 v0.71:
- Bugfixes on the AsyncChatHookEvents, courtesy of Rebstew with PR
#26.
2020-06-01 14:14:04 -05:00
Llm Dl 956411ed9b Remove debug message. 2020-05-10 20:24:14 -05:00
Llm Dl 3f44221356 - People spying on chat will now see the chat formatted differently
from normal.
    - De-clutters the chat.
    - Closes: https://github.com/TownyAdvanced/Towny/issues/2665
2020-05-10 10:11:33 -05:00
Llm Dl 5ef8fd21e9 v0.70:
- Allow for $ and \ to be used in the chat line.
    - Closes: https://github.com/TownyAdvanced/Towny/issues/3960
2020-05-10 08:16:48 -05:00
Llm Dl 4a9c7a52ad v0.69:
- Fix missing spaces from {title} & {surname} & {townypostfix}.
2020-03-20 14:28:20 -05:00
Llm Dl 65bd972090 v0.68:
- Updated comments to reflect change with toggling chats, courtesy of
GenSecrets with PR #25.
2020-03-18 09:41:59 -05:00
LlmDl 994ebb311c Merge pull request #25 from GenSecrets/patch-1
Updated comments to reflect change with toggling chats
2020-03-18 09:40:28 -05:00
Llm Dl 790b6f2328 - Update Bukkit api, remove unneeded deprecation warning. 2020-03-18 09:40:09 -05:00
Llm Dl bc2e22caf6 - Fix for TownyChat overwriting towny_default_modes player modes on
login.
2020-03-05 07:52:49 -06:00
Llm Dl ab46dc8ff7 v0.66:
- Fix for removed TownyFormatter methods, required for Towny 0.95.2.18
and newer.
2020-02-25 08:22:08 -06:00
LlmDl b582fcb1c8 Merge pull request #24 from suneettipirneni/hotfix/prefix-postfix
Re-add support for name postfixes/prefixes
2020-02-24 18:54:01 -06:00
Llm Dl 545ae8b19d - Fixed: GLOBAL channelTypes (default: general and local channels) are
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
2019-12-16 08:40:40 -06:00
Llm Dl 068b186df0 v0.65:
- 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.
2019-12-11 16:41:02 -06:00
Llm Dl 802efbd3a7 Fix up secondary occurence of setting modes and stopping modes set
notifications when switching channels.
2019-12-11 13:15:42 -06:00
Llm Dl 0b01ad12c9 v0.64:
- Removed "[Towny] Modes set: " line seen when a player changes
channels.
2019-12-04 15:35:18 -06:00
Llm Dl 0a92c5ac1c - New Permission Node: townychat.spam.bypass
- Defaults to ops.
    - Bypasses spam check.
2019-11-14 07:23:03 -06:00
Llm Dl 78c7bd146b v0.63:
- Change: spam_time has been moved from the chatconfig.yml, to the
channels.yml
    - You do not have to set a spam_time for each channel, only the ones
you want limited.
    - setting spam_time: '0.5' in your general channel will make the
global channel behave as normal.
    - default channels.yml has spam_time: '0.5' set for general, town,
nation and alliance channels; remaining channels have no spam_time set.
    - in your chatconfig.yml you can remove the "spam_time: '0.5'" line
before or after updating.
2019-11-14 07:05:46 -06:00
Llm Dl 4e9999019b v0.62:
- New Channel: AllianceChat
    - Requires Towny 0.95.0.5 or newer.
    - Will send messages to every online ally of your nation.
    - Has its own channel_format in the chatconfig.yml.
    - Your channels.yml will need to have an Alliance channel added.
    - Default channels.yml is:
    alliance:
        commands: [ac]
        type: ALLIANCE
        channeltag: '&f[&2AC&f]'
        messagecolour: '&a'
        permission: 'towny.chat.alliance'
        range: '-1'
2019-11-05 13:37:05 -06:00
Llm Dl 6df2fac32a - New Config Option: display_modes_set_on_join
- Default: true
    - If true players will see [Towny] Modes set: general when they log
in.
2019-11-01 13:20:44 -05:00
LlmDl db38c0c4a2 Create FUNDING.yml 2019-10-30 09:02:47 -05:00
Llm Dl dfae872316 Removed @EventHandler on accident. 2019-10-28 07:33:23 -05:00
Llm Dl cdae079186 v0.60:
- A more-thorough fix for TC still not respecting the cancelling of
chat.
2019-10-28 07:30:13 -05:00
Llm Dl 796639a8e3 Bump version number to 0.59 2019-10-21 15:52:03 -05:00
Llm Dl be440e1f7d v0.59:
- Fix {townycolor} not rendering properly for nomads.
2019-10-21 15:51:15 -05:00
Llm Dl 43a0a62d2b v0.58:
- Drop API version back to 1.13 because there's a 0.95.0.0 for 1.13
that has the new TownyAPI in it.
2019-10-15 11:27:19 -05:00
Llm Dl d038dd6a3a - Add support for PlaceholderAPI's placeholders in the chatconfig.yml's
channel_format lines.
2019-10-14 11:48:50 -05:00
Llm Dl 475e26dc81 - Fix missing space following the title in {townyprefix} (when there is
no mayor/king prefix present.)
2019-10-14 07:56:00 -05:00
Llm Dl 02573e6bde - Fix missing space following {title} and {townyprefix} (when it is
calling for a resident's title.)
2019-10-14 07:40:11 -05:00
Llm Dl b82f349d54 - New ChatConfig option: chat_colour.nomad
- Default: &f
    - You can now set the {townycolour} for players without a town.
2019-10-09 12:26:44 -05:00
Llm Dl 67ce04996a - Remove ignorecancelled=true from AsyncPlayerChatEvent in order to make
TC respect other plugins' cancelling of chat in some places.
2019-10-09 12:07:20 -05:00
Llm Dl cedd657ece - Remove some unused code, suppress an essentials deprecation. 2019-09-08 16:26:02 -05:00
LlmDl 8aa1ee1a34 Merge pull request #22 from TheFlagCourier/TC-Mavenize
Maven Overhaul
2019-09-08 14:07:47 -05:00
Llm Dl e8644db735 v0.56: Upgrade TownyChat to use the new Towny API (0.94.0.2+). 2019-07-30 20:01:38 -05:00
LlmDl 04de974e28 Merge pull request #20 from creatorfromhell/patch-1
Fix async/sync issue.
2019-06-13 08:27:17 -05:00
LlmDl 3c031cc4ac Merge pull request #19 from TheFlagCourier/master
Fix Build Script
2019-06-06 08:48:58 -05:00
LlmDl 8238a0dbbe Merge pull request #18 from Articdive/fix-async-events
Fix events not being asynchronous.
2019-06-03 16:31:28 -05:00
LlmDl 9e88e5fea8 Merge pull request #17 from Articdive/fix-async-chat
Fix Async chat in Async threads, removed in 2014...how is this alive?
2019-05-28 09:26:23 -05:00
LlmDl dab905cca6 Merge pull request #16 from Articdive/fix-channel-permissions
Fixed being able to join channels you don't have permission for.
2019-05-26 13:27:35 -05:00
LlmDl 06da792f13 Merge pull request #15 from Articdive/proper-channel-fix
Fixed channels not using correct names, also fixed the default channel.
2019-05-26 09:16:09 -05:00
LlmDl 5dda0322d8 Merge pull request #13 from Articdive/master
Fixed the misrenaming of IntelliJ
2018-03-18 12:35:33 -05:00
LlmDl d856a55189 Merge pull request #11 from Articdive/master
Renamed TownyChat.java back to Chat.java
2018-02-23 12:58:47 -06:00
LlmDl 31590588a5 Merge pull request #10 from Articdive/master
Registered ChannelJoinAliases as Commands in CommandMap
2018-02-19 14:59:21 -06:00
LlmDl eb53a33d44 Merge pull request #9 from Articdive/master
Revamped TownyChatCommand to mimic Towny-type help
2018-02-19 12:30:22 -06:00
LlmDl 4f82cdcb52 Merge pull request #8 from Articdive/master
Revamped ChannelCommand to mimic Towny-type help
2018-02-18 15:00:11 -06:00
LlmDl 094eab4ad4 Merge pull request #7 from Articdive/master
Made it so we can per-existing-world chat :)!
2018-02-18 10:55:22 -06:00
LlmDl 970ef71242 Merge pull request #6 from Articdive/master
Fixed TownyChat trying to add it's own title.
2018-02-18 06:18:34 -06:00
LlmDl 9a136b349f Merge pull request #5 from Articdive/master
Allows switching of Town & Nation in the BothTag Format.
2018-01-14 14:27:33 -06:00
LlmDl e978ce45ed Merge pull request #4 from Articdive/master
Added IntelliJ to gitignore, Fixed website links, Fixed download links, Updated changelog
2017-11-05 12:07:54 -06:00
LlmDl 99a037fa34 Merge pull request #3 from andrewyunt/master
Chatcolours
2016-03-28 21:55:07 -05:00
LlmDl bc7a782d09 Merge pull request #2 from Yaiyan/master
Add /ch list command
2015-07-02 21:13:16 -05:00