Commit Graph
460 Commits
Author SHA1 Message Date
games647 bdd7af8290 Use case-sensitive name from the event joining player
Related #1219
2024-07-05 14:45:20 +02:00
games647 5fb6308130 Fix finding the player injector with newer ProtocolLib versions
Fixes #1210
2024-07-02 14:16:56 +02:00
games647 be2ec1e5a8 Clean up methods names and documentation 2024-05-21 14:41:41 +02:00
games647 f1b780c398 Clarify pending logins methods 2024-05-11 11:15:13 +02:00
games647 c063e7b58d Added shouldAuthenticate field for ProtocolLib
Related #1202
2024-05-10 12:10:31 +02:00
games647 0c64597ff0 Override packet types until they are registered at ProtocolLib
Related #1202
2024-05-10 12:07:47 +02:00
games647 9c06401e69 Fail safely if MinecraftEncryption is not found in newer versions 2024-05-10 12:06:52 +02:00
games647 756b777056 Use a better method name for StoredProfile.isPremium 2024-05-10 10:09:12 +02:00
games647 204d25a739 Re-order and remove outdated auth plugin documentation 2024-05-10 10:03:18 +02:00
games647 bb78043d64 Run delayed velocity tasks under our scheduler too 2024-05-07 20:31:55 +02:00
games647 7b6d2062cf Update license year 2024-05-06 16:40:24 +02:00
games647 cf4d19aeca Update deps 2024-05-02 10:57:51 +02:00
games647 d89d332273 Minor code recommendations 2024-02-13 16:54:22 +01:00
games647 2112d06162 Increase encryption key size for Spigot protocol
1024 bits are very weak keys. This size equals vanillas implementation.
Therefore, 2048 goes out of spec, but works and requires only minimal
additional performance for improved security.

The consequence will be during the login and playing in onlinemode.
First for authenticating and second for the encryption of all following
packets.
2024-01-15 16:37:48 +01:00
SzczurekYT ea6d4cf2f6 Add proper support for 1.19.3-1.20.1 2023-10-11 12:37:07 +02:00
SzczurekYT 91b05289ad Add 1.20.2 support 2023-10-11 12:37:07 +02:00
games647 159a6ed37c Add JavaDoc snippets and tiny reformats 2023-08-31 12:08:40 +02:00
games647 ee465e381c Rephrase invalid session warning to make it more clear 2023-07-17 10:10:03 +02:00
games647 6ab81b1a2f Fix formatting errors 2023-07-17 09:55:24 +02:00
games647 36ee52aa6e Print out a warning if we detect local IP addresses during connections
Reference #1055
2023-07-10 15:52:34 +02:00
games647 41f83988fe Fix code style 2023-05-22 14:43:52 +02:00
games647 dc4510aba3 Print an extra warning if the id list is empty. 2023-05-22 10:35:50 +02:00
games647 dd0dd15200 Print an extra warning if the id list is empty. 2023-05-22 10:21:58 +02:00
games647 a182976207 Update license date 2023-04-13 12:00:07 +02:00
games647 e8811de62a Inline paper detection 2023-04-12 16:34:14 +02:00
games647 477ec06d55 Encapsulate storage implementation 2023-04-12 11:30:07 +02:00
games647 e5d61101ae Typo fixes 2023-04-11 10:36:42 +02:00
games647 487bc24a8a Fix breaking ProtocolLib Minecraft version change
Fixes #1008
2023-03-30 17:26:59 +02:00
games647 06c0e64073 Fix packet constructing for < 1.19.3 2023-03-24 16:38:07 +01:00
games647 cb5598f2f4 Fix creating login start packets with ProtocolLib version 5
Fixes #955
2022-12-21 11:57:47 +01:00
games647 1038453469 Fix 1.19.3 compat of removed public key on login
Fixes #951
2022-12-18 14:15:30 +01:00
games647 ee6aeafafc Merge pull request #892 from LaboCraft/fix-ProtocolLib-unregister
Fix unregister ProtocolLib
2022-08-22 12:19:51 +02:00
games647 0867719878 Use own config to prevent single redundant loading config after start
Fixes #893
2022-08-21 16:20:39 +02:00
Nathan ace180976d Fix unregister ProtocolLib 2022-08-17 14:49:38 +02:00
games647 feb46399da Fetch player injection handler by type rather than name 2022-08-12 10:23:42 +02:00
games647 18b0c427c4 Move annotation usage to the jetbrains package 2022-08-12 09:09:52 +02:00
Smart123s c8c4aa522d Remove Floodgate 1.0 warning
Floodgate 2.0 has been released a long time ago.
2022-08-09 17:27:29 +02:00
Smart123s 649ce8cb1a Revert "Workaround for Floodgate prefixes with ProtocolLlib"
This reverts commit 94979a3
This reverts commit e82e7c7
This reverts commit b92911b
This reverts commit 03850ae
This reverts commit 8859ebb
2022-08-09 17:27:28 +02:00
Smart123s 8571feef6d Reimplement skipped Floodgate tasks
Due to a bug in ProtocolLib, Floodgate will never execute some of its tasks if an async listener is registered.

 Related: https://github.com/GeyserMC/Floodgate/issues/143
 Skipped code: https://github.com/GeyserMC/Floodgate/blob/5d5713ed9e9eeab0f4abdaa9cf5cd8619dc1909b/spigot/src/main/java/org/geysermc/floodgate/addon/data/SpigotDataHandler.java#L121-L175

 Fixes #786
 Fixes #703
 Fixes #689
 Fixes #647
2022-08-09 17:27:27 +02:00
Smart123s 55e3531718 Extract channel from ProtocolLib event 2022-08-09 16:54:04 +02:00
games647 ed45fada59 Update 1.19.1 public key verification 2022-07-28 17:06:06 +02:00
games647 045f980f38 Forward client key even if verification is disabled 2022-07-28 16:26:35 +02:00
games647 25c8be65ed Disable metadata checking if login packets are re-used on login
Some servers appear to re-use login packets. However, ProtocolLib
metadata sets the data based on the identity of the packet handle. This
makes the metadata available for fresh incoming packets too.

Related #855
2022-07-28 14:14:10 +02:00
games647 e3778c865c Update dependencies 2022-07-28 13:02:58 +02:00
games647 c886ccb9ef Remove commented out code 2022-07-27 14:37:11 +02:00
games647 0e1774a175 Comment out potential debug code 2022-07-27 14:30:48 +02:00
games647 f50bef3eb2 Fix TCPShield compat by using raw address for sessions
TCPShield overwrites the IP address during connection. ProtocolLib
doesn't notice this change, because it uses the end-to-end connection
which is the proxy IP. This causes getAddress calls during Spigot play
state and ProtocolLib auth state not match and then have conflicting
session ids.

A solution is also to hold onto the temporary player object. However
since we don't get a notification for a disconnect, holding it will
prevent to get GCed until the timeout occurs (1 minute).

Fixes #595
2022-07-27 14:30:42 +02:00
games647 0e2e431d87 Use the address field for verify task 2022-07-27 14:30:04 +02:00
games647 1e732d62cb Replace Field- and MethodUtils from breaking changes in ProtocolLib 2022-07-27 10:06:46 +02:00
games647 94979a3cf6 Fix reading username with 1.19 and Floodgate
Related #856
2022-07-27 09:34:36 +02:00