Commit Graph
426 Commits
Author SHA1 Message Date
Jason 54f37fb945 stop storing usernames in db (#277) 2023-08-22 13:41:08 -07:00
Jason Penilla dca05a5f9a improve join/save exception handling 2023-08-20 11:44:42 -07:00
Jason b180546987 improve config management (#276)
- ConfigFactory -> ConfigManager
- gracefully handle broken primary config on reload (continue using existing config and print error)
- throw error for broken primary config on init
- as a consequence of the previous two points #primaryConfig is no longer nullable
- write back configs after reading them, ensuring new config options get added to existing configs
- require command settings to load for init to continue
2023-08-19 13:21:53 -07:00
Jason Penilla b9f9322122 Add update checker 2023-08-19 13:07:43 -07:00
Jason Penilla ed3fcf3523 fix unnecessary saves & missing save complete packets 2023-08-19 11:05:28 -07:00
Jason Penilla dc9d9b06ef update flyway 2023-08-19 11:05:28 -07:00
Jason Penilla 470e506cb0 fix saving of ignored players & left channels to db 2023-08-19 11:05:28 -07:00
Jason Penilla f4f5f0d7e5 fix saving new players to database 2023-08-19 11:05:28 -07:00
Jason Penilla d86b93894e Clean up command DI 2023-08-12 10:17:32 -07:00
Jason Penilla 0872e27efa Remove unused BasicChatChannel and fix ConfigChatChannel equals/hashCode 2023-08-10 15:31:07 -07:00
Jason Penilla 0ea917af3c Remove unused ChatChannel#filterRecipients method 2023-08-10 15:19:38 -07:00
Jason Penilla 1e20138137 Remove unchecked cast and unnecessary generic in CarbonChatInternal 2023-08-10 14:21:10 -07:00
Jason Penilla ea4d0c9b5a Remove CarbonChat#serverId and add @ServerId injection binding annotation 2023-08-10 14:11:47 -07:00
Jason Penilla dc37c94fb2 Add missing @Backing annotation 2023-08-10 14:07:22 -07:00
Jason Penilla 40884685f8 Add ChannelRegistry#channelOrThrow, rename ChannelRegistry#keyOrDefault to channelOrDefault 2023-08-10 13:41:21 -07:00
Jason Penilla 7f28a9d876 Improve event exception handling 2023-08-10 12:58:32 -07:00
Jason Penilla ef275b5c33 Simplify user manager hierarchy 2023-08-10 00:42:29 -07:00
Jason Penilla 10b9862c18 displayName -> nickname; renderName -> displayName 2023-08-10 00:27:43 -07:00
Jason Penilla 1267b3bd4b API cleanup & other various refactoring 2023-08-09 23:50:20 -07:00
Jason Penilla cdb9d618f9 partially fix MessagingManager shutdown 2023-08-08 09:23:57 -07:00
Jason Penilla a393a53a37 cache profiles from other servers on the network 2023-08-08 09:23:57 -07:00
Jason Penilla 44b6c26554 whisper & other command cleanup 2023-08-08 09:23:57 -07:00
Jason Penilla b46f6c6016 cross-server whispers & cross-server player name tab completion in commands 2023-08-08 09:23:57 -07:00
Jason Penilla 3385c343c9 ignore empty chats 2023-08-06 15:17:32 -07:00
Draycia 06e0ee08fb Fix missing license header 2023-08-02 18:11:06 -07:00
Draycia 2d89dc68c4 Allow console to use chat with 'console_sender' channel format 2023-08-02 18:02:53 -07:00
Jason Penilla 912f0e8af1 fix: hotfix for recursive cross-server message bug 2023-08-02 12:56:11 -07:00
Jason Penilla 3401a419ea Fix duplicate mute info message 2023-07-17 11:25:25 -07:00
Jason Penilla 96ccede4f9 Locale loading and reloading fixes 2023-07-17 11:21:25 -07:00
Jason Penilla 8d761519e4 Revert "Add channel 'name' option, don't register channels with invalid keys/names"
This reverts commit 9daac8eff3.
2023-07-17 11:21:25 -07:00
Draycia 9daac8eff3 Add channel 'name' option, don't register channels with invalid keys/names
Also hides the key option by default
2023-07-16 20:58:24 -07:00
Jason Penilla 88402ed0a6 Rework channel registration
Addons should now register any new channels as early as possible to allow for command registration.

Removing channels requires a plugin restart.
2023-07-12 18:48:43 -07:00
Jason Penilla 0ae6a01128 channel load and general file handling cleanup 2023-07-12 13:04:48 -07:00
Jason Penilla 702f5ad823 Make order of internal reload event listeners consistent 2023-07-11 17:22:45 -07:00
Jason Penilla ef62dc24f5 don't try to double register commands 2023-07-11 17:22:45 -07:00
Jason Penilla e9d4abd84b Fix reloads by recreating the channel registry
Currently, this persists API-registered entries. Not sure if that's what we want to do, or if we should have an event for registering channels instead...

We only support registering commands for channels added at startup anyways.
2023-07-11 17:22:45 -07:00
Jason Penilla d05cc65258 improve ping regex 2023-07-10 11:42:43 -07:00
Draycia 89894fad30 Add chat-filter and make command messages utilise prepareAndEmitChatEvent 2023-07-08 19:22:09 -07:00
Draycia fd2bb08553 Unpromote channelByValue from API 2023-07-08 17:18:41 -07:00
Draycia 4ce7a46391 Finish removing relocated libraries from API 2023-07-08 17:01:25 -07:00
Draycia 09054b7332 Hide Event lib from API 2023-07-08 15:55:17 -07:00
Draycia 43d2754018 Start hiding relocated api libs 2023-07-08 15:16:55 -07:00
HarvelsX 9f20afc33a Emit event CarbonChatEvent in message processing from
message service;
2023-07-08 15:16:55 -07:00
Jason Penilla 25b88f3f8b use the default HttpClient executor in DependencyDownloader
(HttpClient *really* doesn't want to be used synchronously)

by reusing the HttpClient we still avoid redundant threads, we just can't reuse the thread making the request for handling it
2023-07-05 23:47:56 -07:00
Jason Penilla f7e59a2196 don't create redundant threads for DependencyDownloader http client 2023-07-05 23:18:19 -07:00
Draycia 17e90a4df9 Add permission and support for MiniPlaceholders tags in chat messages 2023-07-05 23:10:44 -07:00
Draycia 83e5439de2 Add permission to allow PAPI placeholders in messages
Fix chat placeholders not being properly used
2023-07-05 22:45:11 -07:00
Draycia f459d47bdb Extract chat placeholder parsing 2023-07-05 22:00:31 -07:00
Draycia f2fa2b5d92 Revert "Remove non-functional Chat Placeholders"
This reverts commit 403c3a3059.
2023-07-05 21:57:57 -07:00
Draycia 403c3a3059 Remove non-functional Chat Placeholders 2023-07-05 21:54:03 -07:00