Commit Graph
100 Commits
Author SHA1 Message Date
retrooper 9b3cf41f35 Working on loading API improvements for Spigot. 2022-12-07 22:20:44 +01:00
retrooper 738309506d Merge pull request #484 from wordandahalf/2.0
Ensure dimension's attributes is initialized to a non-null value
2022-10-09 11:04:41 +02:00
retrooper 8a9338ae46 Merge pull request #482 from LeeGodSRC/bugfix/packet-teams
Fixed WrapperPlayServerTeams send incorrect color post 1.17
2022-10-05 21:43:32 +02:00
retrooper 9aa27103a0 Fix WrapperPlayServerBlockEntityData constructor 2022-10-05 21:41:13 +02:00
retrooper d2d3d84cbf Merge remote-tracking branch 'origin/2.0' into 2.0 2022-10-03 20:29:06 +02:00
retrooper e9a5c9315c receivePacket works fully with ViaVersion;
receivePacketSilently works with ViaVersion if there is only one packetevents instance (until ViaVersion fixes their injector)
2022-10-03 20:22:09 +02:00
retrooper f7b6fc476f When server sends chat messages to large, it used to kick players instead of just throwing an error. We fixed that. 2022-09-11 20:23:54 +02:00
retrooper ea32d28d0b Allow broken spigot forks not allowing us to detect server versions to load packetevents and assume server version is 1.8.8 (more common on older forks) 2022-08-23 18:10:32 +02:00
retrooper ad70e4b996 Correct WrapperStatusClientRequest constructor 2022-08-17 21:25:17 +02:00
retrooper c320ebce86 Update usage of blockface in digging wrapper 2022-08-17 21:24:43 +02:00
retrooper 01c81f5a0b Remove duplicate getter and setter in WrapperPlayClientPlayerDigging 2022-08-17 21:19:18 +02:00
retrooper 66c722ec00 We correctly handle users trying to run packetevents on server versions not yet supported. Sort of a hotfix for now 2022-08-17 18:08:25 +02:00
retrooper af38857d07 Correct link in error when loading with outdated ProtocolSupport 2022-08-17 17:53:14 +02:00
retrooper 5a1a02d212 Attempted to implement a NBTCodec.nbtToJson & NBTCodec.jsonToNBT 2022-08-17 10:41:41 +02:00
retrooper bc96b5cd3e remove 2022-08-16 21:19:30 +02:00
retrooper c44e834c01 WrapperPlayServerEntityProperties -> WrapperPlayServerUpdateAttributes
ENTITY_PROPERTIES -> UPDATE_ATTRIBUTES

Attempted to fix issues on legacy versions where keys are too long for some reason
2022-08-16 21:05:00 +02:00
retrooper 4273bf6587 Fix WrapperPlayClientTabComplete for 1.9->1.12.2 2022-08-16 20:30:20 +02:00
retrooper 3329a544a4 WrapperPlayServerTradeList -> WrapperPlayServerMerchantOffers
TRADE_LIST -> MERCHANT_OFFERS

