Commit Graph
100 Commits
Author SHA1 Message Date
Jason Penilla b8e288eb41 further improve mojang api rate limit handling 2023-03-26 11:46:33 -07:00
Jason Penilla 914d21d1fd add missing shutdown for uuidToProfileRateLimit 2023-03-26 11:43:06 -07:00
Jason Penilla c846d51ee9 Improve mojang api rate limit handling 2023-03-26 11:41:50 -07:00
Jason Penilla 4026d40145 Use FastUuidSansHyphens for MojangProfileResolver 2023-03-26 11:14:20 -07:00
Jason Penilla 45c93223d2 close player file reader 2023-03-26 11:08:02 -07:00
Jason Penilla 72444b91dc simplify writing user json
default options are CREATE TRUNCATE_EXISTING and WRITE
2023-03-26 11:05:44 -07:00
Jason Penilla 4eff3579ed Trim all strings from SQL
they might end with null terminator
2023-03-26 11:00:29 -07:00
Jason Penilla f24a64c59a trim keys from database to remove null terminator padding 2023-03-26 10:36:26 -07:00
Jason Penilla 442f5e07e0 bump fabric to 1.19.4 and change server instance handling 2023-03-25 12:54:02 -07:00
Jason Penilla 64a9bd410b fix super calls 2023-03-25 12:13:48 -07:00
Jason Penilla 51b9885942 Remove cast 2023-03-25 12:12:10 -07:00
Jason Penilla e41050e472 Remove unused field 2023-03-25 12:08:48 -07:00
Jason Penilla 3c4a1eb002 Remove unnecessary override 2023-03-25 12:08:21 -07:00
Jason Penilla cef9ad0fd9 Update fabric init 2023-03-25 12:04:11 -07:00
Jason Penilla 640fc495cc Move up needsSave check 2023-03-25 11:45:33 -07:00
Jason Penilla 7b881e594c Fix method name for checkstyle 2023-03-25 11:37:41 -07:00
Jason Penilla 6fda12425e Use PersistentUserProperty for all serialized values 2023-03-25 11:36:12 -07:00
Jason Penilla e1e9c4f62e Add PersistentUserProperty 2023-03-25 10:45:41 -07:00
Jason Penilla 50c1eaf5e0 amend @Backing doc 2023-03-25 10:17:07 -07:00
Jason Penilla 66dc5abe53 typo fix 2023-03-25 10:14:08 -07:00
Jason Penilla 9b9f4fcc0e Clean up user manager creation 2023-03-25 10:12:38 -07:00
Jason Penilla 072c608261 rename ForCarbon to DataDirectory 2023-03-25 09:58:58 -07:00
Jason Penilla 5b5ed42b48 resolve circular dependencies (mostly) 2023-03-25 09:55:32 -07:00
Jason Penilla 50f0b4a3fa Move all periodic tasks to own executor 2023-03-25 08:54:15 -07:00
Jason Penilla 154569b208 add exception handling to save in cleanup 2023-03-23 15:08:08 -07:00
Jason Penilla 1d283a64ea cache profiles earlier on login 2023-03-23 14:48:30 -07:00
Jason Penilla d4f7d846c6 fixup profileresolver injection 2023-03-23 13:42:24 -07:00
Jason Penilla 3b7f70e1d3 clean up caching user managers 2023-03-23 13:36:20 -07:00
Jason Penilla 9f58e81d20 implementing tracking and unloading of transient loaded users (loaded for offline players) 2023-03-23 13:29:40 -07:00
Jason Penilla 0c283d0918 usermanager cleanup 2023-03-23 13:01:47 -07:00
Jason Penilla fc585fb66f Fix bad replace 2023-03-21 20:07:26 -07:00
Jason Penilla e5524eefd2 Adjust UserManager creation and access 2023-03-21 20:03:52 -07:00
Jason Penilla b41d745458 Remove remaining PlayerSuggestions use outside CarbonPlayerArgument 2023-03-21 15:24:20 -07:00
Jason Penilla d5e32eae3f Clean up 2023-03-21 15:09:24 -07:00
Jason Penilla 172750adc3 Adjust timer name (again) 2023-03-21 14:22:55 -07:00
Jason Penilla bb917e3942 Adjust timer name 2023-03-21 14:21:44 -07:00
Jason Penilla f69f16c155 Use AtomicInteger instead of Semaphore for rate limit 2023-03-21 14:13:53 -07:00
Jason Penilla e7f5028240 Rate limit mojang api requests & don't make requests for tab completion 2023-03-21 14:10:50 -07:00
Jason Penilla 46fcd4e351 Add ProfileCache 2023-03-21 13:22:36 -07:00
Jason Penilla 34c8f60530 More improvements to MojangProfileResolver 2023-03-21 12:32:16 -07:00
Jason Penilla 51cafbf548 Change pending profile request futures to use BasicLookupResponse
Will make caching simpler in the future
2023-03-21 12:25:40 -07:00
Jason Penilla e8f88e474b Fix UUID and missing profile handling in MojangProfileResolver 2023-03-21 12:19:40 -07:00
Jason Penilla 0f13aea977 Replace all usages of UserManager#carbonPlayer with UserManager#user 2023-03-21 10:20:34 -07:00
Jason Penilla 16754ec55a Make MojangProfileResolver final 2023-03-21 09:56:33 -07:00
Jason Penilla 00c197f9ee MojangProfileResolver changes & wiring 2023-03-21 09:54:14 -07:00
Jason Penilla bf69ca0b6d Move command execution to own thread pool 2023-03-21 09:03:31 -07:00
Jason Penilla 57af49418e cleanup 2023-03-19 18:24:03 -07:00
Jason Penilla e803fa4203 Initial work on user rewrite
Only JSONUserManager and Paper platform work currently
2023-03-19 11:24:11 -07:00
Jason Penilla 8e3a6935a3 Use HIGH instead of MONITOR priority for join/quit listeners 2023-03-16 13:56:41 -07:00
Jason Penilla 498a658378 Remove legacy event listener 2023-02-04 16:23:56 -07:00
Jason Penilla 2d8f8311db Adjust extension creation 2023-02-02 13:53:27 -07:00
Jason Penilla f423b7413a Move permissions to common yml 2023-02-02 13:43:24 -07:00
Jason Penilla 919542e756 Clean up parseMessageTags 2023-02-02 13:07:36 -07:00
Jason Penilla db7ab5c22e Update nickname permissions in plugin.yml 2023-02-02 13:07:36 -07:00
Jason Penilla 0bbeda83e7 Update license header 2023-02-02 13:07:36 -07:00
Jason Penilla 5132757a2e Remove redundant permission checks for carbon.nickname.self, this is handled implicitly by the new command permissions. 2023-02-02 13:07:36 -07:00
Jason Penilla fd1f7bf1e8 Localize new nickname command error message 2023-02-02 13:07:36 -07:00
Jason Penilla 47dbc31dd7 Separate nickname command descriptions and add quote handling 2023-02-02 13:07:36 -07:00
Jason Penilla 4896e84515 Add back accidentally removed todo 2023-02-02 13:07:35 -07:00
Jason Penilla 78c3330efb Rename method to please checkstyle 2023-02-02 13:07:35 -07:00
Jason Penilla 04cefd17ca Change nickname command structure 2023-02-02 13:07:35 -07:00
Jason Penilla fb2a83d295 Fix fabric dependencies for loom 1.1 2023-02-02 13:07:27 -07:00
Jason Penilla 9ebd9ceaa4 Update license header 2023-02-02 12:44:29 -07:00
Jason Penilla f8285b3a53 Update fabric dependencies 2023-02-02 12:42:16 -07:00
Jason Penilla 90b2cce9bc Remove unused imports 2023-01-11 20:30:49 -07:00
Jason Penilla 2f4365f263 Fix CarbonChatPaper instance injection 2023-01-11 20:27:02 -07:00
Jason Penilla c99bbfa690 Improve failure on spigot/cb 2023-01-09 11:57:17 -07:00
Jason Penilla 032573ba1f Update AsyncChatEvent constructor use 2023-01-08 14:49:11 -07:00
Jason Penilla eaa0e75c84 Fix wall of warnings when compiling fabric module (loom moment) 2023-01-08 14:45:51 -07:00
Jason Penilla 99b5eb6e63 Fix paper platform check and add mc version check 2023-01-08 14:34:28 -07:00
Jason Penilla f579c20fc8 Update gitignore 2022-12-16 23:47:02 -07:00
Jason Penilla ea29ee868c Fix filter/findFirst order 2022-12-16 11:43:52 -07:00
Jason Penilla 09751ef1e3 Limit possible messages to delete to selected players 2022-12-16 11:36:59 -07:00
Jason Penilla e04653f85e Update repositories 2022-12-16 11:26:22 -07:00
Jason Penilla 5e254c25c8 More delete message command changes 2022-12-16 11:25:07 -07:00
Jason Penilla 8e06d384a7 Update license 2022-12-15 20:20:07 -07:00
Jason Penilla 71e04a77df Add todo 2022-12-15 20:03:25 -07:00
Jason Penilla 32d2d188ee Add deletemessage all 2022-12-15 20:01:50 -07:00
Jason Penilla 14dd5b4411 Update delete message command 2022-12-15 19:34:59 -07:00
Jason Penilla 86e7b9e51f Fabric permissions fixes 2022-12-15 17:40:15 -07:00
Jason Penilla 5a508faed4 Fix style 2022-12-15 17:07:05 -07:00
Jason Penilla 9c3e9ea3e8 Fix license 2022-12-15 17:04:08 -07:00
Jason Penilla 670dd7f1d3 Fix players not being PlayerCommanders on fabric 2022-12-15 17:02:23 -07:00
Jason Penilla 992806934c Remove unneeded mixin 2022-12-15 16:56:38 -07:00
Jason Penilla 17e110895f Fix chat type on fabric 2022-12-15 16:54:16 -07:00
Jason Penilla 3cf5647bd6 Begin updating fabric module for 1.19.3 2022-12-15 16:28:16 -07:00
Jason Penilla 6b4a8dd3f7 Update sponge API dependency
API 10 removed setChatFormatter, not sure what to do instead, so disabled the module as well for now :(
2022-12-15 14:32:53 -07:00
Jason Penilla b946750782 Update gradle wrapper 2022-12-15 14:22:24 -07:00
Jason Penilla 2e7b8bec11 Use ignore case contains suggestion filter 2022-12-15 14:04:46 -07:00
Jason Penilla 8ab0f9d782 Update for cloud deprecations 2022-12-15 14:02:50 -07:00
Jason bd0bd81553 Apply suggestions from code review 2022-12-15 13:54:47 -07:00
Jason Penilla 4a53bc85b5 Update dependencies for Minecraft 1.19.3, code still not updated, however paper plugin loads now. Commented out fabric module as multiple mixins need updating 2022-12-15 12:57:49 -07:00
Jason Penilla c30c837aa7 Update actions 2022-12-15 12:42:00 -07:00
Jason Penilla e00adf644f fabric: Use ServerPlayConnectionEvents.DISCONNECT instead of leave message event for invalidating disconnect users 2022-07-08 13:03:46 -07:00
Jason Penilla fb2bf2d5de Enable fabric/sponge modules, bump fabric to 1.19.1-pre4 2022-07-08 12:59:07 -07:00
Jason Penilla 16afe80d07 Enable fabric module 2022-07-08 12:51:47 -07:00
Jason Penilla 08a2e2f1bc Bump fabric minecraft 2022-07-08 12:50:42 -07:00
Jason Penilla 0ed4a25108 Update non-chat parts of fabric platform 2022-07-08 12:47:07 -07:00
Jason Penilla bbb7b99dd2 Dependency updates 2022-05-07 13:04:58 -07:00
Jason Penilla 6265c7ede5 Update SpongeGradle 2022-05-07 13:04:08 -07:00