Breaking changes to merchant offers wrapper and fixed bugs on 1.19+
2022-08-16 18:56:29 +02:00
retrooper 075784498c Update copyright year in files. 2022-08-16 17:48:35 +02:00
retrooper aa9cc58b49 1.19.2 support is ready. 2022-08-05 17:05:23 +02:00
retrooper 9de4dcf4b1 Fixed EntityMetadata 2022-08-05 15:24:49 +02:00
retrooper eae3d091f8 More optimizations to entitydatatypes 2022-08-05 13:24:26 +02:00
retrooper 5f499123df Some optimizing to EntityDataTypes 2022-08-05 13:04:18 +02:00
retrooper a6c16ab45a Preparing for 1.19.2 update. 2022-08-04 18:28:11 +02:00
retrooper c060a55740 Removed debugs. 2022-08-03 23:54:09 +02:00
retrooper 8447998ce6 Transformed ChatType from an enum to a registry. Use ChatTypes.CHAT for example;
Removed weird exception supression, working on seperating user exceptions and internal packet api exceptions.
2022-08-03 23:53:20 +02:00
retrooper 99bc0ffcb6 Hopefully fixed some decoder issues? 2022-08-03 20:23:05 +02:00
retrooper dea5feaa1e Added proper exceptions again, still looking for a better way to handle exceptions. 2022-08-03 20:19:07 +02:00
retrooper 5717b6050e User#sendPacketSilently added 2022-08-01 21:19:30 +02:00
retrooper 8eb60e9398 Exclude GSON from being shaded when shading adventure on the spigot module. 2022-08-01 20:33:05 +02:00
retrooper 4db2dc0592 SELECT_ADVANCEMENT_TAB renamed to SELECT_ADVANCEMENTS_TAB;
ADVANCEMENTS renamed to UPDATE_ADVANCEMENTS;
2022-08-01 20:32:24 +02:00
retrooper ba1daa4b17 Micro optimization to EntityDataTypes and its mappings. 2022-08-01 20:30:49 +02:00
retrooper 69700bce2a Fixed exception handling entirely. 2022-07-30 19:09:54 +02:00
retrooper 9dc0db4eae Minor fix attempt to exception handling. 2022-07-30 16:20:18 +02:00
retrooper 8aeef01bd4 Fixed packet type mappings for 1.19.1;
Fixed constructor event for WrapperPlayServerCustomChatCompletions & WrapperPlayServerPlayerChatHeader
2022-07-29 20:51:41 +02:00
retrooper 3fff3925b2 Remove debugs. 2022-07-28 19:18:54 +02:00
retrooper 72c0ecbc5d WrapperPlayClientPlayerDigging reads readByte() instead of readUnsignedByte() 2022-07-28 19:11:11 +02:00
retrooper 785c8056f9 WrapperPlayClientEntityAction now has 1.7.10 support 2022-07-28 18:50:02 +02:00
retrooper 48ef856d02 Fixed BlockFace index out of bounds 2022-07-28 18:35:44 +02:00
retrooper 64ae9bfe27 Merge pull request #375 from NoJokeFNA/feat/update-jigsaw-block-wrapper
Added WrapperPlayClientUpdateJigsawBlock
2022-07-28 00:39:40 +02:00
retrooper 7b028f61d6 Optimized WrapperPlayClientUpdateJigsawBlock. It was added in 1.14, no point accounting for 1.7 protocol specialities? 2022-07-28 00:37:30 +02:00
retrooper 5d3f2105f0 Remove small debug 2022-07-27 16:13:05 +02:00
retrooper a4c57cf41c Made packetevents a snapshot version on nexus 2022-07-27 08:56:28 +02:00
retrooper e8fa6d793f Minor fix 2022-07-26 22:36:10 +02:00
retrooper 8fa6c3ad1e Don't use nexus snapshot repo I guess? 2022-07-26 22:30:34 +02:00
retrooper 2044657fb6 Last nexus fix xd 2022-07-26 22:25:37 +02:00
retrooper 8c216d0aa6 Apparently we cannot publish twice. 2022-07-26 22:24:06 +02:00
retrooper b80f22bf08 Another nexus fix 2022-07-26 22:22:09 +02:00
retrooper 4b0414c61b Fixes for nexus repo 2022-07-26 22:18:42 +02:00
retrooper 3c43382148 Attempting rebuild for Nexus repository 2022-07-26 22:03:55 +02:00
retrooper 00e081fcad ProtocolPacketEvent#getFullBufferClone to assist users attempting to delay packets. 2022-07-26 18:13:24 +02:00
retrooper 8cc8e5f171 Minor change to terminate. 2022-07-26 16:51:23 +02:00
retrooper b449205b6f Unregister listeners on termination to avoid duplicate packet listeners. 2022-07-26 16:32:09 +02:00
retrooper bbe88eba3d Attempting nexus repo fixes. 2022-07-25 19:33:56 +02:00
retrooper f271778905 Properly publish dependencies to Nexus repository. 2022-07-25 19:25:04 +02:00
retrooper fdefa91208 Minor changes 2022-07-25 19:09:44 +02:00
retrooper 909eb7cde3 Don't minimize jar to allow jenkins builds to contain all wrappers(even unused ones). 2022-07-25 19:08:30 +02:00
retrooper 1b3598182b Fix WrapperPlayServerChatMessage for versions below 1.16. 2022-07-25 18:45:38 +02:00
retrooper 88cd3bea89 Remove PublicKey from being stored in User. 2022-07-18 11:57:57 +02:00
retrooper 1ec83d1398 Optimize WrapperLoginServerLoginSuccess 2022-07-18 11:14:08 +02:00
retrooper adf46aaeca I think this should fix SpoofMC bots? 2022-07-18 08:26:40 +02:00
retrooper 43669d3652 Support connections that aren't necessarily Epoll or Nio. (there is your IO_URING fix) 2022-07-18 08:23:23 +02:00
retrooper bc356c6daf Improved exception handling. 2022-07-14 10:51:06 +02:00
retrooper e3e29ed79b Deprecate legacy Dimension constructor. 2022-07-06 22:38:53 +02:00
retrooper be4e820c0a Fixes to WrapperPlayServerRespawn for 1.15-1.16? 2022-07-06 22:36:37 +02:00
retrooper d7e1aa2161 Hopefully this breaks nothing but we need to load packet type mappings before the injector injects. As a rare scenario where the main-thread (when the plugin enables) and the netty threads both notice the mappings aren't loaded, they load them simultaneously which isn't handled well. 2022-07-06 21:29:13 +02:00
retrooper f214cc54c6 Fix WrapperPlayServerParticle for 1.19 2022-07-06 15:22:24 +02:00
retrooper d54baa4293 Hopefully all works now. 2022-07-03 06:49:58 +02:00
retrooper e3e4ac027f Merge pull request #446 from retrooper/revert-439-feat/improvements
Revert "Cleaned up and improved some wrappers"
2022-07-03 06:48:38 +02:00
retrooper c8023cd828 Revert "Cleaned up and improved some wrappers" 2022-07-03 06:47:53 +02:00
retrooper 9770948c45 Fixed PacketTransformationUtil 2022-07-01 22:10:35 +02:00
retrooper 6b62e2152f EquipmentSlot renamed some enum constats to make more sense. 2022-07-01 22:05:27 +02:00
retrooper 88a223e2d9 Merge pull request #439 from NoJokeFNA/feat/improvements
Cleaned up and improved some wrappers
2022-07-01 22:02:33 +02:00
retrooper d054164a4b User#sendMessage doesn't look awkward on 1.19 anymore and few minor optimizations or fixes? 2022-06-27 19:44:16 +02:00
retrooper 2bcb1dcb90 Fix WrapperPlayClientPluginMessage 2022-06-27 18:55:12 +02:00
retrooper c8d472beb7 Removed WrapperPlayClientPluginMessage generics, channel name always string. 2022-06-27 18:22:11 +02:00
retrooper 18689e4f00 Fixed WrapperPlayServerJoinGame 2022-06-27 18:09:20 +02:00
retrooper 440c73431e Fixed WrapperPlayServerRespawn for 1.19, my bad but i wonder why it doesn't work? 2022-06-27 17:59:21 +02:00
retrooper de634687fa Fixed WrapperPlayServerRespawn for 1.19. 2022-06-27 17:52:02 +02:00
retrooper 6d0a753d2d Remove debugs. 2022-06-27 17:45:10 +02:00
retrooper c43b24c0db Attach public key to user handle for us to verify chat messages. (I hope this is the right key as our message verifier doesn't work rn) 2022-06-27 17:42:00 +02:00
retrooper 7df7ffcc69 Some cleanup to the component wrappers, use the abstraction we have to avoid code duplication. 2022-06-27 17:27:55 +02:00
retrooper 1ae1b5abf1 Merge pull request #353 from NoJokeFNA/feat/recipe-wrappers
Added WrapperPlayClientCraftRecipeRequest & WrapperPlayServerCraftRecipeResponse created
2022-06-22 14:59:27 +02:00
retrooper 0e471c665d Merge pull request #428 from NoJokeFNA/fix/sound-wrappers
[1.19] Fix sound wrappers
2022-06-21 22:23:16 +02:00
retrooper 4915d7d4a3 Merge pull request #433 from NoJokeFNA/change/cleanup
Refactored WrapperPlayServerChatMessage and cleaned up some classes
2022-06-21 22:12:27 +02:00
retrooper 29fe12ef57 Merge pull request #427 from NoJokeFNA/fix/set-breacon-effect-wrapper
[1.19] Fixed WrapperPlayClientSetBeaconEffect
2022-06-16 07:48:53 +02:00
retrooper 5116d62488 Merge pull request #359 from NoJokeFNA/feat/set-recipe-book-state-wrapper
Added WrapperPlayClientSetRecipeBookState
2022-06-16 07:47:30 +02:00
retrooper 6387309f01 WrapperPlayClientChatMessage fix message data optional being null. 2022-06-16 07:41:06 +02:00
retrooper 4def9c7ab1 Fix user sendmessage on 1.19 (use system chat message wrapper packet)
Fix WrapperPlayServerRespawn for 1.19.
2022-06-10 21:04:12 +02:00
retrooper 79f102ecc5 Compilation error fix 2022-06-10 20:10:32 +02:00
retrooper 1bdc56d251 Fix WrapperLoginClientLoginStart on 1.19. 2022-06-10 20:07:55 +02:00
retrooper d1d793f9e7 SpigotDataHelper -> SpigotConversionUtil
WrapperPlayServerChatMessage completed,
WrapperPlayServerSystemChatMessage created,
Minor bug fixes to other component wrappers.
2022-06-10 20:00:08 +02:00
retrooper 7ae55731fb Minor changes, but still cant verify messages :c 2022-06-09 20:20:55 +02:00
retrooper cd24067ce7 Added 1.19 entity poses. 2022-06-09 19:13:58 +02:00
retrooper 3f1f65e4a3 Merge remote-tracking branch 'origin/2.0' into dev/1.19
# Conflicts:
#	api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerJoinGame.java
2022-06-09 19:08:45 +02:00
retrooper 849713eaea Unable to verify messages? 2022-06-08 23:54:06 +02:00
retrooper 52db6d7b6a Working on cryptography additions in 1.19 update for the secure chat system.
Debugs enabled and join game needs to be updated for 1.19 support so some parts are commented out.

Chat messages cause problems.
2022-06-08 22:52:39 +02:00
retrooper 0434cd6bf8 Fix packet type mappings for CHAT_MESSAGE. 2022-06-08 17:57:36 +02:00
retrooper 18a1d51c19 Fix number format exception when parsing very outdated protocolsupport build versions. 2022-06-07 23:14:45 +02:00
retrooper db7ec7fe95 Fixed compilation errors. 2022-06-07 23:10:26 +02:00