retrooper
fa3b563c70
2.0.1 release
2023-09-12 00:36:31 +02:00
retrooper
55e31483e7
Changes to naming of WrapperPlayServerHurtAnimation
2023-09-12 00:02:38 +02:00
retrooper
aa34910468
Update User#getWorldNBT usages to handle a nullable value.
2023-09-11 23:35:11 +02:00
retrooper
5e44913a5e
Sending packets on proxies is now supported!
...
* ChannelInjector#isProxy added to detect if our implementation is running on a proxy
2023-08-31 20:25:27 +02:00
retrooper
b8dc964112
Add jenkins builds on README
2023-08-31 10:40:57 +02:00
retrooper
890844fb60
Fix broken link in README
2023-08-31 10:40:08 +02:00
retrooper
fc57c9e077
Update README
2023-08-31 09:46:32 +02:00
retrooper
f12ef113aa
Fixed packet-modification on BungeeCord.
2023-08-26 22:35:29 +02:00
retrooper
e8144ece97
Minor fix to 1.12 item type mappings.
2023-08-24 18:42:48 +02:00
retrooper
b611ad5522
Update to 1.20 bungeecord API for packetevents 2.0.0
2023-08-22 19:47:15 +02:00
retrooper
53e1014c8d
Cleanup to build.gradle for 2.0.0 rollout
2023-08-22 19:15:43 +02:00
retrooper
69f992a984
PacketEvents 2.0.0 release rollout
2023-08-22 19:12:53 +02:00
retrooper
fde9db39b7
Update README
2023-08-22 18:19:26 +02:00
retrooper
6c6a2535c8
Don't think getEntityById is a function that can be fixed
2023-08-22 18:01:31 +02:00
retrooper
23d06075dd
Fix BungeeCord injector, you may now listen to packets on proxies.
2023-08-22 17:39:19 +02:00
retrooper
926fd1ae50
Set default values for data inside ChunkData wrapper
2023-08-22 15:04:12 +02:00
AoElite
756add003f
Catch exceptions not throwables for events
2023-08-17 18:48:14 -04:00
retrooper
800ffafb96
Update README.md
2023-07-15 19:16:11 +02:00
AoElite
ba2d9ae9f0
Merge pull request #598 from clrxbl/fix/chest-block-attributes
...
Fix chest block attribute order
2023-07-04 18:20:33 -04:00
Michael
31d07e4a39
Fix chest block attribute order
2023-07-05 00:07:12 +02:00
retrooper
ec36a5d1d8
Set reEncodeByDefault to true by default
2023-06-29 11:53:04 +02:00
retrooper
08ba59e1d9
Merge pull request #596 from SamB440/fix/mosaic
...
More block tag fixes
2023-06-28 19:47:51 +02:00
retrooper
851c74e827
Merge pull request #597 from SamB440/feat/item-tags-one-twenty
...
Update ItemTags to 1.20
2023-06-28 19:47:05 +02:00
SamB440
b31893e035
Update ItemTags to 1.20
2023-06-27 13:51:35 +01:00
SamB440
4718fb985d
Might as well add all new 1.20 tags
2023-06-26 22:07:18 +01:00
SamB440
aed9bc14fa
Add SWORD_EFFICIENT block tag
2023-06-26 21:56:30 +01:00
SamB440
1daad13da3
Mosaic + step sound blocks
2023-06-26 21:43:58 +01:00
retrooper
65a984e805
Fix NPC#updateTabPing
2023-06-26 22:15:30 +02:00
retrooper
a923b950f6
Add getters for WrapperPlayServerBlockChange
2023-06-25 00:29:02 +02:00
retrooper
ac5790411f
MessageSignData is no longer an optional in chat message wrapper, but the signature bytes can be set to length 0, to indicate that it is not present, otherwise it is.
2023-06-25 00:25:07 +02:00
retrooper
cd3449ade2
Newer chat message wrappers extend chat message_v_16 to simplify usage for users aiming 1.16+
2023-06-23 20:27:25 +02:00
retrooper
75af221f77
Account for fake players that trigger onJoin event.
2023-06-19 17:48:36 +02:00
retrooper
6f9b2cf5e9
Deprecate ChatMessage_v1_19_3
2023-06-19 17:39:32 +02:00
retrooper
4b4dd492cf
Fix ChatMessage_v1_19_3#setChatContent
2023-06-19 17:35:35 +02:00
retrooper
68471d32c8
Fix ChatMessage_v1_19_3#setChatContent to update the plainContent
2023-06-18 08:50:33 +02:00
retrooper
b7d0ce9518
Make ChatMessage_v1_19_3#unsignedChatContent nullable, getter returns an optional
2023-06-17 23:35:46 +02:00
retrooper
58abfc0c1e
Merge pull request #594 from AbhigyaKrishna/2.0
...
1.19.3 ChatMessage fix
2023-06-17 23:31:48 +02:00
AbhigyaKrishna
a3f6adac2f
More effective case check for 1.19.1 chat component
2023-06-18 02:53:39 +05:30
AbhigyaKrishna
f0c9af4464
Revert "Fix ChatMessageProcessor_v1_19_3's unsignedChatContent being null"
...
This reverts commit f43fff899f .
2023-06-18 02:52:25 +05:30
retrooper
f43fff899f
Fix ChatMessageProcessor_v1_19_3's unsignedChatContent being null
2023-06-17 23:14:33 +02:00
AbhigyaKrishna
9291fd8953
1.19.3 ChatMessage fix
2023-06-18 02:34:48 +05:30
retrooper
feb975010e
Fix 1.19.3+ outgoing chat processing. LastSeenMessages -> LastSeenMessages.Packed
2023-06-16 22:47:15 +02:00
retrooper
5c34c8e6c3
Cleanup of Optional uses
2023-06-16 22:46:11 +02:00
retrooper
8aaf40fc74
Now able to detect 1.20.1 servers.
2023-06-14 23:21:10 +02:00
retrooper
c6fcab2923
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-06-14 17:55:27 +02:00
retrooper
64006b91a4
Fix particle importing on 1.8
2023-06-14 17:55:09 +02:00
DefineOutside
625a66f45a
Merge pull request #592 from AoElite/2.0
...
Add cracked state value
2023-06-12 21:13:44 -05:00
AoElite
0c6208f931
add cracked state value
2023-06-12 22:11:37 -04:00
retrooper
be32f464c5
Merge pull request #591 from SamB440/fix/block-tags
...
Fix missing block tag states
2023-06-12 22:13:12 +02:00
SamB440
3389baf40e
More missing block tag states
2023-06-12 20:45:26 +01:00
retrooper
edc85e68e8
Update copyright year
2023-06-12 20:14:05 +02:00
SamB440
3f9f093934
Fix missing block tag states
2023-06-12 19:09:25 +01:00
retrooper
31426cc69c
Add WrapperPlayServerBundle wrapper.
2023-06-12 19:54:33 +02:00
retrooper
cec8c9789f
SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE fixed
2023-06-12 17:30:38 +02:00
retrooper
f771e15ce0
* Added new StateTypes for 1.20 minecraft
...
* SUSPICIOUS_SAND now has an assigned tool(a shovel), and has been updated (since 1.20)
2023-06-12 17:04:28 +02:00
retrooper
68a3702cd6
ItemType key is always lowercased
2023-06-12 15:21:59 +02:00
retrooper
8f4f688fb8
Update WrappedBlockState mappings, still need to add new state types i believe
2023-06-12 00:35:54 +02:00
retrooper
0a380344c5
Updated particle type mappings to 1.20 minecraft
2023-06-11 23:16:46 +02:00
retrooper
ab458ded62
Rename "var_long" to "long" in EntityDataTypes
2023-06-11 22:50:12 +02:00
retrooper
3bc78c1aec
ItemType mappings updated, new item types added to API
2023-06-11 22:22:39 +02:00
retrooper
0feebb6819
Fix chat wrapper for 1.19.3+
2023-06-11 12:34:52 +02:00
retrooper
cdb48e0ab6
Fix chat & encryption wrapper (salt signature processing)
2023-06-11 12:20:41 +02:00
retrooper
85e819d72f
Fix AdventureReflectionUtil
2023-06-11 10:50:10 +02:00
retrooper
10d44fe3cb
Update adventure to 4.14.0
2023-06-11 10:31:34 +02:00
retrooper
6b5ada3c5d
Update all wrappers for 1.20 minecraft
2023-06-11 10:08:45 +02:00
retrooper
2f0861c7b7
Update build.gradle to spigot 1.20
2023-06-11 09:45:17 +02:00
DefineOutside
abc8695a29
Merge pull request #590 from AoElite/2.0
...
Add 1.20 protocol
2023-06-08 08:01:42 -05:00
AoElite
c6577646ce
remove _0
2023-06-08 07:50:12 -04:00
AoElite
a6c68b2d0e
minimal 1.20 update
2023-06-07 18:12:59 -04:00
DefineOutside
23e0861192
Merge pull request #585 from ammodev/2.0
...
fix: Block State 1.19.4
2023-06-01 08:49:51 -05:00
MWHunter
7539aa345c
add better debug to entity metadata
2023-05-29 18:52:30 -05:00
Simon
2a076a61a0
fix: Accidental code deletion
...
Due to me not wanting to push my own sorting for imports and stuff I accidentally deleted some lines of code. Now fixed.
2023-05-27 00:54:12 +02:00
Simon
bf0ec04cec
fix: Block State 1.19.4
...
Fixed a bug in which the block state could not be mapped. Used in the new BlockDisplays
2023-05-27 00:47:55 +02:00
DefineOutside
fea687bba9
Merge pull request #584 from Offenderify/fix/block_data_packet
...
Fix block entity data packet
2023-05-23 20:34:55 -05:00
DefineOutside
25e83d6181
Merge pull request #579 from minus1ms/2.0
...
Add WrapperPlayServerDeclareCommands
2023-05-23 20:32:53 -05:00
Offenderify
95a91bb1f2
fix: block entity data packet
2023-05-20 15:10:58 +03:00
MWHunter
e1e057eabb
fix some 1.8 errors and exceptions
2023-05-14 16:36:47 -05:00
retrooper
f81120f8ed
Merge pull request #575 from Aseeef/2.0
...
Added a Conversion Util to convert to/from PacketEvents to Bukkit Particles
2023-05-13 20:31:26 +02:00
minus1ms
e44ad5edc2
better name of method
...
read is more self-explaining than get
2023-05-01 18:10:06 +02:00
minus1ms
c35d0854bc
Added nullable annotation where it should be
2023-05-01 18:01:47 +02:00
minus1ms
47dbb5e9c0
Add WrapperPlayServerDeclareCommands
...
added WrapperPlayServerDeclareCommands
im not sure if i did Parsers and Node in good way and im not sure if these are in good packages, everything works as intended
2023-04-30 18:47:55 +02:00
Aseeef
702894dd07
Merge branch 'retrooper:2.0' into 2.0
2023-04-26 17:05:54 -04:00
MWHunter
4801196942
move adventure serializer to adventure util package
2023-04-24 10:24:47 -05:00
retrooper
c88a9c412c
Ignore modern spoofed players
2023-04-23 22:42:13 +02:00
retrooper
4012472404
Merge pull request #564 from cheaterSK/2.0
...
Fix WrapperPlayClientChatCommand and WrapperPlayClientChatMessage
2023-04-23 22:39:03 +02:00
retrooper
54f3f3c221
Minor fixes to WrapperPlayClientChatCommand
2023-04-23 22:37:55 +02:00
cheaterSK
873557151b
Merge branch 'retrooper:2.0' into 2.0
2023-04-23 17:34:10 +02:00
MWHunter
32e96f3f51
include other included non-latest gson versions
2023-04-22 18:09:41 -05:00
MWHunter
cdffd10999
Update adventure to support new chat components
2023-04-22 17:49:38 -05:00
aseef
1524a546d8
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java
2023-04-15 15:06:58 -04:00
aseef
40d7be6236
* added a conversion util to convert between bukkit and packet events particles
2023-04-15 15:03:08 -04:00
retrooper
98b2b7b631
Fix exceptions on Spigot
2023-04-09 07:21:49 +02:00
retrooper
54704811b3
Fix code duplication in spigot encoder
2023-04-07 20:02:53 +02:00
retrooper
54241497b5
fix imports
2023-04-07 19:41:27 +02:00
retrooper
99637743f5
I've made a severe and continuous lapse of my judgment. and I don't expect to be forgiven. I'm simply here to apologize. so what we came across that day in the woods was obviously unplanned.2 Jan 2018
2023-04-07 19:39:56 +02:00
retrooper
702452c3a1
Final fix for missing imports.
2023-04-07 19:38:11 +02:00
retrooper
7e424cd46b
Bruh
2023-04-07 19:36:01 +02:00
retrooper
58401fc18e
Fix import errors again..
2023-04-07 19:34:41 +02:00
retrooper
7285eeff5a
Fix missing import in PacketEventsImplHelper
...
Sorry, I'm editing this in GitHub website cause I'm working on different branches in parallel
2023-04-07 19:31:01 +02:00
retrooper
cfb57e7a99
Add handleClientBoundPacket to PacketEventsImplHelper
...
This helps reduce code duplication when implementing encoders and decoders that have similar functionality on other platforms.
2023-04-07 19:27:22 +02:00
MWHunter
93cd6f39f9
fix isReplaceable()
2023-04-04 20:26:42 -05:00
MWHunter
9975706ba8
update statetypes, itemtypes, block tags to experimental datapack
2023-04-02 13:13:23 -05:00
retrooper
9b88a9ef98
Minor correction to EntityDataTypes
2023-04-02 18:55:33 +02:00
retrooper
548c6183a4
Added the EntityDataType registries, added in 1.19.4
2023-04-02 18:50:12 +02:00
DefineOutside
19d271881c
Merge pull request #510 from UserNugget/1.20-experimental-features
...
'1.20 experimental features' support
2023-04-02 10:19:51 -05:00
MWHunter
a64978cb0a
delete unmaintained classes
2023-04-02 10:15:28 -05:00
MWHunter
527beda70f
allow users to flag events as needing re-encoding, for performance reasons
2023-04-02 10:14:07 -05:00
MWHunter
127421a1d2
add sniffer
2023-04-02 09:53:34 -05:00
MWHunter
4a188bd116
don't eat exceptions
2023-04-02 09:50:59 -05:00
MWHunter
cd6db40a0d
add runTask() functionality to folia compat utils
2023-04-01 15:16:11 -05:00
MWHunter
d050c10eab
make isFolia() public
2023-04-01 15:09:57 -05:00
MWHunter
82e5b68119
update folia compat utility
2023-04-01 15:03:40 -05:00
MWHunter
3f00e1d817
more folia support utils
2023-04-01 14:50:47 -05:00
MWHunter
7296072bcb
folia support
2023-04-01 14:41:39 -05:00
DefineOutside
132ae43496
Merge pull request #565 from LemonCaramel/fix/server-data
...
fix WrapperPlayServerData issue in 1.19.4
2023-03-28 08:38:49 -05:00
LemonCaramel
2465ba9306
fix WrapperPlayServerData issue in 1.19.4
2023-03-27 09:24:39 +09:00
cheaterSK
2e10b151c9
Fix WrapperPlayClientChatCommand and WrapperPlayClientChatMessage for 1.19
2023-03-26 17:12:22 +02:00
cheaterSK
9a338cd897
Fix WrapperPlayClientChatCommand
2023-03-26 16:32:12 +02:00
retrooper
7c0bac33df
Fix WrapperLoginClientLoginStart for 1.19.4
2023-03-21 22:56:50 +01:00
MWHunter
db8c4ce08d
register new entity mappings
2023-03-18 21:10:03 -04:00
MWHunter
af52640237
fix entity mappings
2023-03-18 20:59:42 -04:00
MWHunter
b6d71a79a1
mark default block states
2023-03-17 19:26:02 -05:00
DefineOutside
407257c2ce
Merge pull request #558 from MachineBreaker/pooled-bytebuffers
...
Use Pooled ByteBuffer in SpigotReflectionUtil for decoding/encoding ItemStacks
2023-03-17 17:44:30 -05:00
Alejandro Martinez
19e7bc6190
Use Pooled ByteBuffers in decodeBukkitItemStack & encodeBukkitItemStack
2023-03-17 16:15:23 -06:00
retrooper
e0beccff4d
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-03-17 21:57:31 +01:00
retrooper
1728e667ea
Push
2023-03-17 21:57:03 +01:00
retrooper
c2cce6fac7
Merge pull request #550 from AbhigyaKrishna/2.0
...
Adventure Backward Compatibility (<4.9.0) support
2023-03-17 19:07:08 +01:00
retrooper
9cf38bc325
Merge pull request #556 from maximbreitman/2.0
...
Add accessors to WrapperPlayServerPlayerInfoUpdate.PlayerInfo
2023-03-17 19:06:00 +01:00
maximbreitman
c0522d7836
Add accessors to WrapperPlayServerPlayerInfoUpdate.PlayerInfo
2023-03-17 17:31:47 +03:00
DefineOutside
dc1ac3beb3
Merge pull request #555 from MachineBreaker/patch-2
...
Log getDefaultState in Config Level
2023-03-16 16:34:48 -05:00
MachineBreaker
d59a11a340
Log getDefaultState in Config Level
...
Prevent spamming the console with:
[ac.grim.grimac.shaded.com.github.retrooper.packetevents.PacketEventsAPI] Default state for lantern is null. Returning AIR
2023-03-16 15:29:36 -06:00
MWHunter
a8e95c23ac
initial 1.19.4 support
2023-03-15 22:31:29 -05:00
DefineOutside
607b8dde56
Update LegacyFlexibleStorage.java
2023-03-14 12:06:06 -05:00
Abhigya
a0ccfb4875
Legacy Adventure (<4.9.0) support
2023-03-13 16:02:35 +05:30
retrooper
afcf98e2c8
Merge pull request #549 from Aseeef/2.0
...
Fixed Adventure API & Build Issues
2023-03-12 18:41:25 +01:00
aseef
51d74ae7ea
* relocated adventure api
...
* fixed velocity repo url
2023-03-12 13:33:13 -04:00
retrooper
7b6308c4e0
Merge pull request #546 from jtJava/2.0
...
Expose NPC channels and remove unnecessary parameters
2023-03-09 22:14:50 +01:00
jtJava
cdbe0df0f3
Expose NPC channels and remove unnecessary parameters
2023-03-08 16:29:58 -06:00
DefineOutside
d799ba7190
Merge pull request #543 from Aseeef/2.0
...
Marker interfaces to packet types
2023-03-01 20:25:43 -06:00
aseef
8c03d2e3a0
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-03-01 21:19:19 -05:00
aseef
7c2994e54d
PacketTypes now implement a marker interface indicating whether the packets are client bound or server bound
2023-03-01 21:19:03 -05:00
aseef
e1e61feebf
reverted an accidental change
2023-03-01 21:18:46 -05:00
aseef
e6fb117182
PacketTypes now implement a marker interface indicating whether the packets are client bound or server bound
2023-03-01 21:16:44 -05:00
retrooper
a7aa3eae68
Merge pull request #540 from cheaterSK/2.0
...
feat: Add option in settings to disable color downsampling + fix actions/upgrade gradle
2023-02-20 16:20:20 +01:00
cheaterSK
d38089a46a
Upgrade gradle to 8.0.1, fix issues that came with it + freeze the version with ./gradlew in actions to avoid issues in future
2023-02-19 11:06:25 +01:00
cheaterSK
e2a980adde
Fix backwards compatibility
2023-02-18 10:09:09 +01:00
cheaterSK
a4e116d34f
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerPlayerInfo.java
2023-02-18 10:02:37 +01:00
retrooper
6b61682fe4
Merge pull request #538 from Aseeef/2.0
...
NPE + ConcurrentModification Exception Fix
2023-02-15 23:37:53 +01:00
MWHunter
0c4709ac57
fix exception when mojang sends DISCONNECT in STATUS state, for some reason
2023-02-13 12:09:23 -06:00
DefineOutside
c6a542d206
Merge pull request #529 from ammodev/2.0
...
Version not being chosen correctly
2023-02-13 11:58:48 -06:00
MWHunter
d67028f568
don't enable debug by default
2023-02-12 17:08:39 -06:00
aseef
af48ee3938
Now creating a set using concurrenthashmap
2023-02-12 13:00:48 -05:00
aseef
945919c1e0
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-02-12 08:32:04 -05:00
aseef
38de7a4b94
should fix concurrent modification exception
2023-02-12 08:30:32 -05:00
Aseeef
419232a075
Merge branch 'retrooper:2.0' into 2.0
2023-02-12 07:47:12 -05:00
aseef
e705b2725d
fixed a npe
2023-02-12 07:46:10 -05:00
MWHunter
004702f642
remove more unused internal methods
2023-02-11 16:24:13 -06:00
MWHunter
4c29d39292
clean up unused internal methods
2023-02-11 16:11:46 -06:00
MWHunter
24e8ff4fb4
fix fix setting components in EntityDataProvider
2023-02-03 12:59:05 -06:00
MWHunter
cf61f74ade
fix setting components in EntityDataProvider
2023-02-03 09:13:19 -06:00
MWHunter
72ab24b419
disable debug listener and reset the class
2023-02-02 22:11:14 -06:00
MWHunter
8c8357bfbc
avoid modifying backing array
2023-02-02 16:53:16 -06:00
MWHunter
59d36b6e55
Revert "ensure we have recovery logic for missing transition to PLAY state"
...
This reverts commit 647c05fe98 .
2023-02-02 13:25:09 -06:00
MWHunter
decf5579a3
reverse lists sanely
2023-02-01 21:18:22 -06:00
MWHunter
187f5a54c6
Why do we not set protocol to GAME state if client version is unknown???
2023-02-01 20:54:46 -06:00
MWHunter
647c05fe98
ensure we have recovery logic for missing transition to PLAY state
2023-02-01 20:50:46 -06:00
MWHunter
a089b98f6d
warn instead of debug on late injection
2023-02-01 20:45:43 -06:00
MWHunter
9d21b834cc
reverting bc356c6d - not setting to GAME state if client version unknown? what is retrooper doing?
2023-02-01 20:43:38 -06:00
MWHunter
069e872204
print more exceptions?
2023-02-01 20:39:02 -06:00
Simon
e945c9c56f
Update build.gradle
...
Revert the changes on the version to fit current standards
2023-01-31 22:09:12 +01:00
Simon and Julian
b8058b57d8
Update bungeecord/src/main/java/io/github/retrooper/packetevents/bungee/factory/BungeePacketEventsBuilder.java
...
Updated code style
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2023-01-31 09:33:17 +01:00
retrooper
7ce167157a
Merge pull request #442 from NoJokeFNA/feat/bungeecord
...
Cleaned up BungeeCord module
2023-01-30 19:47:05 +01:00
DefineOutside
0503e99c50
Merge pull request #530 from DietrichPaul/patch-1
...
fixed 1.7 block placement
2023-01-30 12:04:17 -06:00
MWHunter
413d5e1eb5
add toString for StateType
2023-01-29 17:47:55 -06:00
MWHunter
51ebbb7914
ignore more types of invalid handshakes with the server
2023-01-29 12:36:47 -06:00
Paul Dietrich
2b98d5c90b
fixed 1.7 block placement
2023-01-29 11:05:28 +01:00
MWHunter
099ea9b7e9
fix race condition when sending packets to multiple people
2023-01-28 17:53:05 -06:00
Simon
ce703febc3
Fixed a bug where the version would not be chosen correctly
2023-01-29 00:16:00 +01:00
Simon
dce59f99fd
Changed git ignore to include vscode files
2023-01-29 00:09:03 +01:00
UserNugget
5ff498b6f0
1.20 experimental blocks/items/tags
2023-01-28 11:21:07 +03:00
MWHunter
32b85dce18
add more methods to avoid forcing people to use clientVersion
2023-01-27 23:13:57 -06:00
MWHunter
89b8d823c4
avoid forcing people to specify clientversions for block data
2023-01-27 23:11:53 -06:00
MWHunter
fc0f1eec68
default block state to server version
2023-01-27 22:36:05 -06:00
MWHunter
765fb79321
add modern conversions for WrappedBlockState
2023-01-27 22:34:55 -06:00
MWHunter
eb42c1b473
warn instead of error if someone else removes our handlers on reloads/shutdowns
2023-01-27 20:58:02 -06:00
MWHunter
ce484ecac5
support reloads
2023-01-27 20:20:44 -06:00
MWHunter
cb3e4d33a7
properly handle sending -1 (survival) gamemode in player info
2023-01-27 19:43:34 -06:00
MWHunter
12c01eb2fa
update chat wrappers to 1.19.3
2023-01-27 19:25:31 -06:00
MWHunter
c4b8a17437
fix project setup by not setting java source and target compat in the base build.gradle
2023-01-27 17:13:24 -06:00
MWHunter
5dde544e07
correct gradle specifying submodules
2023-01-27 16:19:39 -06:00
MWHunter
d16ad2154d
hack around bungeecord's inability to process empty buffers
2023-01-27 13:31:01 -06:00
MWHunter
245da7a870
ignore handshaking exceptions
2023-01-27 12:55:08 -06:00
MWHunter
2a0b217718
revert last change
2023-01-27 12:23:17 -06:00
MWHunter
582cfa7b57
fix cancelling outbound packet kicking people on bungeecord
2023-01-27 12:18:11 -06:00
retrooper
1b295dc827
Merge pull request #486 from vytskalt/2.0
...
Safely limit team display name, prefix and suffix to appropriate lengths
2023-01-11 19:31:42 +01:00
retrooper
a83248f70d
Correctly limit all data in the wrapper differently depending on the protocol version.
2023-01-11 19:29:28 +01:00
retrooper
42a1375c00
Merge pull request #516 from RotMC/2.0
...
Fix NPE caused by attempting to initialize user before channel
2023-01-11 18:32:30 +01:00
Ryan Jones
fbe89306f5
Merge branch 'retrooper:2.0' into 2.0
2023-01-09 11:40:31 -05:00
retrooper
faeb2f55d3
* Update NPC API for 1.19.3
...
* Improve WrapperPlayServerPlayerInfoUpdate & WrapperPlayServerPlayerInfoRemove for easier use
2023-01-08 00:27:58 +01:00
DefineOutside
239cc09c9f
fix headYaw not being sent
2023-01-05 16:41:28 -06:00
retrooper
6aac1faac4
Merge pull request #517 from iTzLucky28/2.0
...
Add Itemstack to WrapperPlayClientPlayerBlockPlacement constructor and replace Optional by regular objects
2023-01-03 22:54:20 +01:00
iTz_Lucky
ea4ab05bff
Add Itemstack to constructor and replace Optional by regular objects
...
Also less error prone, especially if they send null as Optional instead of Optional containing null
2023-01-02 08:13:29 +01:00
wordandahalf
d53f39bbc7
Fix NPE caused by attempting to initialize user before channel
2023-01-01 16:50:55 -05:00
cheaterSK
8f28b71ee2
Merge branch 'retrooper:2.0' into 2.0
2022-12-31 17:28:36 +01:00
DefineOutside
58df1fcc91
Merge pull request #512 from epserv/2.0
...
Add SITTING pose to EntityPose
2022-12-29 20:39:32 -06:00
l_MrBoom_l
060b919fa3
Add SITTING pose to EntityPose
2022-12-24 23:07:33 +05:00
MWHunter
7d0d4aa672
fix weird spigot 1.8 bug
2022-12-21 16:57:49 -06:00
MWHunter
e3cde54ab2
Simplify encoder/decoder, avoid bytebuf allocations
2022-12-21 16:20:59 -06:00
MWHunter
d681345e41
Fix optional component serializers
2022-12-15 14:54:08 -06:00
MWHunter
3939b534ad
make entity json data lazy
2022-12-15 13:53:57 -06:00
MWHunter
a8afbd2a0b
pool bytebufs
2022-12-15 13:34:41 -06:00
MWHunter
7d7cbb4445
Don't annotate non-sharable encoders/decoders as sharable
2022-12-14 17:54:58 -06:00
MWHunter
1c5dceb47d
Update explosion packet to 1.19.3
2022-12-14 14:59:58 -06:00
MWHunter
876fbf6fbf
Fix creating a new NBT tag which can desync inventory
2022-12-13 14:00:23 -06:00
MWHunter
b469ce2a69
fix compilation
2022-12-13 00:31:14 -06:00
MWHunter
6f7823e8cb
Use pipeline instead of address for tracking connections
2022-12-13 00:21:00 -06:00
MWHunter
2619a4398d
Clean up previous attempts to try to fix race condition
2022-12-12 20:23:27 -06:00
MWHunter
d411fe44fe
Fix race condition due to ProtocolLib wrapping a Channel screwing with our hashmaps
2022-12-12 20:19:07 -06:00
MWHunter
67af517510
Try synchronization to fix weird race condition
2022-12-12 19:41:39 -06:00
MWHunter
cce862bc57
Refactor methods dealing with Bukkit and Users
2022-12-12 18:20:48 -06:00
MWHunter
319750e3f9
Fix tag matches for empty tags
2022-12-12 16:42:20 -06:00
MWHunter
78ccd8b2d5
fix last commit
2022-12-12 14:07:11 -06:00
MWHunter
50ef62f4fb
Fix some reflection methods on some shitty MCM jar
2022-12-12 14:06:42 -06:00
MWHunter
05a5b5284b
More debug
2022-12-12 12:41:48 -06:00
MWHunter
8c6865405d
actually fix bad ordering (not race condition!) of post send tasks
2022-12-11 19:29:14 -06:00
retrooper
a204b5d521
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-12-11 09:10:47 +01:00
retrooper
da0128b330
Fixed user state transitioning to remain in sync with minecraft which should fix a bunch of errors where we do not recognize the packet id or properly read data of a packet, because our connection state is behind. We need to update the state as soon as we get the packet.
2022-12-11 09:10:15 +01:00
MWHunter
84b005a3b0
Handle vanilla now reading a fixed amount of bytes
2022-12-11 00:15:06 -06:00
MWHunter
38fd7eae6d
Fix 1.19.3 chat messages not reading/writing chat type
2022-12-11 00:02:19 -06:00
MWHunter
e3d08fa0de
Try adding partial 1.19.3 chat packet support
2022-12-10 23:49:13 -06:00
retrooper
0da59c3585
Merge pull request #494 from iTzLucky28/2.0
...
Add getter/setter for WrapperPlayClientClickWindow
2022-12-11 00:31:35 +01:00
retrooper
b4145fda44
Remove ClassUtil's unnecessary class simple name caching
2022-12-11 00:29:02 +01:00
retrooper
5df58a116d
Fix race-condition in transitioning to PLAY state.
...
Post-tasks now run right after all listeners have processed the packet.
Tasks-after-send (only for outgoing packets) run after a packet has been sent
There's a difference so please make sure you're using the right one.
2022-12-10 21:21:22 +01:00
retrooper
7899d8cb46
Fix NBTCodec#nbtToJson
2022-12-10 21:03:51 +01:00
MWHunter
b47e0f20ef
More gracefully handle unknown block types
2022-12-09 18:16:28 -06:00
MWHunter
63a7121653
Update some mappings to 1.19.3 (Not everything is complete!)
2022-12-09 18:03:15 -06:00
MWHunter
7927c89ba2
Create a new bytebuf due to weird 1.8 bytebuf behavior
2022-12-09 15:10:08 -06:00
MWHunter
db5c97a324
Protect against empty bytebuffers, remove large amount of decoder code
2022-12-09 00:35:44 -06:00
MWHunter
d4b919430f
Ignore via API if it returns -1 as player version
2022-12-08 19:16:39 -06:00
MWHunter
d52df749fa
Prevent bots scraping the internet from causing PE 2.0 error
2022-12-08 16:54:59 -06:00
MWHunter
63eac8f0f6
Prevent failed injection with multiple PacketEvents 2.0 plugins
2022-12-08 16:21:17 -06:00
cheaterSK
0d7a618d87
Merge branch 'retrooper:2.0' into 2.0
2022-12-08 22:38:15 +01:00
retrooper
7a8d440475
* Added WrapperPlayServerPlayerInfoUpdate (for minecraft 1.19.3+ versions)
...
* Minor optimization to WrapperPlayServerPlayerInfo (minecraft 1.19.2 and older can use this wrapper)
2022-12-08 19:27:41 +01:00
retrooper
89b63802ac
Add WrapperPlayClientChatSessionUpdate
2022-12-08 18:24:27 +01:00
retrooper
17e8b51205
Add WrapperPlayServerUpdateEnabledFeatures
2022-12-08 17:11:51 +01:00
retrooper
8bb12b6913
Add WrapperPlayServerPlayerInfoRemove
2022-12-08 17:07:18 +01:00
retrooper
8a194d1ff6
Add WrapperPlayServerDisguisedChat (1.19.3 packet)
2022-12-08 17:01:31 +01:00
retrooper
45bc1e3d80
Map global 1.19.3 packet types
2022-12-08 16:54:10 +01:00
retrooper
a812e22312
Map 1.19.3 packet types
2022-12-08 16:37:20 +01:00
DefineOutside
b7c9015b39
Merge pull request #496 from ytnoos/2.0
...
Fix ViaVersion version check
2022-12-08 09:06:08 -06:00
Ytnoos
98c7c0d49c
Fix ViaVersion version check
2022-12-08 11:35:56 +01:00
MWHunter
dc10e3cca6
Support ViaBackwards on Paper servers
2022-12-07 17:01:48 -06:00
retrooper
54ae21fd5d
Set autoProtocolTranslation to true
2022-12-07 23:45:21 +01:00
retrooper
5d851e849a
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-12-07 23:44:42 +01:00
retrooper
09ef7c2e80
Fix server-version detection issues & compression handling
2022-12-07 23:44:14 +01:00
MWHunter
e8d7fc30a5
Don't try auto translating spigot protocol
2022-12-07 16:06:25 -06:00
MWHunter
5fbb6d7349
Refactor post tasks
2022-12-07 14:59:41 -06:00
MWHunter
28b67601c1
Fix concurrent modification exception
2022-12-07 14:47:26 -06:00
MWHunter
ba02780727
Fix receive packet methods
2022-12-07 14:16:32 -06:00
MWHunter
2c756925a1
Injector rewrite for ViaVersion 4.5.0
2022-12-07 13:56:21 -06:00
iTz_Lucky
ac37b708c0
Update WrapperPlayClientClickWindow
...
Getter and Setter for actionNumber in WrapperPlayClientClickWindow
2022-12-03 04:03:25 +01:00
retrooper
6b92403dea
Optimize ProtocolSupportUtil
2022-12-01 20:05:21 +01:00
cheaterSK
f63da3d3d2
Fix Teams packet gamemode sometimes resulting in -1
2022-11-26 11:41:30 +01:00
cheaterSK
de763c948c
Fix legacy component parser
2022-11-26 10:52:55 +01:00
cheaterSK
4469b93ed9
feat: Add option in settings to disable color downsampling
2022-11-26 10:19:36 +01:00
DefineOutside
873c09d224
Merge pull request #474 from caoli5288/patch/user-dimension
...
Use User.dimension to improve ChunkReader_v1_9
2022-11-16 12:20:08 -06:00
DefineOutside
646b0a1050
Merge pull request #488 from AoElite/2.0
...
Allow NPC gamemode to be changable
2022-11-16 12:19:38 -06:00
AoElite
470975ca77
add method to update gamemode
2022-11-15 22:24:28 -05:00
AoElite
2005daa11f
allow the gamemode of the npc to be changeable
2022-11-15 22:17:30 -05:00
VytskaLT
e28f4e3993
Limit team display name, prefix and suffix to 16 characters
2022-11-06 18:11:19 +02:00
MWHunter
7509ecb971
Fix legacy blocks mappings
2022-10-27 15:03:17 -05: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
wordandahalf
5243d9f17d
Initialize attributes in constructors
2022-10-06 17:43:31 -04:00
wordandahalf
bd91ef1be1
Ensure dimension's attributes is initialized to a non-null value
2022-10-06 16:39:49 -04: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
leegod
af105f4add
Fixed WrapperPlayServerTeams send incorrect color post 1.17
2022-10-05 11:22:37 +08: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
Souvlakis
3a93098804
Forcibly close unhandled connections
...
* Forcibly close unhandled connections
2022-09-29 15:01:56 +02:00
Julian
0b404d04cd
Added all combat wrapper classes ( #379 )
...
* feat: added WrapperPlayServerEndCombatEvent, WrapperPlayServerEnterCombatEvent, WrapperPlayServerDeathCombatEvent, WrapperPlayServerCombatEvent
Co-authored-by: retrooper <retrooperdev@gmail.com >
2022-09-11 22:04:43 +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
Souvlakis
0bcf58cf80
Added the ability to set a custom resourceProvider, which is used to retrieve files such as block mappings. ( #477 )
2022-09-11 19:02:13 +02:00
caoli5288
f9390aa69d
fix #472
2022-08-26 20:27:26 +08:00
caoli5288
3f6bb1a03d
Merge remote-tracking branch 'upstream/2.0' into patch/user-dimension
2022-08-26 20:26:23 +08:00
caoli5288
67eaa91252
Fix 1.12.2 chunk issues
...
* fix #472
2022-08-26 10:36:16 +02:00
caoli5288
911dffccc2
fix #472
2022-08-24 13:51:54 +08:00
caoli5288
3368b7fcc5
fix #472
2022-08-24 13:33:34 +08:00
Abhigya
1ad7cae303
Added WrapperPlayServerBlockEntityData, Dimension conversion fixes, Particle data fixes, EntityDataTypes fix
...
* Added WrapperPlayServerBlockEntityData and Dimension conversion
* Fixed serialization for Scoreboard Objective
* Updated Particle data system
* Updated EntityDataTypes for Particle and GlobalPos
Co-authored-by: retrooper
2022-08-23 18:36:57 +02:00
hinoobers
b7d04384fb
Fix for JSON -> NBT
...
Handle LazilyParsedNumber
2022-08-23 18:16:06 +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
MWHunter
03b68a7f6f
Fix 1.7 BlockFace exception
2022-08-07 17:36:17 -05:00
MWHunter
dc614c96c3
Partially revert eae3d091f8
2022-08-07 16:16:10 -05:00
MWHunter
f77f705942
Refactor ServerVersion
2022-08-06 18:13:26 -05: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
DefineOutside
ebea88f60f
Update entity_data_type_mappings.json
2022-08-03 09:51:23 -05: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
Julian and retrooper
c052ecf8c0
1.19.1 Update ( #448 )
...
* feat: updated ClientVersion and ServerVersion
* feat updated WrapperPlayServerSystemChatMessage
* feat: WrapperLoginClientLoginStart
* feat: use our new methods
* WrapperPlayServerSystemChatMessage completed & fixed.
ClientVersion fixed HIGHER_THAN_SUPPORTED_VERSIONS field.
* change: fixed code-style
* fix: fixed `overlay` getter as it doesn't match its default getter
* * Updated ChatType as some constants were removed on 1.19.1
* Updated ChatMessage and SystemChatMessage again
* Updated User#sendMessage to work on 1.19.1
* feat: updated ChatType to 1.19.1-pre3
-> `MSG_COMMAND` got replaced by `MSG_COMMAND_INCOMING` and `MSG_COMMAND_OUTGOING`
feat: added `CUSTOM_CHAT_COMPLETIONS` enum to new `ClientboundPacketType_1_19_1` class
feat: added WrapperPlayClientCustomChatCompletions & ChatCompletionAction classes
* feat: added `DELETE_CHAT` and `PLAYER_CHAT_HEADER` enums to `ClientboundPacketType_1_19_1` class
feat: added WrapperPlayClientDeleteChat & WrapperPlayClientPlayerChatHeader classes
change:
remove: removed unused import in WrapperPlayServerChatMessage
* change: change String[] to List<>
* remove: removed @Experimental annotation from readList and writeList method
change: renamed readVarIntList to readList and writeVarIntList to writeList
change: used our readList and writeList methods in WrapperPlayClientCustomChatCompletions
* feat: use our Writer and Reader functions instead of plain generic types
* Removed blanked line
* Update ChatType.java
* feat: improved readMap (especially for modern versions currently)
* Add ClientVersion.V_1_19_1 as a version map to allow it to use 1.19.1 clientbound packet mappings
* change: changed some naming stuff
* Fixed WrapperLoginClientLoginStart's SignatureData encoding.
* Fixed DeleteChat wrapper and mappings.
* Fixed WrapperPlayServerPlayerChatHeader for 1.19.1
* Fix WrapperPlayServerCustomChatCompletions
* Update api/src/main/java/com/github/retrooper/packetevents/protocol/packettype/PacketType.java
* feat: added `$readSignatureData` and `$writeSignatureData`
* fix: fix `$writeOptional` usage
* feat: first pre-5 update
* feat: some more progress
* feat: even more progress (might break some wrappers ATM)
* fix: fixed errors
* feat: pre-5 changes for ChatType
* change: changed `query` to `queryId`
* feat: *optimized* ChatType handling for modern versions (HashMap)
* * Removed write methods in LastSeenMessages and its inner classes.
* PacketWrapper#readLastSeenMessages and PacketWrapper#writeLastSeenMessages created.
WrapperPlayClientChatAck & WrapperPlayClientChatCommand & WrapperPlayClientChatMessage now use last seen messages.
Removed LastSeenMessagesTracker & LastSeenMessagesValidator, I don't see the need for it and we don't use it anywhere. Maybe later we might implement it ourself with inspiration from mojang but not just copy paste.
* remove: removed useless whitespace
* feat: improved docs in WrapperPlayServerChatMessage for `$getChatContent` and `$setChatContent`
* feat: added `EQUALS` to MultiVersion enum
affected classes due to import changes:
- PacketWrapper, ServerVersion, WrapperPlayWorldBorderWarningDelay
* change: changed copy order in WrapperPlayServerSystemChatMessage, it's not big of a deal, just looks cleaner this way
* feat: added rc-2 change; `boolean enforceSecureChat` has been added to WrapperPlayServerServerData
feat: created constructor for legacy versions in WrapperPlayServerServerData
* feat: added missing copyright text to WrapperPlayServerServerData
* feat: rc-2 -> added missing `enforceSecureChat` field to WrapperStatusServerResponse - thanks @derklaro
* remove: reverted WrapperStatusServerResponse as it just got added into the JSON message and not as a separate parameter
* feat: added pre6 change; the `chatContent` itself got changed from Component to a plain String, though we still provide the Component usage and just migrate it automatically to a String depends on the server version
* remove: removed TODO comment from WrapperPlayClientChatCommand and fixed `@Nullable` usage
* fix: fixed `@Nullable` usage in WrapperPlayClientChatMessage
* fix: fixed raw generic usage
* feat: added ClientVersion$is(MultiVersion version, ClientVersion target)
* fix: fixed JavaDocs for ServerVersion$is and ClientVersion$is
* feat: fixed code-style in ServerVersion
* feat: added missing DARKNESS PotionType
* feat: added missing EARTH, WIND, WATER and FIRE enums in PaintingType class
feat: added width and height values to PaintingType class
* feat: DARKNESS PotionType should use id 33 and not 32
* feat: renamed `MultiVersion` to `VersionComparison` as it's easier to understand this way
* feat: added missing JavaDoc to `setPreviousSignature` in `WrapperPlayServerPlayerChatHeader`
* WrapperPlayServerChatMessage had a lot of changes in 1.19.1 that we missed. Considering another way as it won't be too easy to abstract this all. Considering a similar approach to our chunk readers.
* To summarize this push, we rewrote the outgoing chat wrapper.
PacketWrapper appropriately named methods that have to do with readLastSeenMessages and added the true readLastSeenMessages;
WrapperPlayServerChatMessage had many changes in 1.19.1 so we decided to go with a different approach of implementing it and decided to go with a recode.
We have chat processors (readers & writers) which implement readers and writers for various versions. We have a chatmessage class which contains fields available on every single version and has subclasses which contain fields for their own version. Cast the chat message to get fields for specific versions. (Kinda like how BaseChunks are implemented)
* getMotd() -> getMOTD(), its sort of a convention to capitalize abbreviations here. Same we do for getUUID() and other stuff.
Also why not make the motd getter nullable, atleast as a response to the issue that complained about optionals?
* Little comment added to chat message, just to remind myself if I look back at it.
* Comment added to PaintingType to change it to a registry in the future.
* feat: cleaned up ChatMessage and its classes + ChatMessageProcessor and its implemented classes
* feat: added `getType` and `setType` and just removed the `@Deprecated` annotation
* Added missing FilterMask in 1.19.1 chat processor
* Minor additions to FilterMask
Co-authored-by: retrooper <retrooperdev@gmail.com >
2022-07-28 01:35:55 +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
MWHunter
031d190da2
Make shulker boxes exceed full cube
2022-07-24 18:47:53 -05:00
MWHunter
744cb05253
Follow vanilla restrictions on plugin messages
2022-07-22 17:45:21 -05:00
MWHunter
b1b2b10ee5
Try fixing edge case of velocity being off by 1
2022-07-21 18:30:46 -05:00
MWHunter
6efb6aebdf
Set mud brick wall as exceeding cube
2022-07-20 18:25:09 -05:00
MWHunter
a633c2558a
Fix mapping inconsistencies in 1.12
2022-07-20 18:22:14 -05: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
MWHunter
b090424510
Fix explosion packet being off by one in negative coordinates pre-1.14
2022-07-11 21:33:05 -05:00
MWHunter
3fd2b883de
Fix ItemTypes capitalization
2022-07-10 12:54:09 -05: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
MWHunter
31157da8bb
Add hashcode functions to Vector3
2022-07-05 19:44:56 -05: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
Julian
74f28ad610
feat: improved EquipmentSlot
2022-07-01 11:00:56 +02:00
Julian
085b37b2ed
remove: removed debug
2022-06-30 22:51:12 +02:00
NoJokeFNA
ea273ba4b6
feat: some more cleanup
2022-06-29 13:07:32 +02:00
NoJokeFNA
f3b14030b1
feat: some cleanup
2022-06-28 11:33:04 +02:00
Julian
c565d94d41
Merge branch '2.0' into feat/improvements
2022-06-27 21:58:10 +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
Julian
cd0679c3b2
Merge remote-tracking branch 'origin/feat/improvements' into feat/improvements
2022-06-27 19:18:59 +02:00
Julian
1be60149f9
feat: added missing data
2022-06-27 19:18:52 +02:00
Julian
b48e271ced
Merge branch '2.0' into feat/improvements
2022-06-27 19:15:21 +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
MWHunter
cca73eabe0
Don't do synchronous web requests on join event
2022-06-26 23:14:28 -05:00
MWHunter
db7f8d9cbd
allow plugins to exceed server address max length
2022-06-25 19:14:32 -05:00
Julian
a53ff85a66
change: cleaned up a little more
2022-06-23 19:20:32 +02:00
NoJokeFNA
46a7f39be6
change: improved JavaDocs a bit
2022-06-23 14:24:25 +02:00
NoJokeFNA
89801adc76
fix: fixed compilation errors
2022-06-23 11:06:30 +02:00
Julian
a405880a89
feat: cleaned up WrapperPlayClientEntityAction and WrapperPlayClientInteractEntity
2022-06-23 09:04:56 +02:00
Julian
bd5c4207bc
feat: cleaned up WrapperPlayClientAnimation
2022-06-23 09:02:12 +02:00
Julian
3564bc56e4
fix: fixed WrapperPlayServerParticle on higher server versions
2022-06-22 21:47:54 +02:00
Julian
6f18f867c0
feat: cleaned up and improved wrappers
2022-06-22 18:42:19 +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
MWHunter
f8a920a2cb
Fix compilation
2022-06-21 20:31:12 -05:00
Julian
b497efc0c1
Merge branch '2.0' into feat/improvements
2022-06-21 22:37:12 +02:00
Julian
dfb36a48f9
feat: cleaned up WrapperPlayServerTabComplete
2022-06-21 22:33:34 +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
Julian
f76b2f7c72
Merge branch '2.0' into fix/sound-wrappers
2022-06-21 22:18:20 +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
Julian
16e3861b41
change: changed signedChatContent to chatContent
2022-06-21 21:51:19 +02:00
NoJokeFNA
b57855b6ba
remove: removed $multiOptional as it was useless
2022-06-21 20:19:03 +02:00
MWHunter
6edd19e416
Mark mangrove fences as exceeds full cube
2022-06-20 18:43:16 -05:00
Julian
4ef61c71bf
Merge remote-tracking branch 'origin/feat/recipe-wrappers' into feat/recipe-wrappers
2022-06-19 19:44:41 +02:00
Julian
6a5f0d3e50
change: cleaned up code
2022-06-19 19:44:34 +02:00
Julian
9b20221587
Merge branch '2.0' into feat/recipe-wrappers
2022-06-19 19:36:40 +02:00
NoJokeFNA
70b540e67f
feat: added WrapperPlayClientUpdateJigsawBlock
2022-06-19 18:24:32 +02:00
Julian
f76b26e5d7
remove: removed OptionalLong usage
2022-06-19 18:04:48 +02:00
DefineOutside
19b6d3c999
Update BlockTags.java
2022-06-18 16:24:05 -05:00
Julian
49955e2dc8
Merge remote-tracking branch 'origin/change/cleanup' into change/cleanup
2022-06-16 18:22:23 +02:00
Julian
cd6a4d0cd2
feat: cleaned up a little more
2022-06-16 18:22:00 +02:00
Julian
4f1cd6c8bc
Merge branch '2.0' into change/cleanup
2022-06-16 14:06:01 +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
MWHunter
bb27307e25
Fix via mappings weirdness for modern block mappings
2022-06-15 21:01:37 -05:00
MWHunter
0ad3baeea4
Add mangrove logs to block tags
2022-06-14 23:22:41 -05:00
MWHunter
635d0f2a7c
comment out debug listener
2022-06-14 23:03:20 -05:00
Julian
5f49f63e8f
feat: refactored all Wrappers
...
feat: recoded WrapperPlayServerScoreboardObjective
feat: added little TODO
2022-06-14 03:34:10 +02:00
Julian
45dd54dfb3
change: changed read-/writeEffect to read-/writeOptionalEffect
2022-06-14 03:23:49 +02:00
Julian
bcf35813d8
fixed: fixed WrapperPlayServerEntitySoundEffect and WrapperPlayServerSoundEffect
2022-06-12 04:18:14 +02:00
DefineOutside
327b514216
Merge pull request #431 from NoJokeFNA/feat/new-wrappers
...
[1.19] Added new Chat Preview-/, Server Data-/ and Chat Command Wrappers
2022-06-11 18:24:57 -05:00
Julian
96f67109fe
feat: added new Chat Preview-/, Server Data-/ and Chat Command Wrappers
...
feat: added `$readOptional(S value, Consumer<S> writeValue)` and `$writeOptional(S value, Consumer<S> writeValue)`
2022-06-12 01:19:15 +02:00
terrarier2111
50d42f9fc9
Merge pull request #387 from NoJokeFNA/feat/spawn-weather-entity
...
Added WrapperPlayServerSpawnWeatherEntity
2022-06-11 23:37:45 +02:00
NoJokeFNA
e248a47a1f
feat: added WrapperPlayServerSpawnWeatherEntity
...
feat: added WrapperPlayServerSpawnWeatherEntity
2022-06-11 23:36:18 +02:00
MWHunter
5d3e4bd0f8
Refactor dimension code
2022-06-11 16:14:43 -05:00
MWHunter
3b3f0a84be
Track world height because it is required for world reader
2022-06-11 15:24:26 -05:00
Julian
9b55e982b3
change: improved readability
2022-06-11 21:42:11 +02:00
MWHunter
712f1013f4
mangrove doors are not stairs
2022-06-11 14:41:56 -05:00
Julian
eb4bab70d1
fix: fixed WrapperPlayClientSetBeaconEffect for 1.19
2022-06-11 20:38:46 +02:00
MWHunter
d970c4e020
Fix error writing bytes
2022-06-11 12:07:38 -05:00
MWHunter
825157f998
Fix 1.19 entity effect and player info packet
2022-06-11 11:49:04 -05:00
MWHunter
c41f1797e8
join game readability improvements
2022-06-10 20:38:06 -05:00
MWHunter
f871e71823
Fix respawn packet
2022-06-10 20:36:08 -05:00
MWHunter
a270b515d2
Fix player digging packet on 1.19
2022-06-10 19:38:05 -05:00
MWHunter
b90920e63a
Fix 1.13 entity metadata mappings
2022-06-10 19:22:50 -05: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
MWHunter
1c661f0a5d
Merge remote-tracking branch 'origin/dev/1.19' into 2.0
2022-06-10 00:40:14 -05:00
MWHunter
9db70222c0
Merge branch 'dev/1.19' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerJoinGame.java
2022-06-10 00:14:39 -05:00
MWHunter
42b16f1fbd
Don't write empty buffers
2022-06-09 21:33:30 -05:00
MWHunter
34d4fac6e8
actually fix 1.19 item type mappings
2022-06-09 20:39:42 -05:00
MWHunter
f63a290d34
minor optimization
2022-06-09 20:38:34 -05:00
MWHunter
68867c135d
Fix item types for 1.19
2022-06-09 20:09:58 -05: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
MWHunter
0095487773
Fix swapped blocking and solid on 1.19 blocks
2022-06-08 22:11:54 -05:00
MWHunter
7d2e67b95d
Fix 1.19 entity type mappings
2022-06-08 22:00:54 -05:00
MWHunter
b0db7045f4
Data is a varint in 1.19
2022-06-08 21:47:10 -05:00
MWHunter
bfdab3a518
1.19 spawn entity packet support
2022-06-08 21:10:18 -05:00
MWHunter
fc49c374bf
1.19 join game packet support
2022-06-08 20:58:58 -05:00
MWHunter
4b776ca7bf
Register 1.19 entity data types
2022-06-08 20:38:41 -05:00
MWHunter
0f58efa3cc
Support for 1.19 block data type values
2022-06-08 20:37:21 -05:00
MWHunter
0d3a8e5410
1.19 entity data types
2022-06-08 19:53:54 -05:00
MWHunter
c6d3d72ce9
Add missing MANGROVE_STAIRS state
2022-06-08 19:39:26 -05:00
MWHunter
fc651c65ad
Add support for sequences in existing wrappers, add WrapperPlayServerAcknowledgeBlockChanges
2022-06-08 19:12:51 -05:00
MWHunter
9b86427884
1.19 SpigotReflectionUtil support
2022-06-08 19:03:29 -05: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
MWHunter
dbab8591bf
Add bloom to block data types
2022-06-07 21:52:32 -05:00
MWHunter
065649d1df
Try fixing trying to log in
2022-06-07 21:49:31 -05:00
MWHunter
2d2e0cdfeb
Add swift sneak enchantment
2022-06-07 21:46:33 -05:00
MWHunter
c3e8f307b7
Fix 1.19 block mappings
2022-06-07 21:33:15 -05:00
MWHunter
e03f1ef713
Update BlockTags and add a few missing StateTypes
2022-06-07 21:10:31 -05:00
MWHunter
eb4f73b582
ItemTypes and StateTypes variables and data
2022-06-07 20:48:53 -05:00
MWHunter
1609d1c2b0
1.19 entity types mappings
2022-06-07 19:53:45 -05:00
MWHunter
3480620eca
1.19 particle type mappings
2022-06-07 19:42:05 -05:00
MWHunter
e694af304e
Fix enchantment type mappings on 1.19
2022-06-07 19:33:39 -05:00
MWHunter
581c04e66e
1.19 enchantment types
2022-06-07 19:30:51 -05:00
MWHunter
2e737288ef
1.19 wrapped block state
2022-06-07 19:27:55 -05: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
retrooper
d619546735
Reverting the rename of WrapperPlayServerChatMessage. Fixes for some packet type mappings. CHAT_MESSAGE changed and SYSTEM_MESSAGE is a new packet.
2022-06-07 23:09:08 +02:00
retrooper
b78b449895
1.19 packet id mappings fixed/complete and now used.
2022-06-07 22:59:41 +02:00
retrooper
f53198aec5
Remove duplicate license notice.
2022-06-07 22:46:44 +02:00
retrooper
fa1728210a
Correct packet ids mappings.
2022-06-07 22:44:27 +02:00
retrooper
90674cefc4
Ordinary CHAT_MESSAGE -> SYSTEM_CHAT_MESSAGE. Please use that if you want the ordinary messages that don't have any cryptography. On new versions those are the system message only but they still have no cryptography.
2022-06-07 19:01:48 +02:00
retrooper
24d4a21007
Working on 1.19 support, need to work on wrappers.
2022-06-07 18:30:42 +02:00
retrooper
b4ad4e831d
Minor changes.
2022-06-06 11:49:55 +02:00
retrooper
886d872241
Some cleanup in ProtocolManager
2022-06-06 11:44:46 +02:00
retrooper
0ef01b868e
Allow packet wrappers to truly be reused.
2022-06-06 11:36:24 +02:00
retrooper
46f89771a5
Remove unnecessary async send/receive methods in our API.
2022-06-06 11:34:09 +02:00
MWHunter
055f473964
expose getEnchantmentsTagName
2022-06-05 19:26:30 -05:00
MWHunter
f3850dab24
Fix incomplete client settings copy method
2022-06-05 11:23:10 -05:00
MWHunter
86870c40a5
Fix 1.8 chunk reader exception
2022-06-05 10:58:40 -05:00
MWHunter
dbc33f9fe4
Fix leak with multiple packetevents 2.0 instances
2022-06-05 10:47:52 -05:00
threadexception
1f95fda03c
Cleanup many enums
2022-06-04 11:18:06 +02:00
MWHunter
1724f54b12
Fix https://github.com/retrooper/packetevents/issues/416
2022-06-03 11:43:55 -05:00
threadexception
4b0132ed90
Rewrite SkinSection
2022-06-02 18:19:42 +02:00
retrooper
d219faafd0
Enforce ProtocolSupport 1.18.1-1 or newer.
2022-06-01 21:25:24 +02:00
retrooper
6d19f60049
Add little comment.
2022-06-01 20:38:23 +02:00
retrooper
a8f1b23769
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-06-01 20:33:53 +02:00
retrooper
89cb93be67
Remove paper injector. (Not needed anymore)
...
Injector changes depending on netty version instead of server version.
2022-06-01 20:33:31 +02:00
MWHunter
bfe9aba3a8
PacketEncoder/Decoder -> PacketEventsEncoder/Decoder
2022-05-31 15:52:13 -05:00
MWHunter
5265ddd27c
Remove duplicate Vector3i code
2022-05-31 15:46:39 -05:00
retrooper
5e118f5e17
Remove debugs?
2022-05-31 21:36:19 +02:00
Julian
a522e8262a
Fixed code-style
2022-05-31 21:30:54 +02:00
retrooper
028bfd8ada
Merge pull request #400 from NoJokeFNA/fix/code-style
...
Fixed code-style
2022-05-31 21:16:50 +02:00
NoJokeFNA
d1ba1b8831
remove: removed @Nullable from UUID as it can't be null any longer
2022-05-31 09:18:52 +02:00
NoJokeFNA
2a7c79235d
feat: applied retrooper changes
2022-05-31 09:14:47 +02:00
MWHunter
ebaf94a5ec
expose internal fields in DataPalette
2022-05-30 18:08:44 -05:00
retrooper
5c9b930737
Merge pull request #368 from NoJokeFNA/feat/spawn-experience-orb-wrapper
...
Added WrapperPlayServerSpawnExperienceOrb
2022-05-29 14:10:05 +02:00
retrooper
9483582479
Merge pull request #360 from NoJokeFNA/feat/set-displayed-recipe-wrapper
...
Added WrapperPlayClientSetDisplayedRecipe
2022-05-29 14:08:01 +02:00
retrooper
cd7b23a537
Merge pull request #392 from NoJokeFNA/feat/update-entity-nbt
...
Added WrapperPlayServerUpdateEntityNBT
2022-05-29 14:04:39 +02:00
retrooper
97609976e4
Update README.md
2022-05-29 13:51:03 +02:00
retrooper
4262f1f9cd
More changes to README.
2022-05-29 13:45:18 +02:00
retrooper
eb6237d913
Minor changes to README.
2022-05-29 13:35:12 +02:00
retrooper
fcf2edefe8
Merge pull request #409 from AbhigyaKrishna/2.0
...
Adventure legacy serialization patches
2022-05-29 13:18:20 +02:00
Abhigya
a7a9ef52f0
Adventure Legacy serialization patches
2022-05-29 14:47:23 +05:30
retrooper
d8ad50fcf8
Progress on bungee support.
2022-05-26 14:42:12 +02:00
retrooper
3a974ab51f
Merge pull request #372 from NoJokeFNA/feat/entity-sound-effect-wrapper
...
Added WrapperPlayServerEntitySoundEffect
2022-05-26 11:12:33 +02:00
retrooper
9834830bda
Remove redundant bytebuf import.
2022-05-25 22:18:26 +02:00
retrooper
e673558179
ByteBufHelper.capacity methods added. So people using netty directly just for that can use our api.
2022-05-25 22:16:01 +02:00
retrooper
bd17353576
Merge pull request #401 from NoJokeFNA/feat/select-advancement-tab-wrapper
...
Added WrapperPlayServerSelectAdvancementTab
2022-05-24 21:40:42 +02:00
NoJokeFNA
4f0403d315
remove: removed hasId getter and setter
2022-05-24 19:15:06 +02:00
MWHunter
0232e7b212
Automatically replace minecraft: in getByString
2022-05-24 10:36:15 -05:00
retrooper
68655dd92b
Merge pull request #385 from NoJokeFNA/feat/set-compression-wrapper
...
Added WrapperPlayServerSetCompression
2022-05-24 17:33:25 +02:00
retrooper
28ffd08fbd
Merge pull request #369 from NoJokeFNA/feat/update-view-position-wrapper
...
Added WrapperPlayServerUpdateViewPosition
2022-05-24 17:31:09 +02:00
MWHunter
4b92eb7912
init internal bukkit listener
2022-05-22 22:54:29 -05:00
MWHunter
6f76822785
InternalBukkitListener
2022-05-22 22:54:11 -05:00
MWHunter
165bc85dfa
Revert "Fix memory leak"
...
This reverts commit fdcb42caf2 .
2022-05-22 22:25:46 -05:00
MWHunter
fdcb42caf2
Fix memory leak
2022-05-22 22:09:53 -05:00
NoJokeFNA
7d5fcb22a8
change: changed String to ResourceLocation (identifier)
2022-05-22 14:41:25 +02:00
NoJokeFNA
c2beac9bfa
remove: removed useless version check as it got introduced in 1.14
2022-05-22 14:40:20 +02:00
MWHunter
49344d0f3c
Revert "Make PacketEvents 2.0 see its own existing decoder"
...
This reverts commit 18b6ddca70 .
2022-05-22 05:37:08 -05:00
MWHunter
18b6ddca70
Make PacketEvents 2.0 see its own existing decoder
2022-05-21 20:21:25 -05:00
MWHunter
e901b5dd64
Fix 1.8 chunk reader
2022-05-21 19:49:55 -05:00
MWHunter
bf11a02d44
Remove unnecessary code dealing with removing players
2022-05-21 19:19:06 -05:00
MWHunter
15f0295142
Revert 5bf2daa7
2022-05-21 19:13:43 -05:00
MWHunter
5c665053d2
100 MB -> 1 MB idle memory usage in WrappedBlockState
2022-05-21 18:56:07 -05:00
MWHunter
cddf378b51
Unload file mappings when done initializing classes
2022-05-21 17:14:47 -05:00
DefineOutside
96bfb98c87
Merge pull request #389 from NoJokeFNA/feat/nbt-query-response-wrapper
...
Added WrapperPlayServerNBTQueryResponse
2022-05-21 16:35:52 -05:00
DefineOutside
d0f85d69ab
Merge pull request #363 from NoJokeFNA/feat/update-command-block-wrapper
...
Added WrapperPlayClientUpdateCommandBlock and WrapperPlayClientUpdateCommandBlockMinecart
2022-05-21 16:29:53 -05:00
MWHunter
3374827e66
Fix createUniversalPacketWrapper
2022-05-21 16:08:37 -05:00
MWHunter
96d8fc6d21
Fix rare race condition memory leak
2022-05-21 12:39:40 -05:00
MWHunter
1fd19db0f2
289 KB jar reduction
2022-05-21 10:43:20 -05:00
MWHunter
2ef717cd72
Unflip logic in PlayerManager
2022-05-20 23:10:26 -05:00
MWHunter
1868cee073
Fix memory leak with storing channels
2022-05-20 23:04:29 -05:00
MWHunter
351742e88e
Clean up PlayerManagerImpl, fix memory leak
2022-05-20 22:55:06 -05:00
MWHunter
bd67caaeb8
Prevent memory leak when sending packet to a closed channel
2022-05-20 22:33:06 -05:00
MWHunter
0f39521750
Prevent sending packets that don't exist in a version
2022-05-20 22:32:32 -05:00
MWHunter
7fde4a379a
Vector3d, f, i utility method to add BlockFace
2022-05-20 22:18:47 -05:00
MWHunter
5cc7e6f2bc
Improve WrapperPlayClientClickWindow naming
2022-05-20 22:06:01 -05:00
MWHunter
f2f4a8d62b
Convert ProtocolManager to using UUID's
2022-05-20 21:50:35 -05:00
MWHunter
16f9eb32c9
Lazily allocate packet wrapper buffers, reusable wrappers
2022-05-20 21:38:15 -05:00
NoJokeFNA
3567b7d735
feat: added WrapperPlayServerSelectAdvancementTab
2022-05-20 17:39:39 +02:00
NoJokeFNA
23a181c33a
fix: code-style... gosh
2022-05-20 14:56:39 +02:00
NoJokeFNA
74b6bfca28
fix: fixed WrapperPlayServerSpawnPainting
2022-05-20 14:55:54 +02:00
NoJokeFNA
ef1074e7ba
fix: fixed PaintingType class
2022-05-20 14:53:37 +02:00
NoJokeFNA
b02d7a3df2
Merge branch '2.0' into fix/code-style
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/protocol/world/PaintingType.java
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerSpawnPainting.java
2022-05-20 14:50:18 +02:00
NoJokeFNA
6c3d6f25ac
fix: code-style
2022-05-20 14:48:32 +02:00
Julian
de4b9887b7
Update WrapperPlayServerUpdateEntityNBT.java
2022-05-20 12:02:53 +02:00
retrooper
b7c9eabf8f
Merge pull request #396 from NoJokeFNA/feat/time-update-wrapper
...
Fixed code-style
2022-05-19 23:00:03 +02:00
NoJokeFNA
ed43c51428
fix: fixed code-style
2022-05-19 19:10:32 +02:00
NoJokeFNA
69bc454cc0
fix: fixed code-style
2022-05-19 19:02:00 +02:00
NoJokeFNA
83b87cf9cb
fix: fixed code-style
2022-05-19 18:59:33 +02:00
MWHunter
0f061764e6
Fix another memory leak
2022-05-19 11:19:26 -05:00
NoJokeFNA
77a6b8152e
fix: fixed code-style
2022-05-19 18:17:39 +02:00
NoJokeFNA
6a5e76512f
fix: fixed code-style
2022-05-19 18:17:06 +02:00
NoJokeFNA
24bad668bd
fix: fixed code-style
2022-05-19 18:11:56 +02:00
MWHunter
a670961b99
Reliably call disconnect event using netty API
2022-05-19 00:14:05 -05:00
retrooper
f3896d3c78
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-05-18 19:45:29 +02:00
retrooper
04e9e57dad
Fixed WrapperPlayServerJoinGame for 1.14.4
2022-05-18 19:45:09 +02:00
MWHunter
2bccff6ae6
Fix player info wrapper
2022-05-15 22:50:53 -05:00
NoJokeFNA
3afa857965
change: correct Optional usage (for now) -> reduce overhead for plain fields
2022-05-15 18:00:05 +02:00
NoJokeFNA
3441da2bd5
change: reformatted code with current code-style
2022-05-15 17:56:23 +02:00
NoJokeFNA
898972d040
change: use MathUtils#floor instead of Math#floor
2022-05-15 17:55:46 +02:00
NoJokeFNA
b0d0f18da2
change: reformatted code with current code-style
2022-05-15 17:54:24 +02:00
NoJokeFNA
1d3a828f55
feat: added WrapperPlayServerUpdateEntityNBT
2022-05-15 16:24:24 +02:00
NoJokeFNA
310bb1ea10
remove: removed $toString as it was only used for debugging
2022-05-15 15:48:09 +02:00
NoJokeFNA
7f8deb280a
feat: added WrapperPlayServerNBTQueryResponse
2022-05-15 15:47:17 +02:00
retrooper
3204527b6f
Paper injector won't be used if ProtocolSupport is on the server.
2022-05-15 13:11:38 +02:00
NoJokeFNA
0354e2b5fc
change: use MathUtils class instead of creating own methods
2022-05-13 20:31:51 +02:00
NoJokeFNA
07dac7c20e
change: code-style
2022-05-13 20:30:07 +02:00
NoJokeFNA
bf09ad27b9
feat: added WrapperPlayServerSetCompression
2022-05-13 20:29:19 +02:00
NoJokeFNA
af3bbb3db8
change: cleaned up WrapperLoginServerSetCompression
2022-05-13 20:29:02 +02:00
retrooper
f520af9250
Few comments.
2022-05-13 17:39:53 +02:00
Julian
df590b7083
Merge branch '2.0' into feat/recipe-wrappers
2022-05-13 17:36:06 +02:00
retrooper
9ec7b8d776
Merge pull request #381 from NoJokeFNA/feat/entity-movement-wrapper
...
Added WrapperPlayServerEntityMovement
2022-05-13 17:34:07 +02:00
retrooper
18580ced5a
Check for updates by default.
2022-05-13 17:32:47 +02:00
retrooper
8dc6b1be29
Add more license notices wherever missing.
2022-05-13 16:36:22 +02:00
retrooper
649839c539
Improve WrapperPlayServerSpawnPainting and bring the type into one form. the old string form is not necessary and complicates the usage of the wrapper.
2022-05-13 16:35:24 +02:00
retrooper
7401b9bbb0
Merge pull request #357 from NoJokeFNA/feat/open-sign-editor-wrapper
...
Added WrapperPlayServerOpenSignEditor
2022-05-12 22:12:10 +02:00
retrooper
068967fd74
Merge pull request #356 from NoJokeFNA/fix/entity-patch
...
Fix SpigotDataHelper#fromBukkitEntityType returning null on modern versions
2022-05-12 22:11:41 +02:00
retrooper
20c07143aa
Merge pull request #366 from NoJokeFNA/feat/camera-wrapper
...
Added WrapperPlayServerCamera
2022-05-12 22:11:16 +02:00
retrooper
fafa6e5191
Merge pull request #367 from NoJokeFNA/feat/spawn-painting-wrapper
...
Added WrapperPlayServerSpawnPainting
2022-05-12 22:10:02 +02:00
retrooper
327a986944
Merge pull request #371 from NoJokeFNA/feat/spawn-position
...
Added WrapperPlayServerSpawnPosition
2022-05-12 22:07:25 +02:00
NoJokeFNA
666cc8f81b
change: hopefully resolve soon merge-conflict
2022-05-12 15:11:46 +02:00
NoJokeFNA
7c81ae2fa4
fix: fixed 1.7.x support
2022-05-12 12:44:45 +02:00
NoJokeFNA
8224019e23
change: code-style
2022-05-12 12:42:01 +02:00
NoJokeFNA
b334d82e76
remove: removed legacy code
2022-05-12 12:24:32 +02:00
NoJokeFNA
e28f416746
fix: fixed 1.7.x support (again)
2022-05-12 12:21:32 +02:00
NoJokeFNA
cd821c3d86
fix: fixed 1.7.x support
2022-05-12 12:19:39 +02:00
NoJokeFNA
42fd096ac3
fix: fixed 1.7.x support
2022-05-12 12:10:46 +02:00
NoJokeFNA
bff4a10355
change: replaced nullabilities with Optionals
2022-05-11 20:57:03 +02:00
NoJokeFNA
bd52a7856d
change: replaced nullabilities with Optionals
2022-05-11 20:54:45 +02:00
NoJokeFNA
01fb89f378
change: changed possible nullabilities to Optionals
2022-05-11 20:40:18 +02:00
NoJokeFNA
4abe76816d
feat: added WrapperPlayServerEntityMovement
2022-05-11 17:06:46 +02:00
NoJokeFNA
e19283e387
remove: removed $toString method as it was only used for debug purposes
2022-05-11 13:42:42 +02:00
NoJokeFNA
03286746a0
remove: removed $toString method as it was only used for debug purposes
2022-05-11 13:42:18 +02:00
NoJokeFNA
e7ce4dddec
feat: added WrapperPlayServerEntitySoundEffect
...
change: improved code by a bit
2022-05-11 02:53:10 +02:00
NoJokeFNA
cd9829bcae
feat: added WrapperPlayServerSpawnPosition
2022-05-11 02:36:50 +02:00
NoJokeFNA
132f8d53a9
remove: removed $toString method as it was only used for debug purposes
2022-05-11 02:05:46 +02:00
NoJokeFNA
abb74ab2cf
feat: added WrapperPlayServerUpdateViewPosition
2022-05-11 02:04:43 +02:00
NoJokeFNA
3d97cd1aa0
feat: added WrapperPlayServerSpawnExperienceOrb
2022-05-11 01:54:27 +02:00
NoJokeFNA
809f712e80
feat: added WrapperPlayServerSpawnPainting, as well as two other classes which might be helpful for the future for other classes
2022-05-11 01:25:12 +02:00
NoJokeFNA
88877c7874
feat: added WrapperPlayServerCamera
2022-05-11 00:44:10 +02:00
DefineOutside
749f17efbe
Merge pull request #362 from NoJokeFNA/fix/missing-constructor-edit-book
...
Missing constructor in WrapperPlayClientEditBook
2022-05-10 17:39:09 -05:00
DefineOutside
3ef1b424b1
Merge pull request #365 from NoJokeFNA/feat/time-update-wrapper
...
Added WrapperPlayServerTimeUpdate
2022-05-10 17:38:40 -05:00
NoJokeFNA
bd0185f825
feat: added WrapperPlayServerTimeUpdate
2022-05-11 00:36:15 +02:00
NoJokeFNA
f86ed401b2
fix: added WrapperPlayClientUpdateCommandBlock and WrapperPlayClientUpdateCommandBlockMinecart
2022-05-10 23:45:55 +02:00
NoJokeFNA
b9d01eb9d8
fix: added missing constructor as it was missing
2022-05-10 22:57:54 +02:00
NoJokeFNA
08a0d108b0
feat: added WrapperPlayClientSetDisplayedRecipe wrapper class
2022-05-10 01:21:52 +02:00
NoJokeFNA
30b3c20c80
feat: added WrapperPlayClientSetRecipeBookState wrapper class
2022-05-10 01:13:16 +02:00
NoJokeFNA
d56885c3f9
feat: added WrapperPlayServerOpenSignEditor wrapper class
2022-05-09 23:47:35 +02:00
NoJokeFNA
822a52b5b8
fix: fixed e.g. SpigotDataHelper.fromBukkitEntityType(EntityType.ZOMBIE) always returning null on modern (1.13.x) server versions
...
Tested Server-Versions: 1.8.8, 1.13, 1.13.2, 1.14, 1.14.4, 1.15.2, 1.18.2
2022-05-09 23:25:48 +02:00
NoJokeFNA
d8eb1d07f2
change: finished changes
2022-05-09 22:38:51 +02:00
NoJokeFNA
34956af6a2
change: removed the listener registration
2022-05-09 22:01:19 +02:00
NoJokeFNA
1f15d0ba20
feat: added WrapperPlayClientCraftRecipeRequest and WrapperPlayServerCraftRecipeResponse wrapper classes
...
With this pull request users can use two new wrappers that work fine - I think there is nothing more to explain.
It was tested with the server versions: 1.8.8, 1.12.2, 1.13, 1.13.2, 1.14.4, 1.15.2, 1.16.5 and 1.18.2
Client-Versions: 1.18.2, 1.16.5, 1.13
2022-05-09 21:54:10 +02:00
MWHunter
c4798df9dc
Fix WrappedBlockState on 1.16.3-1.16.5
2022-05-08 20:47:04 -05:00
retrooper
a1fdc00a01
Remove further debug.
2022-05-08 23:04:37 +02:00
retrooper
d85e7a2b0f
Removed bad compression util (recreating minecraft compression).
...
Removed debugs.
2022-05-08 23:04:00 +02:00
MWHunter
c78727f15f
Heavily optimize WrappedBlockState air
2022-05-08 10:29:45 -05:00
MWHunter
dd1d85e3e4
WrappedBlockState performance improvements
2022-05-08 10:14:49 -05:00
retrooper
e29c907188
Fixed WrapperStatusServerResponse constructor.
2022-05-08 11:45:32 +02:00
retrooper
450aec3191
Add license notice to all wrappers missing it.
2022-05-08 10:40:29 +02:00
MWHunter
c672086b8f
Add getters and setters to the two new wrappers
2022-05-07 11:23:28 -05:00
MWHunter
ae3a3a795d
WrapperPlayClientEditBook
2022-05-07 11:14:02 -05:00
MWHunter
2fa200b347
WrapperPlayServerOpenBook
2022-05-07 11:00:24 -05:00
MWHunter
7d750a42ab
Fix copying over WrapperPlayClientBlockPlacement itemstack
2022-05-05 22:12:35 -05:00
retrooper
f61f93a85d
gramr
2022-04-27 19:50:06 +02:00
retrooper
e0c38b59c1
Little documenting.
2022-04-27 19:19:27 +02:00
retrooper
198034ae67
Fixed post tasks for outgoing packets. They are now executed once the outgoing packet is successfully sent.
2022-04-27 19:17:48 +02:00
MWHunter
10107a14fc
Fix last used wrapper breaking when wrappers are used more than 2 times
2022-04-24 17:27:15 -05:00
retrooper
0e18040bee
Fixed sending packets while ProtocolSupport is present.
2022-04-24 23:19:29 +02:00
retrooper
ab92d8bdd3
Fixed ProtocolSupport support
2022-04-24 23:00:22 +02:00
retrooper
6bf70f5b47
Fixed reloads on modern paper versions.
2022-04-24 22:56:16 +02:00
MWHunter
59dfa9fabb
world border centerY -> centerZ
2022-04-22 20:07:49 -05:00
MWHunter
f4a48d5326
Let world border packet be read
2022-04-22 20:02:41 -05:00
MWHunter
af5f0d9f85
add getDiameter() and setDiameter() to world border size packet
2022-04-22 20:00:45 -05:00
retrooper
ab6fa602cc
Update README.md
2022-04-22 22:24:44 +02:00
retrooper
a15b0c7cc8
Updated licensing logo
2022-04-22 22:24:20 +02:00
MWHunter
86bffa503c
remove debug
2022-04-20 18:15:13 -05:00
MWHunter
511b331735
Play with the injector
2022-04-20 18:03:51 -05:00
MWHunter
78d101dd80
Fix ViaVersionUtil exception
2022-04-20 17:35:23 -05:00
MWHunter
70dc93cd09
Add PacketHandshakeSendEvent to fix null event
2022-04-19 21:44:23 -05:00
MWHunter
fed8b95199
Fix early injection on 1.8, fix ViaVersionUtil returning wrong value
2022-04-19 18:43:51 -05:00
retrooper
e8d8fb5af8
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-04-19 22:56:34 +02:00
retrooper
d98038ecf7
Renamings in AdventureSerializer and PacketWrapper#readComponent works properly again.
2022-04-19 22:54:43 +02:00
MWHunter
5ea3713a22
Revert component change
2022-04-19 15:26:06 -05:00
retrooper
0d4cc8a505
Attempt to bug fix REMOVE_LISTENER_METHOD in paper injector (when cleaning up)
2022-04-19 21:03:59 +02:00
MWHunter
9d0dc9f06d
Fix leash always being true
2022-04-18 13:45:23 -05:00
retrooper
261b89792b
Confirmed that NPC api works on 1.8.
2022-04-18 20:08:26 +02:00
retrooper
089f0b0e18
Improved error message when using 4.8.0 ProtocolLib
2022-04-18 19:45:50 +02:00
retrooper
53e7fbed0e
User#getName & User#getUUID methods, which internally access the profile. It just makes things easier.
2022-04-18 19:34:19 +02:00
retrooper
988d118478
Throw an exception when you try to load PacketEvents with a ProtocolLib version older than 5.0.0
2022-04-18 19:28:05 +02:00
MWHunter
df7be9b51f
Parse adventure, not component.
2022-04-17 22:56:29 -05:00
MWHunter
dead95adad
Fix netherite pickaxe not being considered a pickaxe
2022-04-17 21:30:00 -05:00
MWHunter
d69ad9ef9a
Include mappingsIndex in WrappedBlockState constructor
2022-04-17 20:58:10 -05:00
retrooper
b65bbb03a8
Some more changes.
2022-04-17 22:40:38 +02:00
retrooper
83d3ca01fe
Removed some non-existing pages and shifted some things around.
2022-04-17 22:39:35 +02:00
retrooper
e7732b03f8
Redundant changes
2022-04-17 22:38:04 +02:00
retrooper
b742335ffb
Little PacketWrapper code optimization
2022-04-17 16:12:38 +02:00
retrooper
262a17659b
Merge pull request #331 from AbhigyaKrishna/2.0
...
Title fix for Open Window Packet
2022-04-17 11:24:53 +02:00
DefineOutside
191e24398a
Merge pull request #332 from Jaren8r/2.0
...
Add .with[XYZ] to vectors
2022-04-17 00:29:01 -05:00
Jaren Knodel
ae2a23f0aa
Add .with[XYZ] to vectors
2022-04-16 11:32:08 -04:00
Abhigya
59944eadf4
Title fix for Open Window Packet
2022-04-16 12:36:28 +05:30
retrooper
5208b090dd
Merge pull request #329 from Jaren8r/2.0
...
Make vectors immutable
2022-04-15 17:26:55 +02:00
Jaren Knodel
c14b18d24e
Fix build
2022-04-15 10:52:58 -04:00
Jaren Knodel
01e2e6a19d
Make vectors immutable
2022-04-15 10:45:31 -04:00
retrooper
71ca117931
Completing the vector change
...
Improve vectors (pt. 2)
2022-04-15 14:36:00 +02:00
Jaren Knodel
bee7fef71a
dot
2022-04-15 03:50:57 -04:00
Jaren Knodel
24b8105dcb
crossProduct
2022-04-15 03:44:55 -04:00
retrooper
a01e066dae
Merge pull request #327 from Jaren8r/2.0
...
Multiply function to vectors
2022-04-15 09:43:19 +02:00
Jaren Knodel
e93f94f87c
Add multiple(value) to multiple everything by it
2022-04-15 03:35:43 -04:00
Jaren Knodel
eb052cca32
Make setXYZ return itself to remain consistant with add/subtract/multiply
2022-04-15 03:28:49 -04:00
Jaren Knodel
b4c1b8c954
Add multiply to vectors
2022-04-15 03:17:03 -04:00
MWHunter
5d1b6a7d2a
Cache toClientVersion() and toServerVersion()
2022-04-14 22:02:21 -05:00
MWHunter
12bd685fe7
Rework ItemStack constructor and fix enchantment tags for books
2022-04-14 21:45:54 -05:00
retrooper
3616a18286
Minor change
2022-04-14 23:30:07 +02:00
retrooper
db6b3489de
Merge pull request #319 from Jaren8r/2.0
...
Don't clone on vector add/subtract (Changed usage of vectors)
2022-04-14 21:06:03 +02:00
MWHunter
049f5f4123
Fix enchantments on pre-1.13
2022-04-14 00:05:22 -05:00
MWHunter
b553f29b71
IdentityHashMap -> HashMap
2022-04-13 18:08:08 -05:00
MWHunter
ea6e8ee74e
Remove client version cache temporarily due to a memory leak
2022-04-13 13:32:30 -05:00
MWHunter
6559603147
Server response is Json not component
2022-04-12 16:04:35 -05:00
MWHunter
ab8839c07f
WrapperPlayServerOpenWindow optimization and WrapperStatusServerResponse refactor
2022-04-12 16:01:52 -05:00
MWHunter
2c83f6e5a5
Fix spawn player packet attempt 2
2022-04-11 23:37:33 -05:00
MWHunter
fa4a4a0ca0
Revert previous commit
2022-04-11 23:35:52 -05:00
MWHunter
e9f0e1d7af
Fix WrapperPlayServerSpawnPlayer
2022-04-11 23:26:29 -05:00
Jaren Knodel
c9cf4f8c9b
Don't clone on vector add/subtract
2022-04-11 19:28:12 -04:00
DefineOutside
89e20ef82a
Merge pull request #315 from FairyProject/2.0
...
Fixed WrapperPlayServerScoreboardObjective again
2022-04-11 13:28:45 -05:00
MWHunter
bab579f6f9
Convert item type mappings to be more consistent with other mappings
2022-04-11 12:40:15 -05:00
MWHunter
e26b1dac22
Try fixing writing air itemstacks on 1.13.2+
2022-04-11 12:08:16 -05:00
LeeGod
23d9c77305
Fixed WrapperPlayServerScoreboardObjective again
2022-04-11 19:17:55 +07:00
retrooper
8e49b4b400
Minor change.
2022-04-11 12:15:04 +02:00
retrooper
e434e5df76
Little comment added.
2022-04-08 23:29:48 +02:00
retrooper
f9136dbf42
All 1.7.10 injector/nms code removed.
...
PacketEventsSettings#fallbackVersion removed
Added an injector specific for paper, which should be more efficient on their platform and adds NachoSpigot support.
Some refactoring/renaming in our spigot injector
2022-04-08 23:28:35 +02:00
retrooper
f144f66e88
Merge branch 'version-dynamic' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/protocol/item/ItemStack.java
# api/src/main/java/com/github/retrooper/packetevents/protocol/item/type/ItemTypes.java
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerScoreboardObjective.java
2022-04-07 23:00:53 +02:00
retrooper
58f6cf5411
Cut off 1.7.10 injector. We still support 1.7.10 protocol, just not 1.7.10 server software!!!
...
Attempted reload support again. (Tested on 1.8.8)
PacketSide#getOpposite added
2022-04-07 22:59:38 +02:00
retrooper
d966013b69
On Spigot, we now are behind Via & PS again!
2022-04-07 21:27:49 +02:00
retrooper
8261d95a4b
Fixed incorrect HealthDisplay data in ScoreboardObjective wrapper by @LeeGodSRC
2022-04-07 20:33:45 +02:00
retrooper
0ec7cbdd64
Merge pull request #311 from FairyProject/bugfix/teams
...
Teams packet wrapper team name read/write with 16 max characters
2022-04-07 20:31:31 +02:00
DefineOutside
ab37570e9b
Merge pull request #311 from FairyProject/bugfix/teams
...
Teams packet wrapper team name read/write with 16 max characters
2022-04-07 11:39:48 -05:00
LeeGod
7a61bb6cdc
Teams packet wrapper team name read/write with 16 max characters
2022-04-07 23:08:48 +07:00
DefineOutside
5cf920c78e
Merge pull request #310 from FairyProject/bugfix/objective
...
Fixed incorrect HealthDisplay data in ScoreboardObjective wrapper
2022-04-07 10:45:23 -05:00
LeeGod
f1a5ca14bc
Fixed incorrect HealthDisplay data in ScoreboardObjective wrapper
2022-04-07 20:07:27 +07:00
retrooper
01aef56066
Fixed Empty NBT from being added to ItemStacks leading to a desync. (DefineOutside)
2022-04-06 22:47:05 +02:00
retrooper
a1ca6e68bc
Fix 1.8-1.12 entity type mappings
...
(DefineOutside)
2022-04-06 22:40:28 +02:00
MWHunter
e08e4645b1
Fix 1.8-1.12 entity type mappings
2022-04-03 19:15:21 -05:00
MWHunter
1452b65879
Fix PacketEvents adding NBT to items, causing desync
2022-04-03 18:45:03 -05:00
retrooper
bd2ae75b08
Fixed duplicate UserLoginEvent calls.
2022-04-03 23:28:36 +02:00
retrooper
ed9cd05619
Spigot debug listener unregistered.
2022-04-03 20:43:55 +02:00
retrooper
fdbe47a061
PacketListenerReflect removed;
...
PlayerInjectEvent removed, its replacement is UserLoginEvent
2022-04-03 20:42:18 +02:00
retrooper
a4b326cd44
Velocity hopefully working on all versions.
2022-04-03 20:12:36 +02:00
retrooper
7e2c66a82e
Optimized WrapperLoginServerLoginSuccess and progress on velocity?
2022-04-03 19:52:22 +02:00
retrooper
0913057d0d
Fixed item type mappings on 1.16.2
2022-04-03 18:10:24 +02:00
MWHunter
85cb8a72ca
Fix using 1.16 instead of 1.16.2 item type mappings
2022-04-03 11:00:34 -05:00
retrooper
9d75d537cc
Merge remote-tracking branch 'origin/version-dynamic' into version-dynamic
2022-04-01 21:30:28 +02:00
retrooper
c1a2d05803
Outgoing packets must be in format of server, not client.
2022-04-01 21:30:18 +02:00
retrooper
a0e05bb588
Updated our README
2022-04-01 21:19:20 +02:00
retrooper
d8d3b77d5f
Minor change to README.
2022-04-01 21:14:46 +02:00
retrooper
ab4dce2af3
Trying to make protocol translation optional! On proxies we do not want it.
2022-04-01 21:12:11 +02:00
retrooper
f0588eed10
Made WrappedBlockState and StateTypes more version dynamic. Now packetevents should hopefully be able to operate before via.
2022-04-01 19:52:57 +02:00
retrooper
99d6ee3554
Merge branch '2.0' into version-dynamic
...
# Conflicts:
# spigot/src/main/java/io/github/retrooper/packetevents/injector/latest/connection/ServerConnectionInitializerLatest.java
2022-04-01 17:58:24 +02:00
retrooper
3e00a40918
PlayerManagerImpl in spigot module now reads game profile in players and will pass them into our User class.
...
User#sendTitle with strings added.
2022-04-01 17:45:06 +02:00
retrooper
1d97510869
Little comment added.
2022-03-31 22:54:39 +02:00
retrooper
db3a804d15
NPE for optional in BlockPlacement wrapper fixed;
...
Decoder handler duplication on reloads fixed on 1.8+ servers
2022-03-31 22:44:27 +02:00
retrooper
c83613ab04
Bug fixes for WrapperPlayServerSetTitleText & SetTitleSubtitle HANDLE_JSON should be true by default.
2022-03-28 22:43:59 +02:00
retrooper
42b7bb02c2
Packet type mappings per client version work.
...
We can process incoming packets ahead of via & protocolsupport successfully, ignoring world packets cause of wrappedblockstate.
2022-03-27 00:20:44 +01:00
retrooper
c18739e057
Removed debugs.
2022-03-26 22:34:34 +01:00
retrooper
4ea4bf43e5
PacketType enums are version dynamic. You can get id by version and get the constant by id depending on version. It is beautiful.
2022-03-26 22:32:01 +01:00
retrooper
417571fe8d
Bug fix for PotionTypes#getById
2022-03-25 22:23:46 +01:00
retrooper
24a2527fb2
Lots of progress on getting our mapped abstraction more version dynamic.
2022-03-25 22:22:56 +01:00
retrooper
c8b94ec829
Optimization to PotionTypes. We removed the mappings and hard-code the IDs statically. EntityEffect & RemoveEntityEffect deprecated constructors removed.
2022-03-23 22:26:45 +01:00
retrooper
8dfbda5e35
We now have more meaningful stacktraces. For example when a packet has no content or fail to read a packet id or map a packet id to a packet type constant.
2022-03-23 22:11:16 +01:00
retrooper
a9fb68223a
Our netty handlers now produce exceptions in our wrappers and internal api.
...
WrapperPlayServerMultiBlockChange NPE fixed.
2022-03-23 21:37:14 +01:00
retrooper
9d69afaa81
Updated bug report template.
2022-03-22 23:04:15 +01:00
retrooper
5e1ff9b88a
Minor change to namings.
2022-03-22 21:09:50 +01:00
retrooper
9bb6d9326c
User#sendTitle implemented.
...
Implemented all title wrappers.
2022-03-22 20:46:46 +01:00
retrooper
b00389f19f
Added TimeStampMode setting to allow you to specify details about the timing in our events. You can even disable logging the time if you don't need it.
2022-03-22 19:46:45 +01:00
retrooper
a4eb8cbece
Minor changes.
2022-03-18 22:36:32 +01:00
retrooper
9463a07e9d
PostPlayerInjectEvent removed
...
Replaced with better UserLoginEvent which also contains the User instance along with the Player instance on the platform.
2022-03-18 22:28:14 +01:00
retrooper
763a6c5d78
readOnly in listeners removed.
...
Its now a global setting in PacketEventsSettings#readOnlyListeners
2022-03-18 20:21:58 +01:00
retrooper
b89ad2e128
Making some helpers in our api module so we don't duplicate lots of code in our implementations(modules)
...
Added UserConnectEvent & UserDisconnectEvent
threadSafe in PacketListeners removed.
2022-03-18 18:26:33 +01:00
retrooper
747a1a73c4
User references actually get destroyed when they disconnect.
...
User#getEntityId added.
PacketTransformationUtil memory leaks fixed.
2022-03-16 22:54:21 +01:00
retrooper
ab99da9e7a
Tryna fix some early packet handling.
2022-03-16 20:18:30 +01:00
retrooper
8969742139
Added few comments.
2022-03-16 16:41:41 +01:00
retrooper
c5002778c9
Fixed memory leaks when converting Packetevents itemstack to bukkit and vice versa.
2022-03-16 16:35:42 +01:00
retrooper
97b7e81908
New EntityTypes added.
...
SpigotDataHelper#fromBukkitEntityType tested to work on 1.8.8
2022-03-13 22:35:23 +01:00
retrooper
323d553d5e
Fixed velocity module netty dependency
2022-03-13 19:25:42 +01:00
retrooper
fe13d021c1
Improvement to build.gradle
2022-03-13 19:09:12 +01:00
retrooper
aa11d7e42e
Last minor improvements to ResourcePackSend wrapper.
2022-03-13 18:49:31 +01:00
retrooper
8bca8d1cb5
Code optimization to WrapperPlayServerResourcePackSend. Now accepts a nullable prompt.
2022-03-13 18:43:33 +01:00
retrooper
ca5021d090
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-03-13 18:34:04 +01:00
retrooper
cbd899983e
Cleaned up our build system. Adventure issues fixed.
2022-03-13 18:33:49 +01:00
retrooper
7529499f30
Fixed legacy adventure serializer.
2022-03-13 18:02:49 +01:00
retrooper
b69fe1bdc1
Relocating sections of adventure.
2022-03-13 17:57:40 +01:00
MWHunter
424f18e52b
Support invalid protocol with 1.8 biome data
2022-03-12 20:22:59 -06:00
retrooper
3a53fa88cb
Adventure dependencies are now implementation, not api.
2022-03-13 00:01:20 +01:00
retrooper
a1a2275794
Bump up adventure version.
2022-03-13 00:00:10 +01:00
retrooper
354596bc3d
Cleaned up weird adventure stuff. We now properly relocate it I hope.
2022-03-12 23:54:13 +01:00
DefineOutside
b9b34a4bbe
Merge pull request #284 from amnoah/2.0
...
WrapperPlayServerResourcePackSend
2022-03-12 16:53:33 -06:00
Spiriten
8e8a2a114c
Minor issue fix
2022-03-12 17:17:21 -05:00
Spiriten
b6667f2fb8
Fixed Define's Points
2022-03-12 17:14:40 -05:00
retrooper
ef6a36d5e2
We relocate adventure in Spigot, Velocity & BungeeCord manually.
2022-03-12 22:58:17 +01:00
retrooper
70e385e892
Added "adventure-gson" module.
...
We now relocate adventure.
2022-03-12 19:41:14 +01:00
Spiriten
a74a6b0d0f
WrapperPlayServerResourcePackSend
...
I think I did it correctly, please let me know if anything is wrong.
Basically copied from MCProtocolLib
2022-03-11 23:41:27 -05:00
retrooper
998b950f6f
Renaming of methods in PacketWrapper
...
PacketWrapper#readData() -> read()
PacketWrapper#readData(PacketWrapper) -> copy(PacketWrapper)
PacketWrapper#writeData() -> write()
2022-03-11 23:21:00 +01:00
retrooper
9e54e4f296
Bump adventure api version down.
2022-03-11 23:10:58 +01:00
retrooper
1fb65d2628
Removed redundant .zip extension to builds.
2022-03-11 22:24:30 +01:00
retrooper
a7811cd10f
Little improvement to github actions. Automatically build all modules.
2022-03-11 22:23:59 +01:00
retrooper
9e3c36d48c
Now publish velocity in github actions. Builds are now in .zips cause they are zips
2022-03-11 22:19:14 +01:00
retrooper
57db7d3936
The build names are now normal and not just "spigot" or "bungeecord".
2022-03-11 22:13:52 +01:00
retrooper
98dfccce1a
We want the jars to have proper names. Lets see if jitpack can work with these.
2022-03-11 21:58:45 +01:00
retrooper
2eb0959215
Minor change to build.gradle
2022-03-11 21:41:20 +01:00
retrooper
64f1535ae4
Last cleanup/improvement I swear
2022-03-11 17:02:38 +01:00
retrooper
1665fe9ec0
We don't redeclare shadow plugin in each module.
2022-03-11 16:49:59 +01:00
retrooper
ac054bee35
Further optimizations to build.gradles. Less code repetition, more coming!
2022-03-11 16:29:41 +01:00
retrooper
92c7c64a19
Cleaning up build.gradles to avoid code repetition.
2022-03-11 16:24:56 +01:00
retrooper
16c4c749e9
Hopefully fixed legacy adventure implementation
2022-03-11 16:17:31 +01:00
retrooper
8dddd3c519
Made sure we bumped the adventure version everywhere.
2022-03-10 22:52:33 +01:00
retrooper
f48ba98c22
Our adventure module also bumped up adventure version.
2022-03-10 22:30:55 +01:00
retrooper
9a86f800c7
No debugs
2022-03-10 22:05:04 +01:00
retrooper
3a2e636f1f
Cleanup build.gradle files in modules.
2022-03-10 22:04:44 +01:00
retrooper
d87439cf0a
Optimized/Fixed writePacket implementation on Spigot.
2022-03-10 18:43:10 +01:00
retrooper
0d637e0a2c
Bumped jetbrains annotations version.
2022-03-10 17:56:07 +01:00
retrooper
153b751738
Merge pull request #277 from AbhigyaKrishna/2.0
...
Fix llegacy hover serializer & Update adventure
2022-03-10 17:45:16 +01:00
Abhigya
bb6cc79c80
Adventure version bump and Legacy hover serializer
2022-03-10 17:16:19 +05:30
retrooper
e67bfb55fe
Removed debugs.
2022-03-09 20:57:09 +01:00
retrooper
c0212f937e
Minor fix in WrapperPlayServerUpdateScore
2022-03-09 19:58:48 +01:00
retrooper
e448928194
SpigotDataHelper#fromBukkitItemMaterial probably works now.
2022-03-09 18:24:29 +01:00
retrooper
7c6b6a02a0
Working on converting bukkit material to our data types.
2022-03-09 18:14:23 +01:00
retrooper
79f6903a7d
Cleaned up ViaVersionUtil, removed unused methods.
2022-03-09 16:14:16 +01:00
retrooper
800881fec8
Added WrapperStatusClientRequest wrapper (even though it has no fields)
2022-03-08 21:58:12 +01:00
retrooper
d47bc0ea29
Removed debugs.
2022-03-08 20:36:47 +01:00
retrooper
a9876a0cec
Fixed & cleaned up our injector. Optimizations to our handlers.
2022-03-08 20:33:23 +01:00
retrooper
064ceb6c12
Merge branch '2.0' into protocollib_compat
2022-03-08 20:08:50 +01:00
retrooper
f6bce0d41b
Minor cleanup.
2022-03-08 20:08:11 +01:00
retrooper
31d572a8b6
Fixed update checker.
2022-03-08 20:04:20 +01:00
retrooper
354112c8b3
Again..
2022-03-06 22:10:50 +01:00
retrooper
cc561a6586
Confused, tryna fix jitpack stuff
2022-03-06 22:07:43 +01:00
retrooper
8cbb30711f
Trying to fix jitpack?
2022-03-06 22:01:01 +01:00
retrooper
ed1d88b1c8
More progress on velocity injector. We just need to support the compression handlers being added.
2022-03-06 20:19:41 +01:00
retrooper
ed37c60257
Bug fix in ServerConnectionInitializerLatest#destroyChannel when multiple packetevents instances are present.
2022-03-06 14:24:41 +01:00
retrooper
ae2a99a645
We clear our channel cache as soon as the connection closes.
2022-03-06 14:22:18 +01:00
retrooper
88c24308b2
Resolved conflicts.
2022-03-06 14:21:03 +01:00
retrooper
8a86a92504
Merge branch '2.0' into protocollib_compat
...
# Conflicts:
# spigot/src/main/java/io/github/retrooper/packetevents/bukkit/InternalBukkitListener.java
2022-03-06 14:20:17 +01:00
retrooper
7d87114d69
Removed ProtocolManager#clearUserData, but we still are vulnerable to memory leaks in our channel caching. Will be fixed in protocollib_compat branch.
2022-03-06 14:16:41 +01:00
retrooper
4c76588493
Minor changes.
2022-03-06 14:03:18 +01:00
retrooper
3a6778eee7
Fixed PlayerDigging status reading, as it's an unsigned byte, not signed.
...
Fixed WindowConfirmation, OpenHorseWindow, WindowConfirmation window id reading as it's an unsigned byte, not signed.
2022-03-06 13:25:49 +01:00
retrooper
474a2c9e2e
Working on Velocity support.
2022-03-06 12:19:01 +01:00
retrooper
fdf36cfb62
Merge branch '2.0' into protocollib_compat
2022-03-06 11:35:27 +01:00
retrooper
7ee8799b3d
Fixed PostPlayerInjectEvent#getClientVersion
2022-03-06 11:02:41 +01:00
retrooper
8f03460821
Merged "2.0-gradle". Basically cleaning up our gradle stuff.
2022-03-06 10:56:27 +01:00
retrooper
275638339f
Make sure we are ideally the last to intercept connecting clients. Not first.
2022-03-05 23:53:37 +01:00
retrooper
e86e946463
Merge branch '2.0' into protocollib_compat
2022-03-05 23:51:48 +01:00
retrooper
4d77af307c
Merge branch '2.0' into 2.0-gradle
2022-03-05 23:50:39 +01:00
retrooper
ec6f947379
Memory usage of mappings already improved, further improvements coming.
2022-03-05 23:49:58 +01:00
retrooper
5b977bb0b9
Added adventure module which does not ship with gson.
2022-03-05 22:02:39 +01:00
retrooper
535a95b199
Attempt to not automatically shade adventure & gson. Allow platforms such as fabric to not include gson.
2022-03-05 21:06:00 +01:00
retrooper
775ebc5de4
PacketCompressionUtil relocated
2022-03-05 18:20:52 +01:00
retrooper
b756faf83c
Merge branch '2.0' into protocollib_compat
...
# Conflicts:
# spigot/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java
2022-03-05 18:16:08 +01:00
retrooper
269df338e4
Debugs removed.
2022-03-05 18:10:10 +01:00
retrooper
2827bef4b9
1.18.2 bug fixes.
2022-03-05 17:53:17 +01:00
retrooper
3d0e7b86b7
Cleaned up mess with using flying and its sub wrappers. Issues fixed.
2022-03-03 23:26:56 +01:00
retrooper
5c5fb9c8c8
Minor change
2022-03-03 22:47:54 +01:00
retrooper
8ae7b30df8
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-03-03 22:02:25 +01:00
retrooper
52d201ac93
Renames of NPC methods
2022-03-03 22:00:09 +01:00
MWHunter
326b3bfe62
WrapperPlayServerWorldBorder
2022-03-03 14:48:22 -06:00
MWHunter
98d037890e
World border wrappers
2022-03-03 14:40:33 -06:00
retrooper
6146ef6ac3
NPCManager removed.
...
NPC class that can be used independently.
2022-03-03 18:21:15 +01:00
MWHunter
117328caf7
Fix multi block change for pre-1.16 servers
2022-03-01 14:22:13 -06:00
retrooper
06b4607769
Added async methods for sending and receiving and writing packets.
2022-03-01 21:18:09 +01:00
retrooper
6d2ffc59da
Reverting to older version of packetevents where building worked?
2022-03-01 20:47:32 +01:00
retrooper
e91984a2d6
We now relocate the libraries we shade(adventure and gson)
2022-03-01 20:16:05 +01:00
retrooper
9f657bf2ab
We really fixed our gradle stuff, we don't unnecessary shade things when we don't need them. Hopefully can get fabric support working sooner than you'd think.
2022-03-01 19:41:39 +01:00
retrooper
0c9475afaf
Working on allowing optional adventure & gson shading? Hopefully this works?
2022-03-01 18:48:36 +01:00
retrooper
675fa06ba9
Stop publishing "packetevents" module, only the sub modules.
2022-03-01 18:08:14 +01:00
retrooper
65bc4e18b0
Updated to adventure 4.10.0
2022-03-01 06:41:26 +01:00
retrooper
9d4ecfe283
Added 1.18.2 support.
2022-02-28 22:32:33 +01:00
retrooper
b2a664dbd0
WrapperPlayServerEntityHeadLook & WrapperPlayServerEntityRelativeMoveAndRotation & WrapperPlayServerEntityRotation now use floats.
2022-02-27 19:55:09 +01:00
retrooper
e80793c71b
Cleaned up Spigot injector.
...
Forgot to commit PacketEncoderLatest
2022-02-27 17:02:00 +01:00
retrooper
f3f02fbc28
Cleaned up Spigot injector.
...
Refactored spigot util classes.
2022-02-27 17:01:25 +01:00
retrooper
b469fddae5
Pull optimizations from 2.0, this is a branch where we work on cleaning up the injector.
2022-02-27 14:00:18 +01:00
retrooper
550904f64a
Minor change to BungeePipelineInjector
2022-02-27 13:57:22 +01:00
retrooper
6fd8a4c957
Minor optimizations to NetworkChunkData
2022-02-27 10:10:48 +01:00
retrooper
e0f5ab6d6d
Fixed WrapperPlayClientPlayerDigging for 1.8
2022-02-27 09:54:14 +01:00
retrooper
bb8e96da34
User#closeConnection added
2022-02-27 09:27:19 +01:00
retrooper
2a47fa25dd
Writing packets is faster now.
2022-02-27 09:16:14 +01:00
retrooper
3a78329fba
Removed debug.
2022-02-26 22:44:39 +01:00
retrooper
51879a5003
Removed debug.
2022-02-26 22:16:05 +01:00
retrooper
3b9646436f
Reverted back to old encoder system, shoudl work with experimental protocollib builds.
2022-02-26 21:26:39 +01:00
retrooper
0de0042591
Optimizations to utilities
2022-02-25 22:13:10 +01:00
retrooper
4b57de43be
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-25 16:52:54 +01:00
retrooper
f7846f6bc6
Updated to 1.18.2 ahead of time?
2022-02-25 16:51:48 +01:00
MWHunter
cc92d8ab69
Flag byte masks are being read wrong
2022-02-24 21:28:37 -06:00
retrooper
62ac36d436
Added support for thread-safe packet listeners(processing packets when not on netty-threads)
2022-02-24 22:13:59 +01:00
MWHunter
afe5bed6fc
Stop console spam with ProtocolLib + ViaVersion
2022-02-24 13:37:32 -06:00
retrooper
a3c956bf04
I don't think we handle cancelling right yet...
2022-02-23 22:46:43 +01:00
retrooper
17d703bf56
Another attempt to fix viaversion cancelling packets.
...
User#closeInventory added
2022-02-23 21:02:28 +01:00
retrooper
87b58f2ab8
Support ViaVersion cancelling packets.
2022-02-23 20:50:54 +01:00
retrooper
2e660714aa
Fixed buffer memory leak in PacketEncoderModern
2022-02-23 20:17:18 +01:00
retrooper
5d983eebf0
Think we support colors now in User#sendMessage(String)
2022-02-23 19:52:07 +01:00
retrooper
2639c615e8
Fixed cancelling outgoing packets.
2022-02-23 19:45:49 +01:00
retrooper
e92f1c8e16
Only inject real players. NPCs from plugins such as Citizens will not be injected.
2022-02-23 19:18:17 +01:00
retrooper
6bc8274e2d
Removed debugs
2022-02-23 18:48:24 +01:00
retrooper
a26b59a233
Trying to fix possibility of null event!
2022-02-23 18:47:38 +01:00
retrooper
6505738fbf
Minor change.
2022-02-22 22:21:08 +01:00
retrooper
10c11e3c56
Minor change.
2022-02-22 21:19:36 +01:00
retrooper
4aacdf3a37
Fixed error when closing servers without ViaVersion.
2022-02-22 20:30:47 +01:00
retrooper
6a4cbd5c97
Bug fix on closing servers without viaversion.
2022-02-22 19:54:31 +01:00
retrooper
0f907d9f99
Many bug fixes in spigot injector (1.8+)
...
Includes stopping server with ViaVersion, attempted to prevent the possibility of null events)
Client version abstraction cleaned up a bit hopefully and implementation.
2022-02-22 19:49:06 +01:00
retrooper
8409bd7d93
Some more features to ChannelHelper and ByteBufHelper (closing channels, copying byte array of buffer without modifying reader index)
2022-02-21 22:34:35 +01:00
retrooper
6123ae9744
Fixed redundant synchronization
2022-02-21 21:32:55 +01:00
retrooper
74751c77c6
Adding more debugs to our server connection initializer, to help catch issues where handlers don't exist for some reason?
2022-02-21 21:26:48 +01:00
retrooper
bd5a681a2b
Bug fixes in our injector when viaversion is present.
2022-02-21 21:19:10 +01:00
retrooper
c2aa0d15cc
Removed PacketSendEvent#getPromisedTasks as it was redundant.
...
Added User#flushPackets
2022-02-21 21:08:32 +01:00
retrooper
9bcc0bb175
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-21 20:52:13 +01:00
retrooper
dd1c35dfb3
Fixed ProtocolManagerImpl#writePacket on Spigot.
2022-02-21 20:51:29 +01:00
MWHunter
003416e324
Revert gradle upgrade to try to fix jitpack
2022-02-20 16:35:16 -06:00
retrooper
05a44984a3
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-20 22:44:14 +01:00
retrooper
03a5f8ec90
Fixed ProtocolLib & Via combination causing an incompatibility. I really hate to have to do this kind of an injector for spigot, but we have to. We will also wrap the vanilla encoder like Via does, and it seems like ProtocolLib caused this mess.
2022-02-20 22:43:54 +01:00
MWHunter
b632778c62
Make user versions more resilient
2022-02-20 15:38:49 -06:00
MWHunter
0eb4940cd3
Add debugs for setting client version
2022-02-20 14:34:05 -06:00
MWHunter
b964913af0
Bump gradle version
2022-02-19 14:33:17 -06:00
MWHunter
31e12c31ed
Add ability to write packets without flushing
2022-02-19 14:32:21 -06:00
retrooper
e65c125e01
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-18 22:33:35 +01:00
retrooper
f08bd9310d
Working on PLIB compatibility
2022-02-18 22:33:17 +01:00
DefineOutside
7517493b07
Merge pull request #251 from AbhigyaKrishna/2.0
...
Created WrapperPlayServerWindowProperty
2022-02-18 12:15:29 -06:00
Abhigya
898f1d86a9
Fixed constructor to PacketSendEvent
2022-02-18 23:43:34 +05:30
MWHunter
873cd20dba
Add useful methods to Chunk_v1_18
2022-02-18 10:48:33 -06:00
Abhigya
982a984ad4
Create WrapperPlayServerWindowProperty
2022-02-18 17:26:28 +05:30
MWHunter
8ba3ef0d7f
Add method for creating empty chunks
2022-02-17 23:10:41 -06:00
MWHunter
94b8642eec
Add WrapperPlayServerUseBed
2022-02-17 21:15:05 -06:00
retrooper
43ed8bcf49
WrapperHandshakingClientHandshake stackoverflow fixed
2022-02-17 22:49:10 +01:00
retrooper
95a6a8ee1f
No debugs.
2022-02-17 21:39:20 +01:00
retrooper
444eff637b
Nevermind, we were just discarding exceptions which isn't great.
2022-02-17 21:29:53 +01:00
retrooper
d2e230c0cb
Fixed many exceptions in exceptionCaught method in our netty handlers. Including ClosedChannelException
2022-02-17 21:25:03 +01:00
retrooper
195f3326fc
Removed many injector/implementation classes that are no longer needed. File size hopefully gone down by a lot now.
2022-02-17 21:00:41 +01:00
retrooper
fefbddcc92
Massive changes to the way netty methods are declared and implemented.
2022-02-17 20:47:37 +01:00
MWHunter
bb2e9902c9
Legacy doors have no powered variable
2022-02-15 13:34:00 -06:00
MWHunter
555786d906
Add difficulty to correctly be copied for WrapperPlayServerJoinGame
2022-02-15 09:36:38 -06:00
MWHunter
c5926e71ab
Even more block mapping bug fixes
2022-02-14 23:15:31 -06:00
MWHunter
0e0d68e6d2
Activator rail was missing from legacy mappings
2022-02-14 23:09:36 -06:00
MWHunter
cc3658591c
Add warning just in case mappings are wrong
2022-02-14 23:03:47 -06:00
MWHunter
8b9030bda6
Fix some type mappings
2022-02-14 23:00:44 -06:00
MWHunter
fe1a718926
Fix some type mappings
2022-02-14 22:52:25 -06:00
MWHunter
4cbc67683d
Remove EntityTypes equal method
2022-02-14 22:37:40 -06:00
DefineOutside
c308742582
Merge pull request #241 from RohanGoyalDev/2.0
...
Added MerchantRecipeData and WrapperPlayServerOpenWindowMerchant
2022-02-14 21:20:16 -06:00
RGoyalmc
029b568f5c
Changed the name to avoid confusion
2022-02-15 01:14:37 +05:30
RGoyalmc
4bfe3ab62d
Fixes for WrapperPlayServerOpenWindow
2022-02-15 00:58:06 +05:30
RGoyalmc
377e2a9c79
Added MerchantRecipeData and WrapperPlayServerOpenWindowMerchant
2022-02-15 00:57:53 +05:30
MWHunter
f0192b3d4f
pre-1.13 block mappings fixes
2022-02-14 12:19:42 -06:00
retrooper
b7a15692d5
ByteBufAllocationHandler created.
2022-02-14 18:11:41 +01:00
retrooper
cac05219b4
Added a ByteBufHelper which uses the bytebufhandler methods for us.
2022-02-14 17:56:33 +01:00
retrooper
5732f9e15d
Added write buffer methods to ByteBufHandler
2022-02-14 17:36:11 +01:00
retrooper
8378b9265a
Working on reducing memory usage with changing our netty declarations (implemented by each platform)
2022-02-14 17:22:37 +01:00
MWHunter
0ba2121283
1.13-1.16 default block states
2022-02-13 23:06:30 -06:00
retrooper
ec78edcd7a
Forgot to execute build commands for bungee and netty-common in gradle-publish.yml
2022-02-13 19:50:26 +01:00
retrooper
de1b368ae8
Updated github gradle publish file.
2022-02-13 19:46:21 +01:00
retrooper
0bc3ab989b
netty-common publishing fixed. sorry for all the past down-times.
2022-02-13 19:42:09 +01:00
retrooper
b3a23fe9c0
Forgot to publish netty-common.
2022-02-13 19:34:44 +01:00
retrooper
b53c9ac6fd
Bug fixes in netty-common build script.
2022-02-13 16:53:07 +01:00
retrooper
5de39dd131
Update BungeePacketEventsBuilder to see if jitpack updates their caches?
2022-02-13 16:46:01 +01:00
retrooper
7a08005e53
Looking into why ProtocolLib & ViaVersion and our plugin just aren't compatible.
2022-02-13 11:29:59 +01:00
retrooper
6f3ce820d3
Forgot netty-common's build gradle
2022-02-13 10:30:56 +01:00
retrooper
cc9cd837b3
netty-common module created.
2022-02-13 10:30:26 +01:00
MWHunter
170175a4cb
1.7-1.12 items final bug fixes
2022-02-12 22:13:30 -06:00
MWHunter
95cb1fcdfa
1.7-1.12 items bug fixes
2022-02-12 21:45:04 -06:00
MWHunter
81489a70a2
Convert 1.7-1.12 items to use the 1.18 names
2022-02-12 21:26:45 -06:00
MWHunter
ea7f455ca7
1.13-1.18 item type bug fixes. pre-1.13 still broken
2022-02-12 18:43:25 -06:00
MWHunter
0056a2c2c7
Replace legacy item type mappings
2022-02-12 18:43:25 -06:00
retrooper
6c6bbca60f
Fixed BungeePacketEventsBuilder and updated to latest packetevents-netty-impl.
2022-02-12 21:49:55 +01:00
MWHunter
de7ff0439b
Fix entity type mappings on legacy versions
2022-02-12 14:29:16 -06:00
retrooper
930f491b3f
Made a ProtocolManager with protocol utilities, that don't require a platform-dependent object. Just ChannelAbstracts and User objects usually.
...
Many deprecations in PlayerManager and ServerManager
ClientVersion minor optimization.
potion_type_mappings.json are now in the potion folder, instead of item(i don't know why they were there in the first place)
2022-02-12 21:08:44 +01:00
MWHunter
8fde01c50f
Fix tracking world height
2022-02-11 21:26:06 -06:00
MWHunter
c144955530
Fix 1.17/1.18 extended world chunk reading
2022-02-11 21:09:11 -06:00
MWHunter
176161be01
Respawn previous gamemode can be null
2022-02-11 20:05:27 -06:00
MWHunter
0fdc0bf7ce
Revert to using spigot-api 1.18 instead of 1.18.1
2022-02-11 14:36:17 -06:00
retrooper
ca72e0cbfb
Working on more helpful errors.
2022-02-11 20:02:08 +01:00
MWHunter
e5212aa687
Check isEmpty() instead of getAmount == -1
2022-02-11 11:59:37 -06:00
MWHunter
959e494b1c
Merge ItemStack.AIR into ItemStack.EMPTY to try to fix 1.8 items
2022-02-11 11:59:37 -06:00
retrooper
6cf2e0407e
Attempting to fix build.gradle in api module.
2022-02-11 09:02:25 +01:00
retrooper
77d31e32ce
Relocated BungeePacketEventsBuilder
2022-02-11 08:09:24 +01:00
MWHunter
0176344bf8
Fix 1.16.2-1.16.5 support
2022-02-10 20:38:59 -06:00
MWHunter
f311b0e0c3
bump spigot-api version to 1.18.1
2022-02-10 20:00:22 -06:00
retrooper
9b631a3e21
Actually register the internal bungee processor.
2022-02-10 19:16:48 +01:00
retrooper
c43922bdc1
Removed debugs.
2022-02-10 14:41:05 +01:00
retrooper
3fdc992846
Optimizations.
2022-02-10 13:58:33 +01:00
retrooper
30a2e935fd
Managed to get compression & decompression issues out the way. Issue is when a client connects to the proxy, the packets are in the format of the client. (Unless ViaVersion is inbetween)
2022-02-10 11:44:36 +01:00
retrooper
d432fa0664
More progress on bungee packetevents, can't get passed the PLAY state at the moment.
2022-02-09 23:14:44 +01:00
retrooper
e11cc9d9f0
Attempting to fix gradle for jitpack.
2022-02-09 21:09:40 +01:00
retrooper
ed2d16d775
Added copyright notices in some files where it was missing.
...
Progress on bungee.
2022-02-09 21:00:13 +01:00
retrooper
96c1321772
Small changes to bungee
2022-02-09 19:38:36 +01:00
retrooper
1d9ba33b21
Removed IDE config file
2022-02-09 18:00:34 +01:00
retrooper
b6766cbaa6
Changes in build configuration files.
2022-02-09 17:58:10 +01:00
retrooper
215ef2a20d
Working on BungeeCord support.
2022-02-09 17:55:37 +01:00
retrooper
7efc5b3174
Update .gitignore
2022-02-09 15:54:30 +01:00
retrooper
9f3ca243e2
Removed debugs.
2022-02-09 15:54:16 +01:00
retrooper
0b3746454e
Add spigot build.gradle and .gitignore
2022-02-09 15:43:39 +01:00
retrooper
c64115661c
Back to a gradle multi-module project.
2022-02-09 15:41:06 +01:00
MWHunter
9c5fea1656
Fix isKnownEmpty(), rename to isEmpty()
2022-02-06 16:18:09 -06:00
MWHunter
c6f7d4d4f9
Fix negative block position support
2022-02-06 15:48:42 -06:00
MWHunter
8ab1f82e29
Fix WrapperPlayServerJoinGame on 1.17
2022-02-06 14:55:47 -06:00
retrooper
f947fd8fdf
Merge remote-tracking branch 'origin/api' into api
2022-02-06 21:32:06 +01:00
retrooper
7f460f243c
Bug fix in WrapperPlayServerScoreboardObjective
2022-02-06 21:31:50 +01:00
MWHunter
1ffbda71f7
WrapperPlayServerChunkDataBulk for 1.8, in-progress 1.7
2022-02-06 13:34:37 -06:00
retrooper
52a001d7cd
Compilation error fixed and PacketListenerCommon is publicly accessible.
2022-02-06 17:20:28 +01:00
retrooper
c80d2c094e
Fixed WrapperPlayServerWindowItems
2022-02-06 17:15:51 +01:00
retrooper
abba5d8870
Updated annotations.
2022-02-06 15:51:47 +01:00
retrooper
cf69381c32
Fixed shadowJar(last time)
2022-02-06 11:20:46 +01:00
retrooper
597dd3123d
Fixed shadowJar(last time)
2022-02-06 11:19:38 +01:00
retrooper
342da1e039
Added shadowJar to api module.
2022-02-06 11:13:59 +01:00
retrooper
dfe0bd5825
Fixed github actions.
2022-02-06 10:38:13 +01:00
retrooper
40b9474896
Must work now.
2022-02-06 10:36:30 +01:00
retrooper
64ddc54325
Eliminated shadowJar.
2022-02-06 10:35:18 +01:00
retrooper
9d2ed8fd9a
No longer minimize shadowJar?
2022-02-06 10:11:21 +01:00
retrooper
b0740e7af7
Still tryna fix publishing.
2022-02-06 09:55:14 +01:00
retrooper
ec5abbe2cb
Trying to fix jitpack publishing.
2022-02-06 09:49:25 +01:00
retrooper
7ee7e9897e
Added shadowJar plugin to api.
2022-02-06 09:26:04 +01:00
retrooper
91d35cb671
PEVersion is now stored in PacketEventsAPI
2022-02-06 09:01:29 +01:00
retrooper
0064517e99
This is the API branch, removed other modules.
2022-02-06 08:57:39 +01:00
MWHunter
e05aa69674
In-progress 1.7 chunk wrapper support
2022-02-05 22:53:20 -06:00
MWHunter
e9ffe18674
Port chunk wrapper to 1.8 (for 1.8 - 1.18 support)
2022-02-05 22:10:52 -06:00
MWHunter
3f0bce90ea
Port chunk wrapper to 1.12
2022-02-05 21:06:44 -06:00
MWHunter
d220a17679
Clean up legacy block mappings
2022-02-05 20:51:53 -06:00
MWHunter
a310347420
Port WrappedBlockState to pre-flattening
2022-02-05 18:56:49 -06:00
MWHunter
a7096b876f
Port chunk wrapper back to 1.13
2022-02-05 17:59:39 -06:00
MWHunter
184e846592
Port chunk wrapper back to 1.14
2022-02-05 17:36:51 -06:00
MWHunter
88b02b60a4
Port chunk wrapper back to 1.15 for 1.15-1.18 support
2022-02-05 17:06:47 -06:00
retrooper
87f8af7977
Changes to PacketEventsAPI. It is now an abstract class, not every method must be implemented! Removed some unused classes.
2022-02-04 21:19:41 +01:00
retrooper
388619661b
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-04 21:12:39 +01:00
retrooper
f9326359af
Changes to PacketEventsAPI. It is now an abstract class, not every method must be implemented!
2022-02-04 21:12:01 +01:00
MWHunter
f5693273a6
Fix enchantments being reset
2022-02-04 13:43:07 -06:00
retrooper
1b237b5615
Removed debug.
2022-02-04 19:15:54 +01:00
retrooper
8eaea5feb1
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-02-04 19:14:59 +01:00
retrooper
7aa624c8ed
In our decoder, we don't process empty buffers anymore.
2022-02-04 19:14:23 +01:00
MWHunter
ed866810d6
Fix explosion packet off by 1 generating ghost blocks
2022-02-04 11:39:28 -06:00
retrooper
4fde212445
WrapperPlayServerWindowItems fixed for server versions lower than 1.7.10. Attempted GeyserUtil 2.0 API support, but untested. Cleaned up build.gradle
2022-02-04 18:09:40 +01:00
retrooper
a11e013668
Merge pull request #221 from retrooper/revert-220-2.0
...
Revert "find field in superclass"
2022-02-04 17:41:37 +01:00
retrooper
4bab379986
Revert "find field in superclass"
2022-02-04 17:41:19 +01:00
retrooper
71b3089ae6
Merge pull request #218 from AbhigyaKrishna/2.0
...
Fixes for legacy mappings
2022-02-04 16:39:26 +01:00
retrooper
7e81bcb5be
Merge pull request #220 from huanmeng-qwq/2.0
...
find field in superclass
2022-02-04 16:30:39 +01:00
huanmeng_qwq
2496b7c2c5
Update ReflectionObject.java
2022-02-03 23:07:04 +08:00
huanmeng_qwq
9aeb148ea9
find field in superclass
2022-02-03 22:53:49 +08:00
Abhigya
8e7c4f2b2c
Typo fixes in mapping
2022-02-02 19:18:09 +05:30
Abhigya
60201b4ac3
Spawn entity packet mapping fix
2022-02-02 18:51:35 +05:30
Abhigya
169a7fd064
Mappings for 1.8 items
2022-02-02 18:49:08 +05:30
Abhigya
bfba14106e
Made the enums public
2022-02-02 18:48:33 +05:30
retrooper
f6b22f0ff2
Minor change to javadocs
2022-02-01 23:43:09 +01:00
retrooper
313d2f956c
Last bug fix in join game wrapper.
2022-02-01 23:13:59 +01:00
retrooper
a0ae5e7dcf
Bug fixes for JoinGame wrapper.
2022-02-01 23:02:20 +01:00
retrooper
30c070a60c
PlayerManager#clearUserData bug fixes
2022-02-01 22:47:29 +01:00
retrooper
5bf2daa734
Set default values for chunk data wrapper lighting attributes.
2022-02-01 22:33:10 +01:00
retrooper
af0faf6436
WrapperPlayServerJoinGame created
2022-02-01 20:08:38 +01:00
retrooper
0333aad4fb
PlayerManager#clearUserData method created
2022-01-31 17:34:29 +01:00
retrooper
abee3e2cf2
Removed debugs.
2022-01-31 16:56:46 +01:00
retrooper
86fc6bb452
Fixed decoder when ViaVersion isn't present.
2022-01-31 16:44:23 +01:00
retrooper
b1681772b0
WrapperPlayServerTeams constructor with sendevent exists. WrapperStatusServerResponse created.
2022-01-30 22:51:07 +01:00
retrooper
6aef8a7b14
Post-tasks in ProtocolPacketEvents now are also called when the event is cancelled!
2022-01-30 22:33:04 +01:00
retrooper
5306c090c0
PacketSendEvent#hasPromisedTasks created
2022-01-30 22:28:30 +01:00
retrooper
248799229d
All in all, particle packets are working on 1.8. 1.7.10 still needs some work, and 1.8 a few tweaks.
...
Fixed issue where JOIN_GAME packet type just wouldn't get called in our listener.
2022-01-30 22:05:06 +01:00
retrooper
d84d258d5c
PacketSendEvent#getPromisedTasks added to distinct from post-tasks (in receive and send events).
2022-01-30 20:57:47 +01:00
retrooper
751c4f3ce8
Forgot to document that we added post-tasks to receive-events too.
2022-01-30 20:34:56 +01:00
retrooper
b52f8d5ce9
Fixed viaversion support, because we misplaced our encoder.
2022-01-30 19:52:07 +01:00
retrooper
94823b93cd
Removed debugs.
2022-01-30 19:24:07 +01:00
retrooper
b2039f5741
SimplePacketListenerAbstract created. Relocation of so many event classes. Fixed late injectors on reload not updating UserProfile.
2022-01-30 18:52:35 +01:00
retrooper
0fd0c62c96
Working on bug fixes in the injector, worked on ViaVersion bug fixes, but isn't perfect(atleast not on 1.8)
2022-01-29 23:49:29 +01:00
retrooper
ce66fa1aa6
Attempt on 1.7 support for particle wrapper.
2022-01-29 15:52:47 +01:00
retrooper
a955b85620
Fixed comression issues. Fixed WrapperPlayClientPlayerBlockPlacement for 1.8 and 1.7.10
2022-01-29 07:51:37 +01:00
retrooper
0c3908de28
Minor optimization in ProtocolPacketEvent
2022-01-28 23:21:55 +01:00
retrooper
aed27d6fc4
Fixed bug in Spigot Packet encoders!
2022-01-28 23:12:59 +01:00
retrooper
f2e232d6cf
Optimized build.gradle?
2022-01-28 21:06:19 +01:00
retrooper
5311189ec2
Minor changes
2022-01-28 20:49:33 +01:00
retrooper
719ad602ce
All debugs eliminated
2022-01-26 20:49:36 +01:00
retrooper
66831ca814
Fixed login success being play state. Fixed post tasks.
2022-01-26 20:37:09 +01:00
retrooper
323ae164f2
LoginSuccess is allegedly in play state for some packet listeners.
2022-01-26 20:23:11 +01:00
retrooper
082924fe82
Removed debugs
2022-01-26 19:27:37 +01:00
retrooper
86b8d6d7e7
Made encoders more memory efficient and reduced memory leaks. ItemStack items aren't always enchanted now.
2022-01-26 19:26:57 +01:00
retrooper
dafc082838
Working on making our decoders more memory efficient and reduce potential memory leaks.
2022-01-26 19:09:43 +01:00
retrooper
f0128e0f5d
ProtocolPacketEvent#getSocketAddress optimization
2022-01-25 23:24:20 +01:00
retrooper
c04322c3a0
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-25 23:21:44 +01:00
retrooper
b1463a6d5b
Attempted optimizations, we now store clientversion and connectionstate in our user instance. Hopefully reduced map calls.
2022-01-25 23:21:27 +01:00
MWHunter
13a532eed0
Fix null pointer when setting invalid block data
2022-01-25 10:13:00 -06:00
MWHunter
625f74fbc5
Fix explosion for 1.17+
2022-01-24 17:27:06 -06:00
retrooper
d23efe4154
Attached good-looking credit to various projects
...
We might have not credited every single external project out there, I'll look deeply soon.
2022-01-23 23:20:13 +01:00
retrooper
0ef56aab3a
Removed debugs
2022-01-23 18:08:50 +01:00
retrooper
e2f1415820
ProtocolPacketEvent#getUser finally implemented properly.
...
GlobalChannelInjector -> SpigotChannelInjector.
User#sendPacket added.
We really try ensure getUser never returns null.
2022-01-23 18:07:12 +01:00
retrooper
d17747490f
PacketEvents.getAPI().getPlayerManager().getUser created. Renamed GameProfile to UserProfile and made a User class
2022-01-23 14:56:20 +01:00
retrooper
1866de2908
DiggingAction is no longer a subclass,
...
WrapperPlayServerAcknowledgePlayerDigging created
2022-01-23 10:24:10 +01:00
retrooper
ffd5ce2f90
Removed debug in flying wrapper
2022-01-23 09:38:38 +01:00
retrooper
83624452a4
Fixed WrapperPlayClientPlayerFlying
2022-01-23 09:22:10 +01:00
retrooper
b7b35c3ea1
Merge pull request #201 from AbhigyaKrishna/2.0
...
Fix for WrapperPlayServerEntityTeleport on 1.8
2022-01-22 20:10:36 +01:00
retrooper
fe5c5bf6fa
WrapperPlayServerParticle created, still might need some little finishing on versions before 1.13. And particle types doesnt have legacy particles
2022-01-22 20:09:47 +01:00
retrooper
705e2759dc
Particle abstraction added
2022-01-22 19:04:38 +01:00
Abhigya
4a6e8cada0
Fixed packet reading for WrapperPlayServerEntityTeleport
2022-01-22 21:29:37 +05:30
Abhigya
dcb30a19e4
Fix for WrapperPlayServerEntityTeleport again
2022-01-22 21:19:28 +05:30
retrooper
6e846705ec
Merge pull request #199 from RohanGoyalDev/2.0
...
Added unregisterListeners methods
2022-01-22 15:43:19 +01:00
retrooper
9d018e0886
Added unregisterListener method for single listener, remove unregisterListeners with priority
...
Priorities are already attached to packetlistenerabstracts. No need to additionally attach a priority.
2022-01-22 15:43:11 +01:00
retrooper
c4f6ea71b4
PacketSendEvent#getPostTasks now working
2022-01-21 22:41:43 +01:00
retrooper
4549b8305e
No more relocating of libraries, as it causes issues with API users
2022-01-21 21:42:19 +01:00
retrooper
ed10be50ea
Fixed WrapperPlayServerSpawnPlayer and WrapperPlayServerEntityTeleport for 1.8 & 1.7.10 by AbhigyaKrishna
...
Fixed WrapperPlayServerSpawnPlayer and WrapperPlayServerEntityTeleport for 1.8 & 1.7.10
2022-01-21 21:39:55 +01:00
retrooper
3a6f0c4c7b
Fixed WrapperPlayServerEntityTeleport for 1.8, and fixed 1.7 support broken in this PR
2022-01-21 19:58:58 +01:00
retrooper
1ea32c79e3
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-21 19:33:13 +01:00
retrooper
3612d96029
Removed debug listener
2022-01-21 19:32:14 +01:00
Abhigya
cd4e5a21f6
Fix for writing entityId in WrapperPlayServerEntityTeleport for 1.8
2022-01-21 21:10:11 +05:30
RGoyalmc
aaf3c915bc
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-21 20:28:22 +05:30
RGoyalmc
3bd9014b5a
registerListener returns PacketListenerAbstract to allow unregistering later
2022-01-21 20:28:10 +05:30
Abhigya
ab209d950b
Removed relocation
2022-01-21 19:14:45 +05:30
Abhigya
e92413a53d
WrapperPlayServerSpawnPlayer fix for 1.8 and lower
2022-01-21 19:11:11 +05:30
RG
fb74a7f99b
Merge branch 'retrooper:2.0' into 2.0
2022-01-21 14:02:00 +05:30
RGoyalmc
96b9442c29
Added unregisterListeners methods
2022-01-21 14:00:52 +05:30
MWHunter
7db5ff25f0
Correct Optional_Integer entity data type
2022-01-20 16:55:19 -06:00
retrooper
a20d067d62
NPC API additions, custom prefix and suffixes, colored name feature.
2022-01-20 21:15:25 +01:00
retrooper
c85b5dce14
Merge pull request #198 from RohanGoyalDev/2.0
...
Added WrapperPlayServerScoreboardObjective and WrapperPlayServerTeams
2022-01-20 18:35:37 +01:00
retrooper
70ab66889b
Removed some examples
2022-01-20 18:30:35 +01:00
RGoyalmc
3acf776efe
Added WrapperPlayServerScoreboardObjective and WrapperPlayServerTeams
2022-01-20 22:53:21 +05:30
retrooper
0430a94f31
Moved AdventureSerializer to util package
2022-01-19 22:46:21 +01:00
retrooper
044c3b186d
Deleted our chat component abstraction and
...
migrated to Kyori Adventure
2022-01-19 22:45:34 +01:00
retrooper
620a63f09c
Correctly relocate adventure, might do some changes
2022-01-19 22:12:09 +01:00
retrooper
b76933f26d
Merge pull request #197 from AbhigyaKrishna/2.0
...
Adventure implementation
2022-01-19 20:52:09 +01:00
Abhigya
3d94e6fb75
Adventure implementation
2022-01-19 23:00:18 +05:30
retrooper
925f9a3c3e
Vector3d, Vector3f, Vector3i#zero created
2022-01-17 22:22:40 +01:00
retrooper
1fae8ad4d6
Removed debug
2022-01-17 22:20:51 +01:00
retrooper
1860de9529
WrapperPlayServerCloseWindow default constructor created;
...
ServerManager#receivePacket and
ServerManager#receivePacketSilently created
2022-01-17 22:20:28 +01:00
retrooper
3dcce9ea5d
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-17 21:03:48 +01:00
retrooper
4809c8db27
Some optimizations/simplifying to the current netty abstraction implementation of packetevents
2022-01-17 21:03:21 +01:00
MWHunter
c14297aa51
WrapperPlayServerCloseWindow
2022-01-17 13:30:32 -06:00
retrooper
0ccfdc6ef4
Minor change to a comment
2022-01-17 19:49:05 +01:00
retrooper
45ad93778d
Fixed compatibility with ProtocolSupport
2022-01-17 19:48:01 +01:00
retrooper
f1d683abb0
Compilation error fixed!!
2022-01-16 22:04:10 +01:00
retrooper
8fad01156b
We now collect our packetevents version with bStats;
...
SpigotDataHelper.fromBukkitItemStack bug fix
2022-01-16 21:59:26 +01:00
retrooper
b1c7f2a3c5
Update bStats notice
2022-01-16 21:11:44 +01:00
retrooper
f2c0468487
Vector3d#ZERO created;
...
Vector3f#ZERO created;
Vector3i#ZERO created
2022-01-15 18:10:13 +01:00
retrooper
89110b21f1
Minor changes
2022-01-13 22:19:22 +01:00
retrooper
79f176221a
Equipment and EquipmentSlot now have their own class;
...
ItemStack#AIR added;
NPC#getMainHand, getOffHand, getHelmet, getChestPlate, getLeggings, getBoots added;
NPCManager#updateEquipment;
PlayerManager#sendPacket works again
2022-01-13 22:03:26 +01:00
retrooper
56ebeffda1
WrapperPlayServerCollectItem created;
...
ItemStack#Builder default amount is 1;
Vector3d#toVector3i created;
Vector3i#toVector3d created;
2022-01-09 21:54:33 +01:00
retrooper
0fe5d63220
Add WrapperPlayServerEntityEquipment
2022-01-09 19:34:01 +01:00
retrooper
43d18cd6f2
Added WrapperPlayServerEntityEquipment
2022-01-09 19:00:47 +01:00
retrooper
ffcb91ef05
Removed preProcessed feature in listeners
2022-01-08 17:36:41 +01:00
retrooper
d42de7d96a
Removed redundant duplication when sending packet bytebufs
2022-01-07 18:34:37 +01:00
retrooper
04cf207105
Change to debug listener
2022-01-07 17:30:28 +01:00
retrooper
b404274e26
Removed debugs
2022-01-07 17:02:34 +01:00
retrooper
011d52a246
Last attempt to support pre processed listener and "cloned" event instances
2022-01-07 16:57:33 +01:00
retrooper
2e01f71e95
Redundant code removed from PacketWrapper
2022-01-07 16:26:10 +01:00
retrooper
17aa045349
Added small debug
2022-01-07 16:14:59 +01:00
retrooper
264e6e5e81
Pre processed events are working
2022-01-07 16:01:44 +01:00
retrooper
b5a15cbbbb
2nd Attempt to fix pre processed events
2022-01-07 15:51:57 +01:00
retrooper
a8ee5ee79a
Attempt to fix pre processed events
2022-01-07 15:34:47 +01:00
retrooper
d7be938767
You should now be able to read the same event multiple times with many wrappers.
2022-01-07 15:18:58 +01:00
retrooper
00ecb18efb
Compilation error fixed
2022-01-07 14:59:04 +01:00
retrooper
0880664a58
PacketListener and PacketListenerReflect can now be preProcessed. This means the buffer is cached and you can safely read the data in the packet on a separate thread or later.
2022-01-07 14:53:01 +01:00
retrooper
a5641ee557
PacketListenerAbstract#isPreProcessed added;
...
WrapperPlayClientBlockPlacement renamed to WrapperPlayClientPlayerBlockPlacement
2022-01-07 14:36:31 +01:00
retrooper
ac4d9601d9
Packet wrapper objects can be sent multiple times now
2022-01-07 12:07:09 +01:00
retrooper
597cd2462c
PlayerManager#sendPacketSilently defined;
...
PlayerManagerImpl#sendPacketSilently implements it
2022-01-07 12:03:04 +01:00
retrooper
a4aabcfbcc
WrapperPlayServerFacePlayer created
2022-01-06 22:22:48 +01:00
retrooper
58839ae503
WrapperPlayServerPlayerPositionAndLook.java additions;
...
WrapperPlayClientPlayerFlying#hasPositionChanged and hasRotationChanged now accessible
2022-01-06 21:27:37 +01:00
retrooper
85a0edc131
Set default values for player data providers
2022-01-06 19:09:45 +01:00
retrooper
8aedcff494
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-06 18:59:54 +01:00
retrooper
78581d99ae
Set default values for entity data providers
2022-01-06 18:58:11 +01:00
MWHunter
8cf6e07a6b
WrapperPlayServerOpenHorseWindow
2022-01-06 10:46:47 -06:00
retrooper
7f44343ec7
Attempt to fix WrapperPlayServerPlayerPositionAndLook and RelativeFlags;
...
SkinSection improvements;
WrapperPlayClientSettings#isSkinSectionVisible, setSkinSectionVisible added
2022-01-06 15:50:47 +01:00
retrooper
bb78cfcaf6
Attempt to transform destroy entities packet into multiple when needed;
...
SpigotDataHelper created, which helps for converting Bukkit data types into packetevents data types
2022-01-06 12:35:01 +01:00
retrooper
3464fa8ea7
Many comments removed, we instead made GitHub issues
2022-01-06 12:07:24 +01:00
retrooper
23c427944f
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-06 11:49:25 +01:00
retrooper
b0943da09f
Attempted to complete the entity data provider builders, not entirely perfectbut should work.
2022-01-06 11:49:11 +01:00
retrooper
dd20f0c7c7
Credit bStats metrics class owner
2022-01-06 00:24:10 +01:00
retrooper
4093a23fb3
SkinSections refactored;
...
WrapperPlayClientPlayerFlying can now parse its sub packets;
Working on builders for entity data providers.(player one is left)
2022-01-05 23:27:10 +01:00
retrooper
c5c9d6e1fd
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-05 13:30:05 +01:00
retrooper
3c88c64cac
LivingEntityDataProvider created;
...
PlayerDataProvider also created, now time to test
2022-01-05 13:29:26 +01:00
MWHunter
55dacc62dc
Fix MCProtocolLib bug
2022-01-04 21:16:31 -06:00
MWHunter
0056adae8e
Fix equals and hashcode comparison for WrappedBlockState
2022-01-04 19:19:41 -06:00
MWHunter
7c9dd702c4
Fix yet another WrappedBlockState corruption method
2022-01-04 18:58:32 -06:00
MWHunter
8e73755566
Fix another WrappedBlockState corruption method
2022-01-04 18:40:47 -06:00
MWHunter
21da5c8be8
Don't let WrappedBlockState become corrupted
2022-01-04 17:50:19 -06:00
DefineOutside
8900e613b2
Fix compilation
2022-01-04 17:34:53 -06:00
retrooper
6e37546336
EntityDataProvider done;
...
Working on LivingEntityDataProvider
2022-01-04 22:56:12 +01:00
retrooper
4b4aec1e32
Attempting to fix a connection handler issue
2022-01-04 19:30:57 +01:00
retrooper
b356696d1e
Removed debugs and debug listener
2022-01-04 18:19:25 +01:00
retrooper
3dd75fc51e
Attempted to fix PacketEncoderLegacy for 1.7 servers
2022-01-04 18:18:25 +01:00
retrooper
d6a0823d57
Some bug fixes, skins now work again!
2022-01-04 17:47:46 +01:00
retrooper
eb7e8752ed
Fixed encoder issues with sending packets
2022-01-04 17:09:54 +01:00
retrooper
201666365f
Fixed encoder issues when cancelling packets;
...
Improved ViaVersion support(optimizations)
2022-01-04 17:00:25 +01:00
retrooper
04ba2c29dd
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-04 16:39:11 +01:00
retrooper
8b2750389d
Before we try change our encoder system.
2022-01-04 16:38:54 +01:00
MWHunter
586657d973
Fix 1.17+ support for EntityPose
2022-01-03 19:09:08 -06:00
retrooper
7e0f491a73
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-03 22:08:29 +01:00
retrooper
8e62e6a6a3
CustomPipelineUtil should now work on 1.7.10
2022-01-03 22:08:06 +01:00
MWHunter
45ab932d3c
Fix WrapperPlayClientBlockPlacement and add WrapperPlayClientUseItem
2022-01-03 15:00:55 -06:00
retrooper
eb295e16e9
PlayerManagerImpl#sendPacket now calls our send event when Via isn't present
2022-01-03 21:07:14 +01:00
retrooper
deec409f02
Fixed compilation error.
2022-01-03 11:33:37 +01:00
retrooper
246c5c4c55
Trying to add plugin.yml
2022-01-03 11:25:58 +01:00
retrooper
352750a247
Relocation of ResourceLocation
2022-01-03 08:44:27 +01:00
retrooper
4abb66f06a
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-03 08:37:09 +01:00
retrooper
7840391061
Finally we handle Villager data in the entity metadata packet!
2022-01-03 08:36:59 +01:00
MWHunter
5cf2d24098
Fix isReplaceable()
2022-01-02 21:51:12 -06:00
MWHunter
14781b3f7b
Fix isSolid() for StateTypes
2022-01-02 17:24:53 -06:00
MWHunter
04beb32199
Fix WrappedBlockState
2022-01-02 15:29:02 -06:00
MWHunter
57c3f00f1d
Fix BlockTags + ItemTags and rearrange their code
2022-01-02 14:57:02 -06:00
MWHunter
f021974c73
Fix WrapperPlayServerUpdateHealth
2022-01-02 11:05:45 -06:00
MWHunter
b97ab7c054
Fix entity metadata writing
2022-01-02 10:45:40 -06:00
MWHunter
a930af9656
Fix entity type mappings for 1.16+
2022-01-01 18:21:15 -06:00
MWHunter
b74d0bce71
Try fixing EntityMetadata packet
2022-01-01 17:47:22 -06:00
retrooper
0a5f73d2a6
Finally got NPCManager#changeNPCSkin kind of working;
...
Removed debug listener
2022-01-02 00:00:13 +01:00
retrooper
94d02606f6
Bug fixes to MojangAPIUtil
2022-01-01 22:33:12 +01:00
retrooper
274618b899
MojangAPIUtil and UUIDUtil created
2022-01-01 22:22:27 +01:00
retrooper
e77d23e908
Removed some things to prevent compilation
2022-01-01 21:59:17 +01:00
retrooper
db878badae
Fixed PacketWrapper#readEntityMetadata and writeEntityMetadata for 1.10+
2022-01-01 21:58:30 +01:00
retrooper
c723bee425
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-01-01 21:50:02 +01:00
retrooper
6cf055501b
Fixed WrapperPlayServerEntityProperties on 1.16+;
...
WrapperPlayServerSpawnPlayer minor addition;
NPCManager#updateNPCSkin and NPCManager#updateNPCDisplayPing added
2022-01-01 21:49:37 +01:00
MWHunter
7152615e3c
Allow getting all valid item types and state types
2022-01-01 13:05:16 -06:00
retrooper
b7bbdfa3e3
SpigotPacketEventsBuilder#clearBuildCache added
2022-01-01 18:50:44 +01:00
retrooper
1262855d05
SpigotReflectionUtil#getEntityById created
2021-12-31 21:37:14 +01:00
retrooper
1cea4d9766
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-31 20:41:37 +01:00
retrooper
627c23ec15
Removed tab completion thing
2021-12-31 20:41:24 +01:00
MWHunter
d6d447c6bf
Restore getEnchantmentLevel
2021-12-31 13:36:15 -06:00
MWHunter
1852c48e93
ItemStack clean up duplicate code
2021-12-31 13:28:22 -06:00
MWHunter
78f8a6b7db
Fix compilation on java 8
2021-12-31 12:48:07 -06:00
MWHunter
63f7d1aac5
ItemTypes <---> StateTypes when placeable
2021-12-31 12:31:01 -06:00
MWHunter
c5a1bfdd62
Remove commented out code from ItemTypes
2021-12-31 11:59:18 -06:00
MWHunter
13627a83cf
Rewrite ItemTypes to use a design pattern instead of 5 constructors
2021-12-31 11:57:08 -06:00
MWHunter
88023852b3
Add default block states for 1.17/1.18
2021-12-30 16:08:47 -06:00
retrooper
5adb6378e2
Change in one wrapper
2021-12-30 20:35:57 +01:00
retrooper
619cc77823
Minor fixes
2021-12-30 20:25:19 +01:00
retrooper
fab8cdde35
Implemented a utility method NettyManager#asByteArray
2021-12-30 20:21:34 +01:00
retrooper
730eda864f
Trying to fix game-profile failing to cache.
2021-12-30 20:14:02 +01:00
retrooper
1309c77f3c
Minor changes
2021-12-30 13:17:21 +01:00
retrooper
35e503a2ae
We can now build all the components officially with the API.
2021-12-30 12:41:59 +01:00
retrooper
a82951f85e
Removed debug and debug listener
2021-12-30 12:26:43 +01:00
retrooper
5ef782a04b
Minor bug fix in translatable component, need to look into hover event
2021-12-30 12:11:00 +01:00
retrooper
78d1bf814f
Lots of bug fixes in the chat component API
2021-12-30 12:03:09 +01:00
retrooper
4dcc33f7b7
Removed debug listener
2021-12-29 23:39:22 +01:00
retrooper
79514e0a51
Lots of code repetition fixed, working on fixing translatable components
2021-12-29 23:38:31 +01:00
retrooper
f2c78c794a
More progress on component serializer
2021-12-29 23:09:05 +01:00
retrooper
435e27d02c
Addition to NBT components
2021-12-29 22:56:43 +01:00
retrooper
b4640aecb0
Addition to NBT components
2021-12-29 22:47:21 +01:00
retrooper
6915c97a51
More progress on chat component api, working on nbt components
2021-12-29 22:45:26 +01:00
retrooper
7e6996813a
Attempted getEnchantments in ItemStack;
...
Relocated EnchantmentType/s;
MappedEntity#getIdentifier -> MappedEntity#getName(For ItemType, PotionType, EnchantmentType)
2021-12-27 22:42:56 +01:00
MWHunter
fd787fd3fb
Migrate to ViaVersion block mappings
2021-12-26 19:59:18 -06:00
MWHunter
17aadda1c5
Initial ItemTags implementation
2021-12-26 16:49:18 -06:00
MWHunter
68335024ea
Utility methods to WrapperPlayServerBlockAction.java
2021-12-25 17:12:48 -06:00
MWHunter
c5cf140961
Add sword, shovel, axe, pickaxe, and hoe to ItemAttributes
2021-12-25 17:04:53 -06:00
retrooper
6764c39bfb
Despawn NPC correctly
2021-12-25 18:51:05 +01:00
retrooper
59c6f58e77
Bukkit module -> Spigot module;
...
Read only listener bug fixes
2021-12-25 17:51:26 +01:00
retrooper
6a6a9f5a9e
BukkitPacketEventsBuilder -> SpigotPacketEventsBuilder
2021-12-25 17:25:49 +01:00
retrooper
697f65c07e
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-25 17:23:13 +01:00
retrooper
f59a2e5144
Packet listeners can now be readable only(which means the wrappers won't modify the packet being listened to, this can help optimize your usage of wrappers.
2021-12-25 17:23:02 +01:00
MWHunter
f161ba5718
Utility methods to BlockFace
2021-12-24 21:21:21 -06:00
retrooper
467d5e596d
Minor bug fix with getNPCManager() method
2021-12-24 22:43:00 +01:00
retrooper
b66cf34975
Attempted to fix NPC head rotation
2021-12-24 22:33:09 +01:00
retrooper
528a7ec7e5
Renamed MinecraftReflectionUtil in bukkit module to SpigotReflectionUtil (considering renaming module to "spigot")
2021-12-24 22:20:16 +01:00
retrooper
3cee15aef0
Minor changes
2021-12-24 21:58:47 +01:00
MWHunter
677e2739a6
Finish missed boolean getX() and fix a statetype
2021-12-24 14:30:06 -06:00
MWHunter
79bf0f674c
boolean getX() -> boolean isX()
2021-12-24 14:25:40 -06:00
MWHunter
8376abcfaa
Add Attachment to wrapped block state
2021-12-24 14:18:37 -06:00
MWHunter
14201f8747
Add WrapperPlayServerDeclareRecipes
2021-12-24 14:08:49 -06:00
MWHunter
c34d26670f
Replace Facing enum with BlockFace enum
2021-12-23 21:53:56 -06:00
MWHunter
3c669c6e93
Add East state to WrappedBlockState
2021-12-23 21:49:41 -06:00
MWHunter
e7896f9ec2
Make StateType in WrappedBlockState accessible
...
A bit of an oversight
2021-12-23 21:22:04 -06:00
MWHunter
1a17587d3a
Working MultiBlockChange wrapper for 1.17+
2021-12-23 20:39:46 -06:00
retrooper
c23e066d63
WrapperPlayServerEntityRelativeMove had wrong packet type
2021-12-23 22:44:35 +01:00
retrooper
aee4bfd240
Merge pull request #178 from Izibane/patch-1
...
すごい
2021-12-23 22:18:40 +01:00
retrooper
2ca0a14dfd
despawn NPC bug fix
2021-12-23 22:17:09 +01:00
retrooper
c9afbbc573
Location#clone added
2021-12-23 22:14:51 +01:00
retrooper
6967092a39
Minor bug fixes in NPCManager, now IT SHOULD BE WORKING
2021-12-23 22:03:09 +01:00
Izibane
2fc17edfd1
すごい
...
Super Idol的笑容 都没你的甜 八月正午的阳光 都没你耀眼 热爱 105 °C的你 滴滴清纯的蒸馏水
2021-12-23 21:00:45 +00:00
retrooper
e5f04b9dd8
Another bug fix in NPCManager#updateNPCLocation
2021-12-23 21:59:35 +01:00
retrooper
72cea36b4c
Another bug fix in NPCManager#updateNPCLocation
2021-12-23 21:58:29 +01:00
retrooper
cb3dc07da4
Bug fix with NPCManager#updateNPCRotation
2021-12-23 21:46:00 +01:00
retrooper
7a6adba398
Optimization to NPCManager#updateNPCRotation
2021-12-23 21:28:01 +01:00
retrooper
52ac010d6f
Redundant import removed
2021-12-23 20:23:29 +01:00
retrooper
285085ab14
Renaming in entity relative move PacketType EntityLook -> EntityRotation (like on wiki.vg) and in Wrapper names;
...
WrapperPlayServerSpawnPlayer final touches;
Location created and applied in a few wrappers.
2021-12-23 20:18:32 +01:00
MWHunter
ed088c2d8e
Working chunk data wrapper for 1.17
2021-12-22 21:39:53 -06:00
MWHunter
4e33c323df
Working chunk data wrapper for 1.18!
2021-12-22 19:45:32 -06:00
MWHunter
e4f1492744
Clean up multi-version chunk wrappers
2021-12-22 17:44:07 -06:00
MWHunter
922d234c45
Convert (untested) chunks to using the WrappedBlockState
2021-12-21 17:50:03 -06:00
MWHunter
05edb94249
Add extra utilities for block tags
2021-12-21 16:32:41 -06:00
retrooper
f6de2e066e
Some renaming of wrappers.
2021-12-21 21:06:40 +01:00
MWHunter
8204c5d631
Add shapeExceedsCube to StateType
2021-12-20 19:45:54 -06:00
MWHunter
4d9ce8419d
Fix Java 8 support
2021-12-20 18:12:07 -06:00
MWHunter
f47ddb5330
Expose item type attributes
2021-12-20 17:57:27 -06:00
MWHunter
1fab6e5396
Add Fuel to ItemType attributes
2021-12-20 17:51:03 -06:00
MWHunter
f77b370ee9
More ItemStack utilities
2021-12-20 17:20:57 -06:00
MWHunter
30e46ef672
Add some utility methods to ItemStack
2021-12-20 16:02:10 -06:00
retrooper
bdeab22d57
Compilation error fixed in EntityDataTypes
2021-12-19 21:41:05 +01:00
retrooper
982ad348a4
Hopefully fixed WrapperPlayServerEntityMetadata,
...
And created EntityData and EntityDataType/s,
all metadata stuff should be working, just need to test;
Refactored some item categorized mappings;
WrapperPlayServerBlockChange bug fix;
2021-12-19 21:26:40 +01:00
retrooper
296d3a8330
Fixed some more bugs in WatchableObject
2021-12-19 11:08:29 +01:00
retrooper
1ad13506f8
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-19 10:44:20 +01:00
retrooper
8887fdf227
Fixed some bugs in WatchableObject
2021-12-19 10:43:54 +01:00
DefineOutside
8ac94578cb
Add BlockTags class
2021-12-18 14:22:46 -06:00
DefineOutside
adcf8f9b0d
Add speed to state types
2021-12-18 13:54:28 -06:00
DefineOutside
6b7f08d27b
Initial working WrappedBlockState for 1.18 with WrappedPlayServerBlockChange
2021-12-18 12:09:11 -06:00
DefineOutside
14fa2a7e5f
Fix some wrapped block state enums
2021-12-18 11:49:13 -06:00
DefineOutside
f9d1f8ad39
Add globalID to wrapped block state to allow reversion with bad modifications
2021-12-18 10:56:07 -06:00
DefineOutside
86fb8f57da
Efficiency improvements for packet block states
2021-12-17 20:41:09 -06:00
DefineOutside
84d87ba5bc
Prototype for packet based representations of 1.7 through 1.18 blocks
2021-12-17 19:06:30 -06:00
DefineOutside
922b1e783b
Prototype for turning strings into enums and stuff
2021-12-17 18:28:29 -06:00
DefineOutside
a1e68ea71f
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-17 15:29:27 -06:00
DefineOutside
af025bb76b
Prototype for universal state types
2021-12-17 15:29:17 -06:00
retrooper
16f2d66b82
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-17 21:37:08 +01:00
retrooper
b5205e10aa
Client-bound keep alive packet created
2021-12-17 21:36:44 +01:00
DefineOutside
c53ca172ef
Add push reaction to state types
2021-12-17 13:27:07 -06:00
DefineOutside
4cdf42a6d8
don't commit debug
2021-12-17 13:01:28 -06:00
DefineOutside
bdae6431b7
Add WrapperPlayServerTags
2021-12-17 13:00:54 -06:00
retrooper
a8e1e7c09f
Minor change/fix component
2021-12-17 19:29:20 +01:00
retrooper
1e4bbaa979
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-17 18:53:33 +01:00
retrooper
b00f28399b
WrapperPlayServerPlayerInfo bug fixes attempt.
...
PacketWrapper#readComponent created
2021-12-17 18:53:17 +01:00
retrooper
232c668a45
Merge pull request #176 from AlessioGr/2.0
...
PLS NO SYSTEM.OUT.PRINTLN
2021-12-17 18:09:20 +01:00
Alessio Gravili
242435a0af
Merge pull request #2 from AlessioGr/retrooper-2.0
...
Retrooper 2.0
2021-12-17 17:42:07 +01:00
AlessioGr
5e093dbac8
Merge branch '2.0' of https://github.com/retrooper/packetevents into retrooper-2.0
...
Signed-off-by: AlessioGr <alessio@gravili.de >
# Conflicts:
# bukkit/src/main/java/io/github/retrooper/packetevents/handlers/modern/PacketDecoderModern.java
2021-12-17 17:41:24 +01:00
retrooper
e84c299d77
Removed a few debugs;
...
WrapperPlayServerDifficulty added
2021-12-17 17:26:42 +01:00
AlessioGr
680511621c
PLS NO SYSTEM.OUT.PRINTLN
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-17 17:25:40 +01:00
AlessioGr
a4a44f735f
PLS NO SYSTEM.OUT.PRINTLN
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-17 17:24:24 +01:00
DefineOutside
bbfc4f2e20
In-progress block state types
2021-12-16 22:55:22 -06:00
DefineOutside
6498ef9d25
Add durability and tool tiers to ItemType
2021-12-16 15:58:12 -06:00
DefineOutside
c833196faa
Fix compilation
2021-12-16 14:55:34 -06:00
DefineOutside
0f84b1fd9f
Add CraftRemainder to item type
2021-12-16 14:38:51 -06:00
DefineOutside
ad39ca31b2
Add ItemAttribute.FIRE_RESISTANT
2021-12-16 14:21:50 -06:00
retrooper
9bccd08531
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-16 21:20:08 +01:00
retrooper
db1ca78fbb
Strip away colors from log manager if we are not on Bukkit. Colors must be handled by the implementation and cannot be cross-platform. Everything remains white on other platforms or unknown implementations, unless they implement it correctly.
2021-12-16 21:19:55 +01:00
DefineOutside
70e2484d99
Corrections to max stack size
2021-12-16 14:18:11 -06:00
DefineOutside
4f81138bde
Add edible to item types
2021-12-16 14:12:20 -06:00
retrooper
a16cc34f8d
Attempted some bug fixes in decoder for legacy versions such as 1.8
2021-12-16 20:58:38 +01:00
retrooper
69cffe5b3d
Updated position and look constructor
2021-12-16 17:50:25 +01:00
retrooper
4c53c6fe56
We now use GameProfile in LoginSuccess packet.
2021-12-16 16:35:03 +01:00
retrooper
87748980ea
Minor fix in HumanoidArm
2021-12-16 16:14:07 +01:00
retrooper
9bc6a15581
Minor documentation fix
2021-12-16 16:11:37 +01:00
retrooper
3e4eb458d3
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-16 16:07:31 +01:00
retrooper
8d643fddcf
EntityType should work for all supported server versions now.
...
ItemTypes#getById can never be null, it returns AIR if not found in the map.
2021-12-16 16:07:18 +01:00
DefineOutside
67da1c6184
Air stacks to 64 not 1
2021-12-15 23:18:05 -06:00
DefineOutside
1957fc0b77
Add CARTESIAN_VALUES to BlockFace
2021-12-15 19:27:06 -06:00
DefineOutside
baebf06dc0
Add utility methods to BlockFace
2021-12-15 19:19:42 -06:00
DefineOutside
078aa4ab88
Add WrapperPlayClientSteerVehicle
2021-12-15 17:30:32 -06:00
DefineOutside
97d82994cc
Fix compilation error due to PacketEventsPlugin.java
2021-12-15 16:59:45 -06:00
DefineOutside
0f2d7c05a9
Separate main hand vs interaction hand
2021-12-15 16:54:38 -06:00
DefineOutside
2ad01ba158
Make clientbound/serverbound window confirmations consistent
2021-12-15 16:43:55 -06:00
DefineOutside
4c454f3793
Add constructors to WrapperPlayServerOpenWindow
2021-12-15 16:40:38 -06:00
retrooper
987fb97fad
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-15 23:08:21 +01:00
retrooper
104bdf0e37
Added entity type mappings for 1.14 till 1.18
2021-12-15 23:08:11 +01:00
DefineOutside
9846133f97
Initial WrapperPlayServerOpenWindow
2021-12-15 14:44:30 -06:00
retrooper
fa087ca733
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-15 16:40:30 +01:00
retrooper
9cb661df86
Improvements to ClientVersion and ServerVersion, we added the getReleaseName to both;
...
InternalPacketListener should be cross-platform, and is no longer in the bukkit module, implementations must register it;
We now cache the game profiles with channels instead of player usernames.
2021-12-15 16:40:05 +01:00
DefineOutside
6a20277b7e
Add the parent type to EntityType
2021-12-14 22:19:45 -06:00
DefineOutside
46e54fb8db
Force GeyserUtil safety
2021-12-14 20:28:47 -06:00
DefineOutside
b0fc8aa0a3
WrapperPlayServerWindowItems
2021-12-14 19:59:12 -06:00
retrooper
6caa434cd0
Merge pull request #175 from AlessioGr/fixlogs
...
Fix missing color in Bukkit log manager implementation
2021-12-14 21:12:16 +01:00
AlessioGr
c85cffbed1
Fix missing color in bukkit log manager implementation
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-14 15:39:34 +01:00
retrooper
2377ca8e02
Minor improvements to cross-platform log manager.
2021-12-13 07:21:12 +01:00
retrooper
5a90d2fd19
Some changes to GameProfile and some cleanups.
2021-12-12 22:27:23 +01:00
retrooper
9ca4606cf5
Progress on EntityTypes;
...
Some refactoring of some protocol data types;
2021-12-12 22:06:47 +01:00
retrooper
4b648ac0d0
Improvements to WrapperPlayServerEntityEffect
2021-12-12 21:11:07 +01:00
retrooper
d3ae9e5c35
Cleanup to logger manager.
2021-12-12 20:55:28 +01:00
retrooper
584452adc9
Merge pull request #173 from AlessioGr/2.0
...
Add LogManager
2021-12-12 18:10:40 +01:00
retrooper
8303a6f8a5
Some corrections to WrapperLoginClientEncryptionResponse and minor changes to MinecraftEncryptionUtil
2021-12-12 15:34:18 +01:00
retrooper
a107493942
Minor fixes to MinecraftEncryptionUtil
2021-12-12 15:20:35 +01:00
retrooper
0c79206e62
Merge pull request #174 from TRGReal/patch-1
...
Add vanilla MinecraftEncryptionUtil.
2021-12-12 14:40:14 +01:00
TRGReal
6fbd8843e8
Add vanilla MinecraftEncryptionUtil.
...
Allows you to easily encrypt/decrypt using Minecraft-like RSA/AES in PE util.
2021-12-12 21:39:22 +08:00
retrooper
f6ac6d8c60
Removed decrypt and encrypt methods
2021-12-12 14:37:50 +01:00
retrooper
03768c587c
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-12 13:56:04 +01:00
retrooper
04be4cad57
Minor corrections to WrapperLoginClientEncryptionResponse
2021-12-12 13:55:51 +01:00
AlessioGr
5ad0284c92
Finalize logmanager
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-11 23:19:28 +01:00
AlessioGr
8471ae512b
Disable plugin.yml.dis
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-11 23:18:56 +01:00
AlessioGr
388fd05e90
Improvements
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-11 23:13:34 +01:00
AlessioGr
7aac404238
Add LogManager
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-11 22:58:02 +01:00
retrooper
faf6bff61b
Merge pull request #172 from AlessioGr/2.0
...
Update gradle shadow & add github actions to 2.0
2021-12-11 22:38:19 +01:00
retrooper
b644f8d4aa
Comments added
2021-12-11 21:57:40 +01:00
retrooper
d091f169ad
Minor correction in comment
2021-12-11 21:26:42 +01:00
retrooper
a1e9aef5dc
Attempted to add Geyser/Floodgate support
2021-12-11 21:02:29 +01:00
retrooper
94bd45a1f9
Fixed WrapperPlayClientUpdateSign,
...
Added 1.18.1 support,
Fixed mappings when being parsed.
2021-12-10 22:47:21 +01:00
retrooper
aa00273a97
Updated to support 1.18.1
2021-12-10 20:58:06 +01:00
retrooper
077db29072
Item mappings should work for 1.17 and below
2021-12-10 16:06:48 +01:00
retrooper
266702d3ff
We have switched to ViaVersion's mappings, these are much easier to use, especially in our case, still need to complete the mappings for server versions older than 1.18.
2021-12-09 22:58:46 +01:00
retrooper
bdfcfed7fe
Pre mappings fix/switch
2021-12-09 21:41:13 +01:00
retrooper
0513511b4b
Updated build.gradle to use Spigot 1.18 API
2021-12-09 20:13:34 +01:00
retrooper
6dba94e69d
Lots of cleanup in PlayerManager and ServerManager. You don't need to implement as many methods anymore.
2021-12-08 22:55:30 +01:00
retrooper
c088dfbf64
Minor changes to GameMode
2021-12-08 17:20:39 +01:00
retrooper
8a95ba99ac
Removed PlayerManager#sendMessage
2021-12-08 14:41:20 +01:00
retrooper
9abaa18ba0
Add GameMode;
...
Add PlayerManager#sendMessage (will be removed next commit)
2021-12-08 14:39:47 +01:00
retrooper
16d57cead7
Minor changes
2021-12-05 11:21:52 +01:00
retrooper
bccad0fe6e
Minor bug fixes in chunk data(progress)
2021-12-05 11:03:08 +01:00
retrooper
31bbd66497
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-05 10:50:02 +01:00
retrooper
2d38f37be7
Working on decoding/encoding watchable objects.
2021-12-05 10:49:51 +01:00
DefineOutside
ebb48c5a6d
In-progress chunk wrappers
2021-12-04 16:56:55 -06:00
DefineOutside
5de377d535
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-04 16:09:03 -06:00
DefineOutside
719dedeebf
In-progress chunk wrappers
2021-12-04 16:08:54 -06:00
retrooper
9567ab2aab
ItemTypes mapping correction attempt,
...
WrapperPlayServerEntityEffect new constructor added
2021-12-04 20:06:30 +01:00
retrooper
b9077e5112
Many corrections to wrappers.
2021-12-04 19:48:15 +01:00
retrooper
b9fac2d6c9
Some bug fixes on more wrappers.
2021-12-04 19:25:55 +01:00
retrooper
5fa664b59f
Fixed WrapperPlayServerAttachEntity and WrapperPlayServerSetCooldown
2021-12-04 19:21:31 +01:00
retrooper
307cc62a6a
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-04 19:19:41 +01:00
retrooper
ab3bfa3018
Trying to fix ItemTypes mappings, what went wrong?
2021-12-04 19:19:15 +01:00
DefineOutside
480cee7fec
Player teleport wrapper
2021-12-04 11:40:44 -06:00
DefineOutside
924b0c2b24
WrapperPlayServerSetCooldown
2021-12-04 11:09:43 -06:00
DefineOutside
5db3c59ff0
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-04 10:58:33 -06:00
DefineOutside
ff8b593438
Attach entity wrapper
2021-12-04 10:58:28 -06:00
retrooper
0f9197a1f0
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-12-04 17:44:50 +01:00
retrooper
ac6bda02de
Updated item type mappings to 1.18
2021-12-04 17:43:39 +01:00
DefineOutside
eef49aa7c3
Entity effect, remove entity effect, set passengers wrappers
2021-12-04 10:23:04 -06:00
retrooper
2b84919759
Temporarily disabled debugs.
2021-12-03 22:38:00 +01:00
retrooper
7b56fbd453
Created WrapperPlayServerUpdateSimulationDistance
2021-12-03 22:16:26 +01:00
retrooper
b62ac638f8
Updated debugs.
2021-12-03 22:13:52 +01:00
retrooper
074004d57f
Re-added debugs in a rather smarter way.
2021-12-03 22:01:27 +01:00
retrooper
d36a93b050
Added support for 1.18 regarding packet types.
...
Working on fixing injector issues.
2021-12-03 21:41:53 +01:00
retrooper
4abffd87f8
Some optimizations by removing redundant packet processing in my internal listener
2021-12-02 18:26:02 +01:00
Alessio Gravili
a6b83d7e58
Merge branch 'retrooper:2.0' into 2.0
2021-12-02 18:20:22 +01:00
retrooper
679dda68ea
Last debug removed!
2021-12-02 18:09:28 +01:00
retrooper
4952487937
Removed chat message debugs.
2021-12-02 17:33:33 +01:00
Alessio Gravili
d7a52e797e
Merge branch 'retrooper:2.0' into 2.0
2021-12-02 17:21:41 +01:00
retrooper
23e5282b0f
Minor fix
2021-12-02 17:19:36 +01:00
Alessio Gravili
978f0382b9
Merge branch 'retrooper:2.0' into 2.0
2021-12-02 17:19:32 +01:00
retrooper
b598384f22
Fixed WrapperPlayServerPluginMessage and WrapperPlayClientPluginMessage;
...
Removed one more debug
2021-12-02 17:17:00 +01:00
AlessioGr
fb9d69e191
JDK 8
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-02 17:03:39 +01:00
AlessioGr
2125d3cd49
Update gradle wrapper from 7.3 to 7.3.1
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-02 11:49:14 +01:00
Alessio Gravili
348e400be3
Create gradle-publish.yml
2021-12-02 10:28:17 +01:00
AlessioGr
a236e24b25
Update shadow version
...
Signed-off-by: AlessioGr <alessio@gravili.de >
2021-12-02 10:15:49 +01:00
retrooper
4eae63c898
Removed debugs
2021-12-01 23:07:52 +01:00
retrooper
9cd931225d
Small comments added
2021-12-01 23:05:44 +01:00
retrooper
65232f6c47
Chat components reworked and mostly working, just need to work on Hover event show item and show entity, cause their values are strings and NOT json objects.
2021-12-01 23:04:59 +01:00
retrooper
c82895612b
Working on ScoreComponent
2021-12-01 19:27:08 +01:00
retrooper
e50feeb9cd
Some more adjustments to gradle.
2021-12-01 18:12:59 +01:00
retrooper
d10f91538f
Added some info to maven publishing.
2021-12-01 18:11:54 +01:00
retrooper
2327997910
Updated to latest gradle version, to add support for later java versions.
2021-12-01 18:02:28 +01:00
retrooper
469e610c15
Some bug fixes in client settings.
2021-12-01 17:21:38 +01:00
retrooper
7ab59f3cbe
Officially supporting 1.18.
2021-11-30 18:09:45 +01:00
retrooper
8eb8a7ea2d
ClientVersion#getLatest added;
...
ClientVersion#getOldest added;
PlayerManager#getClientVersion(ChannelAbstract) bukkit impl improved
2021-11-29 19:55:37 +01:00
retrooper
1d014a5848
Updated WrapperPlayClientSettings to support 1.18
2021-11-28 23:03:31 +01:00
retrooper
a29a0f9e20
Working on 1.18 support
2021-11-28 22:27:31 +01:00
retrooper
4b866d2d72
Yes
2021-11-28 18:09:03 +01:00
retrooper
76024f5ddd
Fixed issues in WrapperLoginClientEncryptionResponse, WrapperLoginServerEncryptionRequest,
...
WrapperPlayClientPluginMessage,
WrapperPlayServerPluginMessage
2021-11-28 17:30:47 +01:00
retrooper
d20673cc3e
PacketTypeCommon optimized;
2021-11-28 17:01:50 +01:00
retrooper
e68f960928
Minor changes to WrapperPlayClientInteractEntity
2021-11-28 16:52:23 +01:00
retrooper
68586850f4
Minor change
2021-11-28 14:24:49 +01:00
retrooper
7c8845e425
Minor remapping optimizations/cleanups
2021-11-28 12:06:01 +01:00
retrooper
66ad7be601
You can now dynamically change a wrapper's version, basically allowing you to transform it to a format of a different version.
2021-11-28 11:30:18 +01:00
retrooper
ecfd39825f
ItemTypes is fully functioning for all versions.
2021-11-28 11:27:37 +01:00
retrooper
3028b0c0ba
Small API changes
2021-11-26 22:24:29 +01:00
retrooper
dad68786ce
Minor injector bug fixes
2021-11-26 18:24:10 +01:00
retrooper
feb94a3982
Fixed issues when you left the server on legacy versions such as 1.8
2021-11-26 17:55:18 +01:00
retrooper
13e0c45b03
Minor fix to injector, still need to work on users leaving while server is running.
2021-11-25 22:33:31 +01:00
retrooper
6078046efa
WrapperPlayClientInteractEntity fixed for 1.8.8 servers;
...
Progress on fixing the ItemType mappings to get it cross version, still working on getting a few items such as MUTTON working
2021-11-25 22:27:18 +01:00
retrooper
0c27a8e793
We fixed ItemStack bugs on older versions
2021-11-25 20:09:12 +01:00
retrooper
27d71dc05d
I think we managed to fix item types for versions older than 1.13
2021-11-25 19:47:57 +01:00
retrooper
b078b66db9
Removed a few debugs
2021-11-23 21:36:34 +01:00
retrooper
bb20f92af8
PacketWrapper#readIdentifier and writeIdentifier created
2021-11-22 20:12:55 +01:00
retrooper
616a4142d2
ComponentSerializer should work on 1.8
2021-11-22 15:38:38 +01:00
retrooper
6e47bbbff6
Trying to have the mapped IDs equivalent to the server version, and not always the IDs of latest server version(1.17.1)
2021-11-21 14:03:03 +01:00
retrooper
01fab2b75e
Working on fixing reload issues.
2021-11-20 21:08:10 +01:00
retrooper
09182267c9
We changed some naming conventions, setEntityID -> setEntityId for example;
...
We now successfully shade and relocate GSON.
2021-11-20 18:51:29 +01:00
retrooper
6b88c08796
Working on supporting transforming item types IDs. Currently not as efficient.
2021-11-19 22:37:28 +01:00
retrooper
485bfbc093
Small bug fixes for hoverEvent
2021-11-19 20:43:26 +01:00
retrooper
82367dd6d6
Fixed HoverEvent and BaseComponent API
2021-11-19 19:09:13 +01:00
retrooper
5bc3597c70
PotionTypes created
2021-11-18 23:01:03 +01:00
retrooper
06113b1cee
EntityTypes & EntityType created
2021-11-18 22:15:53 +01:00
retrooper
93c2e4fcd0
Fixed issues when you sent the same wrapper twice.
2021-11-18 19:49:16 +01:00
retrooper
c2129f98bb
Fixed Plugin message wrappers for 1.12.2 and below
2021-11-18 18:15:10 +01:00
retrooper
896d760236
Small doc changes
2021-11-18 07:10:15 +01:00
retrooper
d5adae6be2
Corrected ClientVersion referencing documentation.
2021-11-17 22:10:34 +01:00
retrooper
be681c7005
Switched over to GSON JSON API, but still running into some issues
2021-11-15 22:52:44 +01:00
retrooper
c9aa7223f0
Corrected max counts of the music disc ItemTypes, added ItemType#isMusicDisc
2021-11-15 12:05:11 +01:00
retrooper
6520e39814
ClientVersion and ServerVersion enum constants now follow java enum conventions and are capitalized.
2021-11-15 00:29:01 +01:00
retrooper
5944174c24
Trying to fix component serialization errors.
2021-11-15 00:18:40 +01:00
retrooper
c6202f2a4c
Cross version PacketWrapper#readItemStack and PacketWrapper#writeItemStack
2021-11-14 23:50:05 +01:00
retrooper
6c4331a97f
All ItemTypes should have the correct maxCount
2021-11-14 23:29:55 +01:00
retrooper
710ace21e4
Updated more maxCounts of ItemTypes, reached ACACIA_SLAB
2021-11-14 23:04:46 +01:00
retrooper
dd8119105c
Updated more maxCounts of ItemTypes, reached BIRCH_LEAVES
2021-11-14 15:07:53 +01:00
retrooper
ecfd5d46f9
Updated more maxCounts of ItemTypes, reached BIRCH_LEAVES
2021-11-14 08:22:21 +01:00
retrooper
f88455c011
Updated maxCounts in many ItemTypes, currently at SMOOTH_SANDSTONE_SLAB
2021-11-12 23:17:38 +01:00
retrooper
8250a06d90
Removed debugs
2021-11-12 00:13:49 +01:00
retrooper
710d23dece
All ItemTypes added, just need to correct all max amounts!
...
WrapperPlayServerSetSlot created, but NOT working!
2021-11-12 00:07:42 +01:00
retrooper
d23cf6ac1b
Commit modified mappings from ProtocolSupport
2021-11-11 18:26:57 +01:00
retrooper
0f1798c7ce
We work to support more than just arrays in hover event action values.
2021-11-11 17:07:38 +01:00
retrooper
1e2362aa56
We've got more progress on hover event and click event, many bug fixes, and works better.
2021-11-10 23:04:45 +01:00
retrooper
0a054b88a7
We can successfully send the chat message packet.
2021-11-10 07:17:53 +01:00
retrooper
ee8af858b2
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# bukkit/src/main/java/io/github/retrooper/packetevents/processor/InternalPacketListener.java
2021-11-09 06:57:54 +01:00
retrooper
86f8a440f3
Reverted our wrapper on json.simple;
...
Testing components
2021-11-09 06:57:34 +01:00
retrooper
4b3069bed9
Fixed JSON stuff
2021-11-08 20:06:26 +01:00
retrooper
4953a7f855
UpdateChecker cleaned up;
...
Added mapping files
2021-11-08 17:01:00 +01:00
retrooper
2471baf5af
NPE bug fix for PacketWrapper#readItemStack usage
2021-11-07 23:43:19 +01:00
retrooper
2f59c0523a
Some progress on ItemStack, ItemType and ItemTypes;
...
Some API refactoring, lots of getIDs converted to getIds
2021-11-07 23:10:51 +01:00
retrooper
88b81b7d51
WrapperPlayServerSpawnPlayer,
...
WrapperPlayServerVehicleMove created
2021-11-07 21:50:06 +01:00
retrooper
05e445a934
WrapperPlayServerEntityRelativeMove,
...
WrapperPlayServerEntityLook created
2021-11-07 20:45:54 +01:00
retrooper
fa66721f81
WrapperPlayServerEntityRelativeMoveAndLook created
2021-11-07 18:14:35 +01:00
retrooper
cfd63c2c1d
WrapperPlayServerEntityTeleport,
...
WrapperPlayServerUpdateViewDistance created
2021-11-07 16:29:36 +01:00
retrooper
4e1b960a06
Removed debugs
2021-11-06 20:36:26 +01:00
retrooper
de8ebbdfd0
WrapperPlayServerTabComplete created;
...
Player attribute system created;
2021-11-06 20:26:31 +01:00
retrooper
a4ddf8e3e9
Progress on tab complete
2021-11-05 22:19:07 +01:00
retrooper
b47286f947
Working on WrapperPlayServerTabComplete
2021-11-04 22:39:13 +01:00
retrooper
af4a9ea590
WrapperPlayServerRespawn optimized;
2021-11-04 07:00:08 +01:00
retrooper
c7f25d0c9d
WrapperPlayServerRespawn completed, hasn't been tested yet.
2021-11-03 22:50:46 +01:00
retrooper
50aa821110
WrapperPlayServerRespawn almost done
2021-11-02 11:52:56 +01:00
retrooper
a35139fddb
Progress with WrapperPlayServerRespawn
2021-11-01 15:57:16 +01:00
retrooper
be7715fe42
WrapperPlayServerRespawn progress
2021-10-31 23:09:52 +01:00
retrooper
3d9df2118b
WrapperPlayServerRespawn created, but no support for older versions than 1.17.1 yet
2021-10-31 22:56:53 +01:00
retrooper
3e3ac32159
WrapperPlayServerPlayerListHeaderAndFooter created
2021-10-31 20:07:15 +01:00
retrooper
d089e9dbb0
Some refactoring of a lot of protocol related classes;
...
WrapperPlayServerSoundEffect created
2021-10-31 19:16:16 +01:00
retrooper
e20578b4b7
WrapperPlayServerDisconnect now parses the json message reason!
2021-10-31 10:34:31 +01:00
retrooper
779427702d
PacketEvents#build -> PacketEvents#setAPI
2021-10-31 10:18:10 +01:00
retrooper
0a523a93ba
WrapperPlayServerEntityHeadLook created;
...
Color#getByName improved
2021-10-31 10:13:47 +01:00
retrooper
5f3ededf9a
Should have fixed all issues in WrapperPlayServerChatMessage;
...
Color naming issues fixed
2021-10-30 23:06:53 +02:00
retrooper
fee52d8931
WrapperPlayServerChatMessage some optimizations
2021-10-30 22:02:50 +02:00
retrooper
3f98b5dc15
We have completed WrapperPlayServerChatMessage and TextComponent and BaseComponent, we might need to look out for errors.
2021-10-30 20:06:04 +02:00
retrooper
5dad71b935
Corrected chat message packet from using a base component to a text component
2021-10-30 18:07:02 +02:00
retrooper
e235fe1f46
Fixed a class cast exception when parsing json messages
2021-10-30 17:51:00 +02:00
retrooper
c1f99063dd
Finished click events.
2021-10-30 17:44:10 +02:00
retrooper
2bb0677cef
Color#toString works, ClickEvents progress
2021-10-30 08:25:01 +02:00
retrooper
caa004756d
ClickEvent class created, not used yet
2021-10-30 07:25:03 +02:00
retrooper
6653fba315
More progress to parsing chat message packet
2021-10-29 22:37:55 +02:00
retrooper
67f64b406c
Added missing constructor arguments for some wrappers
2021-10-27 14:42:13 +02:00
retrooper
56f46a1e9e
WrapperPlayClientQueryBlockNBT created;
...
WrapperPlayClientQueryEntityNBT created;
2021-10-27 11:54:39 +02:00
retrooper
348acdedcc
Progress on processing chunks on most versions, still need to test lower than 1.16.3 and 1.17+;
...
Flying packet mappings corrected;
2021-10-27 10:54:47 +02:00
retrooper
c6442cdab8
Corrected many incorrect license notices
2021-10-26 22:51:47 +02:00
retrooper
0568ea0c72
Forgot to add license notice to some moroe files.
2021-10-26 22:46:23 +02:00
retrooper
5ba2440a70
Forgot to add license notice to some files.
2021-10-26 22:41:09 +02:00
retrooper
4564ce65e8
Small modification to WrapperPlayClientFlying
2021-10-26 20:26:06 +02:00
retrooper
21585033d9
Flying packets published
2021-10-20 23:06:38 +02:00
retrooper
3cb55fe3ef
Flying packets created, some naming and mapping changes of the flying packets;
2021-10-20 23:01:03 +02:00
retrooper
d459403bb5
WrapperPlayServerDisplayScoreboard, WrapperPlayServerUpdateScore created
2021-10-17 12:16:38 +02:00
retrooper
47b4b7caa2
Some small cleanup
2021-10-16 23:31:10 +02:00
retrooper
53717ae948
WrapperPlayClientUseItem created;
...
Direction -> BlockFace
2021-10-15 23:10:58 +02:00
retrooper
8b555c0dbe
Fixed NPE with getConnectionState
2021-10-12 16:58:55 +02:00
retrooper
81c1280c20
Fixed getDecoder in early injector with multiple packetevents instances
2021-10-12 16:03:34 +02:00
retrooper
93bb3a6040
We now don't duplicate packetevents APIs
2021-10-12 15:54:38 +02:00
retrooper
67aeae5717
Attempt on supporting multiple packetevents instances
2021-10-12 15:38:06 +02:00
retrooper
a1eb97dbe7
Removed all debugs! ViaVersion support added!
2021-10-11 22:34:47 +02:00
retrooper
f9ee1e1f87
Got a working encoder with via
2021-10-11 22:28:21 +02:00
retrooper
47580f01a7
Decoder working, we need to call the mc decoder via reflection when Via is present, now time to work on Encoder
2021-10-11 22:08:02 +02:00
retrooper
105e52d5ac
Added Via support for decoder, still need to fix encoder.
2021-10-11 19:18:10 +02:00
retrooper
d60e7d9e0b
Remove redundant method
2021-10-10 21:23:50 +02:00
retrooper
9b9af06f53
Attempt to get a working CustomBukkitEncodeHandlerModern, but we can't ;c, viaversion, why do you have to be so CURSED!!!!111
2021-10-10 21:20:08 +02:00
retrooper
1abf538ecd
Publish api module, to allow jitpack to detect it as a sub-module
2021-10-10 18:48:10 +02:00
retrooper
473bb3a1c3
WrapperPlayServerEntityVelocity created
2021-10-10 18:32:41 +02:00
retrooper
49b9b139f2
Maybe fixed build scripts pt.2
2021-10-10 17:58:47 +02:00
retrooper
e34e806cad
Maybe fixed build scripts?
2021-10-10 17:25:28 +02:00
retrooper
565220fc99
Small changes to build scripts
2021-10-10 17:05:42 +02:00
retrooper
b5aaf2fddb
Test
2021-10-10 12:30:12 +02:00
retrooper
9df5da312e
Removed redundant info in the buildscripts of all subprojects
2021-10-10 11:40:40 +02:00
retrooper
3c3cc88042
Properly generated gradle wrapper
2021-10-10 11:30:28 +02:00
retrooper
397f133751
Wrapper task specified?
2021-10-10 11:21:31 +02:00
retrooper
e110acd59c
Removed most debug code;
...
PEVersion#clone fixed
2021-10-10 08:35:46 +02:00
retrooper
4ed541d65d
Some project cleanup
2021-10-09 23:12:08 +02:00
retrooper
baf1466ee2
Sadly can't use generics to assume Player type at compile time in listeners.
2021-10-09 23:01:18 +02:00
retrooper
abf447f5da
Updated some links
2021-10-09 20:43:37 +02:00
retrooper
c68ae24807
Small correction
2021-10-09 20:35:21 +02:00
retrooper
7b121172fe
Tested bukkit implementation, and it works!
2021-10-08 22:18:05 +02:00
retrooper
c9eff0f745
Added to gitignore
2021-10-08 21:44:27 +02:00
retrooper
0ae72246c3
More progress on implementing the API in bukkit module
2021-10-08 21:38:57 +02:00
retrooper
c1401f0eac
Fixed all known errors. Bukkit module fully implemented the api module, now time to test.
2021-10-08 21:21:19 +02:00
retrooper
8ea0c75081
PacketEventsBuilder progress
2021-10-08 18:11:45 +02:00
retrooper
e0a101c8db
More progress on multi-module project, made bukkit packetevents api builder
2021-10-08 15:36:54 +02:00
retrooper
3162ec6864
Some progress on the multi-module project, bukkit module doesn't compile yet though
2021-10-07 22:08:38 +02:00
retrooper
b7a1bfb072
Merge pull request #168 from Conclure/2.0
...
Fix :D
2021-10-07 20:57:20 +02:00
Conclure
c6d8af9024
Fix :D
2021-10-07 20:54:40 +02:00
retrooper
6157ca9e3b
Push forgotten files
2021-10-07 20:28:26 +02:00
retrooper
1cde4e16cb
Attempting to split project up into modules
2021-10-07 20:25:47 +02:00
retrooper
4bc2d08017
WrapperPlayServerSpawnEntity created;
...
Redundant comments removed;
2021-10-04 21:53:54 +02:00
retrooper
2511b7f850
WrapperPlayServerEntityStatus created
2021-10-04 18:11:50 +02:00
retrooper
8e283e6a1c
Much more WrapperPlayServerEntityMetadata progress
2021-10-03 22:21:09 +02:00
retrooper
c29146ee25
Progress on WrapperPlayServerEntityMetadata
2021-10-03 17:22:43 +02:00
retrooper
2840cf3146
WrapperPlayServerEntityProperties created;
...
WrapperPlayServerPlayerInfo.java bug fix
2021-10-03 15:45:13 +02:00
retrooper
98440415c4
Renamed BlockPosition.java to Vector3i.java
2021-10-03 15:05:13 +02:00
retrooper
44622140af
WrapperPlayServerExplosion created
2021-10-03 14:30:59 +02:00
retrooper
463c0920db
WrapperPlayServerBlockAction bug fixes and small changes;
...
WrapperPlayServerBlockBreakAnimation created
2021-10-03 12:57:12 +02:00
retrooper
272f27625e
Small corrections for WrapperPlayServerBlockAction;
...
WrapperPlayServerPlayerInfo finished, but untested;
2021-10-03 12:45:31 +02:00
retrooper
962cb6cd82
More progress on game profile utilities
2021-10-02 20:05:06 +02:00
retrooper
62f60ec815
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-10-02 19:52:18 +02:00
retrooper
eaf0a7226f
GameProfile utilities completed?
2021-10-02 19:52:00 +02:00
DefineOutside
7585420593
Fix cloning vectors
2021-09-29 13:49:39 -05:00
retrooper
68fe3e214a
Still figuring out how to fix our via decoder
2021-09-28 18:35:46 +02:00
retrooper
fa43163386
ProtocolSupport works again
2021-09-28 18:03:15 +02:00
retrooper
96625be5b1
Debugs removed
2021-09-27 21:58:46 +02:00
retrooper
df3eb01bc6
WrapperPlayClientSettings created;
...
Hand enum improved
2021-09-27 21:33:05 +02:00
retrooper
7a4092db32
WrapperPlayServerChangeGameState created;
...
WrapperPlayServerUpdateHealth created
2021-09-27 20:24:52 +02:00
retrooper
edda3adead
WrapperPlayServerDestroyEntities created;
...
WrapperPlayServerSetExperience created
2021-09-26 22:17:25 +02:00
retrooper
cf6321de5c
WrapperPlayServerEntityAnimation created;
...
Small wrapper API change;
2021-09-26 21:08:53 +02:00
retrooper
2a44f3c0e2
WrapperPlayClientPlayerDigging created
2021-09-26 20:59:57 +02:00
retrooper
500eb55aa7
Some API refactoring;
...
PacketTypeCommon#getID created;
2021-09-26 19:28:40 +02:00
retrooper
e10d5a17c4
Trying to add 1.16.5 support with chunk data packet :c
2021-09-26 15:48:27 +02:00
retrooper
f36d1f32b1
Almost finished WrapperPlayServerChunkData
2021-09-26 13:03:29 +02:00
retrooper
0256dc416c
Progress with WrapperPlayServerChunkData
2021-09-26 09:11:47 +02:00
retrooper
e77e428ba3
Project cleanup with IDE
2021-09-26 00:26:08 +02:00
retrooper
3ad9a75284
Progress for WrapperPlayServerChunkData
2021-09-26 00:24:37 +02:00
retrooper
3355b1c5ab
Clientbound packet type mappings for 1.16.2 fixed;
...
Progress on WrapperPlayServerChunkData;
API refactoring/cleanup
2021-09-25 23:14:34 +02:00
retrooper
9ad33aac0f
Progress on via encoder support
2021-09-23 21:25:10 +02:00
retrooper
d9ad6bc684
About to start working on supporting ViaVersion with a custom encoder.
2021-09-23 20:58:00 +02:00
retrooper
043dfb5a8b
Some API refactoring
2021-09-23 19:55:37 +02:00
retrooper
c2a218f067
WrapperPlayServerChunkData is being recoded;
...
1.17 PacketType server-sided mappings corrected
2021-09-23 18:46:35 +02:00
retrooper
2aefd88e5e
WrapperPlayServerChunkData is being recoded;
...
1.17 PacketType server-sided mappings corrected
2021-09-23 18:33:38 +02:00
retrooper
87223f8df1
Many methods in ServerManager now static
2021-09-22 21:19:49 +02:00
retrooper
794ad6b042
Progress on WrapperPlayServerChunkData
2021-09-22 20:40:24 +02:00
retrooper
0105d466bb
PacketWrapper#writeTag created
2021-09-22 18:39:11 +02:00
retrooper
9e28502620
More progress on WrapperPlayServerChunkData
2021-09-22 18:20:17 +02:00
DefineOutside
c958999476
Make ServerManager.getVersion() static
2021-09-21 17:29:23 -05:00
DefineOutside
903e0bdc3d
Replace PacketWrapperUtil
2021-09-21 17:23:35 -05:00
DefineOutside
408d35b25b
Fix block action ID
2021-09-21 16:31:42 -05:00
DefineOutside
01cf822f67
Block action wrapper
2021-09-21 16:18:46 -05:00
DefineOutside
055750e49e
Unload chunk wrapper
2021-09-21 15:57:41 -05:00
DefineOutside
088aa9b81b
Remove duplicate serverbound window confirmation packet
2021-09-21 15:52:58 -05:00
DefineOutside
1008f88f23
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# src/main/java/io/github/retrooper/packetevents/wrapper/play/client/WrappedGameClientWindowConfirmation.java
# src/main/java/io/github/retrooper/packetevents/wrapper/play/server/WrappedGameServerWindowConfirmation.java
2021-09-21 15:43:23 -05:00
DefineOutside
0e4ca3554e
Add the window confirmation packet
2021-09-21 15:43:06 -05:00
DefineOutside
221b901a81
Optimize ServerVersion
2021-09-21 15:09:44 -05:00
retrooper
3b3e0ad377
Progress on WrapperPlayServerChunkData, but not near done
2021-09-21 19:53:03 +02:00
retrooper
2b3145f497
WrapperPlayClientAdvancementTab created
2021-09-20 23:02:50 +02:00
retrooper
32bc08b986
WrapperPlayClientPickItem created
2021-09-20 22:47:06 +02:00
retrooper
834adb48eb
WrapperPlayClientWindowConfirmation created
2021-09-20 22:36:05 +02:00
retrooper
5403ce9d44
WrapperPlayClientTabComplete, WrapperPlayClientPlayerAbilities created
2021-09-20 22:24:23 +02:00
retrooper
80910efb00
WrapperPlayClientTeleportConfirm, WrapperPlayClientLockDifficulty created
2021-09-19 22:27:41 +02:00
retrooper
5cadf1224f
WrapperPlayClientNameItem created
2021-09-19 22:09:36 +02:00
retrooper
fa804557ed
ClientVersion#isResolved typo fixed
2021-09-19 22:03:35 +02:00
retrooper
dbd6efc987
ClientVersion never resolving issue fixed
2021-09-19 21:59:25 +02:00
retrooper
03f02079d8
WrapperPlayClientEntityAction created
2021-09-19 21:57:50 +02:00
retrooper
54ef96eaa1
Got some progress on our legacy handlers.
2021-09-19 19:53:08 +02:00
retrooper
7343cf757b
Now supporting legacy ViaVersion releases
2021-09-19 19:33:53 +02:00
retrooper
fb69f34821
Removed debugs
2021-09-19 18:33:29 +02:00
retrooper
f50464956b
WrapperPlayClientCloseWindow, WrapperPlayClientSelectTrade, WrapperPlayClientSetDifficulty created
2021-09-19 18:33:05 +02:00
retrooper
71886b503e
WrapperPlayClientSteerBoat and WrapperPlayClientVehicleMove created
2021-09-19 16:14:42 +02:00
retrooper
7606445e1e
WrapperPlayClientClickWindow created
2021-09-19 16:03:13 +02:00
retrooper
774a48103b
Stopped following vanilla mapping namings and started following wiki.vg's packet namings.
2021-09-19 13:36:15 +02:00
retrooper
a9469fed78
WrapperGameClientClientStatus created
2021-09-18 22:13:58 +02:00
retrooper
6e5787a9e1
Removed debugs
2021-09-18 21:45:36 +02:00
retrooper
0654796f82
Removed ProtocolLib redundant dependency in build.gradle
2021-09-18 21:43:33 +02:00
retrooper
63ddd56507
ProtocolSupport support added
2021-09-18 21:10:12 +02:00
retrooper
ac12d94448
Paper injector removed.
2021-09-18 20:56:15 +02:00
retrooper
9f845173de
ProtocolLib support added!!!!!
2021-09-18 20:49:29 +02:00
retrooper
1aa9bde676
Second attempt at ProtocolLib hook, but we get spammed with errors
2021-09-18 20:42:48 +02:00
retrooper
8c06f24cf4
Attempt at ProtocolLib hook, but we get an illegal access error :O
2021-09-18 18:54:47 +02:00
retrooper
a6625b0325
Got stuff working, but we face a ProtocolLib incompatibility
2021-09-18 14:00:18 +02:00
retrooper
106b74d901
Removed ProtocolLib stuff
2021-09-18 13:32:33 +02:00
retrooper
7b7d51dcee
PacketReceiveEvent and PacketSendEvent support constructors with ConnectionState specified to optimize always looking them up in the map
2021-09-18 13:29:26 +02:00
retrooper
53012ee386
Third attempt to support Via, need to figure out why CustomBukkitDecodeHandler isn't receiving any bytebufs?
2021-09-18 13:23:09 +02:00
retrooper
dcf1b7a6d8
Revert "Attempt to support ViaVersion, obviously not complete, working on fixing issues."
...
This reverts commit b2294d405e .
2021-09-18 13:05:23 +02:00
retrooper
49cdc7bf79
Revert "Second attempt to support Via, packets still end up being larger than the server expects?"
...
This reverts commit 8abf92420a .
2021-09-18 13:05:15 +02:00
retrooper
8abf92420a
Second attempt to support Via, packets still end up being larger than the server expects?
2021-09-17 22:04:06 +02:00
retrooper
b2294d405e
Attempt to support ViaVersion, obviously not complete, working on fixing issues.
2021-09-17 19:27:23 +02:00
retrooper
5d708e3195
Add NBT abstraction (not used yet)
2021-09-14 21:49:16 +02:00
retrooper
dde3a49925
We came this far, when leaving the server an exception is thrown, ProtocolLib just floods us with errors, this caused more issues than before, we might have to go with the Via like approach if via is available.
2021-09-14 21:45:47 +02:00
retrooper
639abb53ff
Cleanup
2021-09-14 21:02:12 +02:00
retrooper
7a511eec7c
Fixed issues with all wrappers.
2021-09-14 20:16:06 +02:00
retrooper
05e7b33376
ProtocolLib incompatibilities partially fixed, we still need to handle disconnection index out of bounds errors and ViaVersion's attempt at PLIB support
2021-09-14 17:51:18 +02:00
retrooper
2d8b10888d
Our decoder is finally behind ViaVersion, just facing ProtocolLib incompatibilities
2021-09-14 17:23:29 +02:00
retrooper
4fdaece1df
PacketWrapper#readItemStack progress, but not done, it only supports clients that have same protocol version as the server
2021-09-10 23:00:52 +02:00
retrooper
6bce3cc847
Some changes (lazy to document)
2021-09-07 17:44:57 +02:00
retrooper
b8c9760275
Lots of refactoring;
...
Documented some wrappers;
Working on PacketWrapper#readItemStack;
Import optimization;
Code cleanup
2021-09-06 13:34:21 +02:00
retrooper
7c0c845a3d
WrapperGameClientResourcePackStatus created
2021-09-04 01:19:47 +02:00
retrooper
678adda106
WrapperGameClientHeldItemChange created
2021-09-04 01:01:39 +02:00
retrooper
180a7cd505
WrapperGameServerDisconnect created
2021-09-04 00:54:57 +02:00
retrooper
68f0053b9b
WrapperGameServerSpawnLivingEntity created, but incomplete, We need to make our own EntityType enum. (and map all ids per version);
...
Small fixing in PacketTypes, cleaned up some duplicate types.
2021-09-04 00:39:38 +02:00
retrooper
5139f8a38f
Removed debugs.
2021-09-03 19:16:33 +02:00
retrooper
68ff049691
ServerManager#receivePacket works better now.
2021-09-03 19:13:55 +02:00
retrooper
30836c6714
ServerManager#receivePacket works, but has a performance cost.
2021-09-03 18:53:56 +02:00
retrooper
1ce86f7e63
Realized the build issue was jitpack's fault
2021-09-03 17:23:31 +02:00
retrooper
ec4f44f215
Trying to fix build issues for jitpack pt. 4
2021-09-03 17:19:29 +02:00
retrooper
3b48c18e9a
Trying to fix build issues for jitpack pt. 3
2021-09-03 17:17:02 +02:00
retrooper
db3a6e3076
Trying to fix build issues for jitpack pt. 3
2021-09-03 17:16:48 +02:00
retrooper
4848a4c078
Trying to fix build issues for jitpack pt. 2
2021-09-03 17:15:13 +02:00
retrooper
8f550a67d6
Trying to fix build issues for jitpack
2021-09-03 17:12:45 +02:00
retrooper
fb01545c1b
All wrappers from now on must be sendable.
...
Still need to work on sending client-sided packets.
2021-09-03 15:49:12 +02:00
retrooper
2f572dc3ac
Made the client-side wrappers sendable.
2021-09-03 15:19:31 +02:00
retrooper
da8126d62e
Small cleanup
2021-09-03 14:33:40 +02:00
retrooper
c3993c3e6e
PacketEventsSettings#lock removed;
2021-09-03 14:30:49 +02:00
retrooper
587fb09f4d
All wrappers can now modify data. Created setters for all current wrappers.
2021-09-03 14:18:10 +02:00
retrooper
dc6b457e2d
PacketSendEvent#getPostTask created
2021-09-01 15:07:47 +02:00
retrooper
64606f5cb8
Worked on 1.7.10 handlers. Still need to test them.
2021-08-31 22:53:05 +02:00
retrooper
eca616f9a9
Added required license notices for each file.
2021-08-31 22:41:07 +02:00
retrooper
4f25bfcde3
PacketSendEvent actually gets cancelled in our modern encoder.
2021-08-31 22:07:02 +02:00
retrooper
03a437fb7f
Corrected the credit. We give credit to all projects that help build up our cross-version injector.
2021-08-31 20:40:47 +02:00
retrooper
9e4a56e936
Optimize all imports.
2021-08-31 20:26:41 +02:00
retrooper
b39f3daf97
PlayerManager#sendPacket now works with ProtocolSupport;
...
PacketListener and PacketListenerReflect exist;
2021-08-31 20:23:51 +02:00
retrooper
158d2a9ea9
WrapperGameClientChatMessage#setMessage created, not efficient, but works for now;
...
WrapperGameServerChatMessage bug fix;
2021-08-31 10:55:38 +02:00
retrooper
96c53be358
Injector fixed for 1.11.2 server versions and lower.
2021-08-29 14:20:35 +02:00
retrooper
56459dcf5a
We are having issues on 1.9 with our injector. About to do changes.
...
WrapperGameClientSetBeaconEffect created;
2021-08-29 13:30:40 +02:00
retrooper
5c370d13ae
Small cleanup;
2021-08-29 11:34:07 +02:00
retrooper
ed61e4f968
PacketWrapper#readString cleanups
2021-08-29 11:02:37 +02:00
retrooper
e23fdc09b9
Wrappers support a constructor taking in an event.
2021-08-29 10:57:17 +02:00
retrooper
f6ca0e0ec4
WrapperGameServerChatMessage created;
2021-08-28 23:04:53 +02:00
retrooper
bec616d924
Worked on sendable wrapper abstraction;
...
ByteBufAbstract#writeBytes(byte[]) created;
WrapperGameServerHeldItemChange created;
All other clientbound wrappers are now sendable.
2021-08-28 20:38:52 +02:00
retrooper
1b03192d09
We now support processing packets while ProtocolSupport is present. Sending packets while ProtocolSupport is present doesn't seem to work.
2021-08-28 18:18:00 +02:00
retrooper
9b455654c7
Reverted to a working commit.
2021-08-27 09:40:33 +02:00
retrooper
1af9dde7bb
Working on supporting sending packets. We currently get a decoderexception.
2021-08-27 09:34:07 +02:00
retrooper
fcb607399d
Revert "ProtocolSupport support added, but we are still behind protocolsupport until we receive the handshake packet unfortunately, would be great if we could always be before them."
...
This reverts commit dae2419cef .
2021-08-27 09:25:07 +02:00
retrooper
d181269171
Revert "Working on supporting sending packets. We currently get a decoderexception."
...
This reverts commit 130d711640 .
2021-08-26 23:08:39 +02:00
retrooper
cb6d7d96b3
Revert "Added some debugs to our injector, considering changing our injection approach."
...
This reverts commit 3ffdc6aa79 .
2021-08-26 23:08:12 +02:00
retrooper
3ffdc6aa79
Added some debugs to our injector, considering changing our injection approach.
2021-08-26 10:46:36 +02:00
retrooper
130d711640
Working on supporting sending packets. We currently get a decoderexception.
2021-08-25 22:36:29 +02:00
retrooper
dae2419cef
ProtocolSupport support added, but we are still behind protocolsupport until we receive the handshake packet unfortunately, would be great if we could always be before them.
2021-08-25 21:06:34 +02:00
retrooper
b4e2eb76b5
Encoder bug fix.
2021-08-25 17:09:56 +02:00
retrooper
e4768096b2
Project code cleanup with IDE (Optimize imports, etc);
...
Added legacy netty import (1.7.10 spigots) support to our decoders and encoders.
2021-08-25 17:01:52 +02:00
retrooper
505531f8e5
Created lots of netty abstraction.
2021-08-25 16:04:09 +02:00
retrooper
47f5768474
EventManager cleanup;
...
GlobalChannelInjector fixed;
2021-08-25 10:40:38 +02:00
retrooper
898c4a1a40
WrapperGameClientInteractEntity created;
...
Some debugs removed;
compatInjector setting removed;
2021-08-25 10:22:35 +02:00
retrooper
57e6beb904
Our encoder and decoder are officially working.
2021-08-25 09:07:37 +02:00
retrooper
e09080436b
Working on some stuff.
2021-08-24 22:13:30 +02:00
retrooper
6862cda387
Some progress on supporting the decompressor with our decoder.
2021-08-24 19:58:24 +02:00
retrooper
5c4ac0a0fa
Small cleanup
2021-08-24 16:40:54 +02:00
retrooper
8e577eedf0
Sort of reverted the encoder and decoder to their initial form.
2021-08-24 15:42:19 +02:00
retrooper
442d171cfc
Encoder pretty empty
2021-08-24 15:16:45 +02:00
retrooper
df85c00175
Did some testing, did not manage to complete encoder, reverting some stuff.
2021-08-24 13:39:26 +02:00
retrooper
3af610bb73
Progress on encoder, we can finally successfully switch to the game state, now we need to work on processing game packets, some are compressed, some aren't.
2021-08-24 12:38:26 +02:00
retrooper
2708f00556
Working on our decoder and encoder, many changes, this is not stable. Just a progress/safety commit.
2021-08-23 22:25:59 +02:00
retrooper
510a5a8d09
Corrections
2021-08-23 21:14:47 +02:00
retrooper
2b184e6ce7
Small change.
2021-08-23 14:39:43 +02:00
retrooper
a68df54ffe
Some bug fixing.
2021-08-23 14:33:09 +02:00
retrooper
a8233b492a
Worked on fixing our decoder, still working on fixing our encoder.
2021-08-22 22:22:22 +02:00
retrooper
20cbdef83c
PacketType.Game.Server optimized
2021-08-22 13:46:52 +02:00
retrooper
13a1ae1069
Small build.gradle cleanup
2021-08-22 10:22:16 +02:00
retrooper
7fd63d30c9
PacketListenerPriority renamed to Priority
2021-08-22 09:18:43 +02:00
retrooper
6396545364
PacketType abstraction reverted and modified. This is the better approach.
2021-08-22 09:16:29 +02:00
retrooper
d7b03dd947
Revert "PacketType abstraction improved, still need to test."
...
This reverts commit a1d20a7b7c .
2021-08-22 09:14:56 +02:00
retrooper
a1d20a7b7c
PacketType abstraction improved, still need to test.
2021-08-22 00:12:10 +02:00
retrooper
433c49e6be
Some small cleanup
2021-08-22 00:02:01 +02:00
retrooper
3eea564cba
Hopefully got rid of the IDE specific files and gradle build files.
2021-08-21 23:49:31 +02:00
retrooper
a6b6ade573
MinecraftReflection cleanup
2021-08-21 22:35:41 +02:00
retrooper
70658b952c
PacketType.Handshaking.Client.LEGACY_SERVER_LIST_PING created
2021-08-21 22:33:15 +02:00
retrooper
2b8130d2e7
Event abstraction cleanup;
...
PacketListenerPriority refactored;
2021-08-21 21:51:34 +02:00
retrooper
969d218519
Documented more wrappers.
2021-08-21 20:47:31 +02:00
retrooper
af7f7baa57
Started documenting some server-bound game wrappers.
2021-08-20 22:15:41 +02:00
retrooper
387e521019
Cleaned up MinecraftReflection; Deleted some unneeded classes
2021-08-20 21:55:12 +02:00
retrooper
0da5ddbe6c
Progress on encoder, only status packets can be listened to, made some samples and some corrections to our code.
2021-08-20 16:56:52 +02:00
retrooper
cfa1c4c076
All wrapper's constructors are now consistent;
...
PacketType#Play -> PacketType#Game;
PacketState#PLAY -> PacketState#GAME
2021-08-17 08:13:44 +02:00
retrooper
9460812be5
WrapperGameClientAnimation corrected;
2021-08-16 22:53:34 +02:00
retrooper
a2c4ffc1a9
WrapperGameClientAnimation created;
...
WrapperGameClientClickWindowButton created;
WrapperGameClientGenerateStructure created;
WrapperLoginClientEncryptionResponse fixed;
WrapperLoginClientPluginResponse fixed;
2021-08-16 22:45:34 +02:00
retrooper
260c67ba8d
Merge remote-tracking branch 'origin/2.0' into 2.0
2021-08-16 21:55:17 +02:00
retrooper
8c41a24bb7
Added missing ClientboundPacketType_1_12
2021-08-16 21:54:19 +02:00
retrooper
60399cfb01
Corrected credit in README
2021-08-16 08:47:45 +00:00
retrooper
3294495bda
Merge branch '2.0' of https://github.com/retrooper/packetevents into 2.0
2021-08-14 20:53:08 +02:00
retrooper
1583b1e0a3
New attempt at encoder.
2021-08-14 20:51:44 +02:00
retrooper
7f635d46e1
Update README.md
2021-08-14 14:14:06 +02:00
retrooper
55b38b499a
Finished client-bound packet types. Still need to test.
2021-08-13 21:18:50 +02:00
retrooper
8b13cd2dad
Calling via's decoder doesn't work?
2021-08-12 12:18:57 +02:00
retrooper
fa824c9ebd
Attempt at encoder, does not work, trying something else.
2021-08-12 11:38:44 +02:00
retrooper
c418ddfd1c
Lots of project cleanup.
2021-08-11 20:26:30 +02:00
retrooper
c753839df7
Progress to server-bound packet types.
2021-08-11 19:23:17 +02:00
retrooper
ae1df7e2a1
Fixed some PacketType confusion.
2021-08-11 14:33:11 +02:00
retrooper
b341df4098
Small cleanup, still some confusion with 1.16.5 and 1.16.4 having some different packet ids?
2021-08-11 13:56:49 +02:00
retrooper
9339bdb428
More cleanup to PacketTypes
2021-08-11 13:40:22 +02:00
retrooper
8d79248c0b
All serverbound packet types finished. Need to work on clientbound PLAY ones.
2021-08-11 13:34:13 +02:00
retrooper
140b432364
PacketType abstraction and cleanup, still need to test
2021-08-11 12:12:53 +02:00
retrooper
75e45dbc52
Removed some gradle files hopefully
2021-08-11 11:48:26 +02:00
retrooper
63c6207d71
PacketType bug fix;
...
Add .gradle to gitignore
2021-08-11 11:46:58 +02:00
retrooper
b6dd3e0e82
Remove .idea files
2021-08-11 11:04:09 +02:00
retrooper
dca5fc6a4b
Custom decoder should now work on 1.7.10 too.
2021-08-11 11:02:57 +02:00
retrooper
a0765b7169
Merge remote-tracking branch 'abhi289/dev' into 2.0
...
# Conflicts:
# .gradle/7.0/executionHistory/executionHistory.bin
# .gradle/7.0/executionHistory/executionHistory.lock
# .gradle/7.0/fileHashes/fileHashes.bin
# .gradle/7.0/fileHashes/fileHashes.lock
# .gradle/7.0/javaCompile/classAnalysis.bin
# .gradle/buildOutputCleanup/buildOutputCleanup.lock
# .gradle/checksums/checksums.lock
# src/main/java/io/github/retrooper/packetevents/packetwrappers/play/out/setslot/WrappedPacketOutSetSlot.java
# src/main/java/io/github/retrooper/packetevents/packetwrappers/play/out/spawnentityliving/WrappedPacketOutSpawnEntityLiving.java
2021-08-11 10:36:33 +02:00
retrooper
ea7b9b432a
Serverbound packet types finished.
2021-08-11 10:28:11 +02:00
retrooper
4c57e37807
"Bad packet xyz" issue, still need to fix, check via discord
2021-08-10 23:16:11 +02:00
retrooper
fc526ae232
ViaVersion now works with packetevents on paper! Need to test on spigot and need to test older via versions and add protocolsupport support.
2021-08-10 22:29:06 +02:00
retrooper
dc46c8b5ea
Back to old replacing injector, we need to try initialize our channelinitializer BEFORE viaversion.
2021-08-10 21:05:22 +02:00
retrooper
5f78d2d059
PacketSplitter replacing attempt when making a decoder did NOT WORK :c
2021-08-10 20:45:20 +02:00
retrooper
341f6632f5
Merge pull request #157 from LIWKK/patch-29
...
Update ViaVersionLookupUtils.java
2021-08-10 11:01:42 +02:00
retrooper
0cf894567f
Removed debug
2021-08-10 10:58:01 +02:00
Johannes
2cf93d6e17
Update ViaVersionLookupUtils.java
2021-08-09 20:17:24 +03:00
retrooper
651c4a9955
Small adjustments to the decoder, we realized we are receiving invalid packets and passing invalid packets onto the next handlers. We need to figure out why we are getting invalid packets.
2021-08-09 17:52:16 +02:00
retrooper
9bfab5d899
Small cleanup
2021-08-09 10:04:15 +02:00
retrooper
99b24b7ad1
Working on injector with ViaVersion support. We get a ViaVersion exception
2021-08-08 13:44:40 +02:00
retrooper
db9025dcea
Progress working on injector.
2021-08-08 12:08:58 +02:00
retrooper
4bbf43e83e
Build issue fixed
2021-08-08 08:10:19 +02:00
retrooper
bcd60977f5
WrappedPacketOutSetSlot now works on 1.17.1
2021-08-08 08:00:11 +02:00
retrooper
b3729ad078
WrapperLoginServerLoginSuccess corrected;
...
WrapperGameClientKeepAlive completed;
WrapperGameClientPong completed;
WrapperGameClientSpectate completed;
2021-08-06 14:48:32 +02:00
retrooper
709812d307
WrapperGameClientChatMessage complete
2021-08-05 23:22:02 +02:00
retrooper
fd7f0282a5
WrapperGameClientUpdateSign finished
2021-08-05 23:03:29 +02:00
retrooper
39be921ae8
Fixed issues with PluginMessage wrappers
2021-08-05 13:37:28 +02:00
retrooper
d1c9d55158
Some exception refactoring
2021-08-05 12:09:20 +02:00
retrooper
0f887d3e7e
Some refactoring and cleaning up, some recoding.
2021-08-05 12:08:24 +02:00
retrooper
67a89e2578
Few renamings
2021-08-05 11:55:12 +02:00
retrooper
038933e978
All login and status wrappers created
2021-08-05 11:34:51 +02:00
retrooper
ca2003b644
Some changes
2021-08-05 08:41:58 +02:00
retrooper
d68e69ffdf
Improved some wrappers.
2021-08-05 07:21:21 +02:00
abhiram555
db1b73ca6e
Wrote few wrappers for client login
2021-08-05 01:15:08 +05:30
abhiram555
e69739be72
Added Client Ping Packet Wrapper
2021-08-05 00:39:36 +05:30
abhiram555
c33681e3be
Fix PacketDecodeEvent cancelling
2021-08-05 00:07:04 +05:30
retrooper
7c04d9ea7c
WrapperLoginClientLoginStart finished
2021-08-04 20:33:47 +02:00
retrooper
b97454dbde
Merge branch 'dev' of https://github.com/abhiram555/packetevents into abhi-dev
2021-08-04 19:52:24 +02:00
abhiram555
1ba5442d0c
Fixed Lagacy decoder too
2021-08-04 23:21:58 +05:30
abhiram555
7e59b91723
Added a packet wrapper for CustomPayload
2021-08-04 23:18:23 +05:30
abhiram555
9b88efec36
Properly fix the decoder
2021-08-04 22:59:32 +05:30
abhiram555
9678ef523a
Fix the decoder
2021-08-04 22:06:30 +05:30
retrooper
fe3664e8fa
Attempt to create some bytebuf wrappers, they don't really work. Did some API cleanup, removed deprecations.
2021-08-04 11:13:10 +02:00
retrooper
3ed2656935
Deleted many classes, looking to recode most of them or just remove them. They aren't needed anymore. Working with new bytebuf system.
2021-08-03 22:52:40 +02:00
retrooper
dc354330fb
Build changes
2021-08-03 21:45:01 +02:00
retrooper
24cefaeeff
Small cleanup, trying to find issue with weird values from bytebufs (when you haven't reloaded)
2021-08-03 18:49:56 +02:00
retrooper
897d7d035d
Duplicate the bytebuf for PacketDecodeEvent so the next handler doesn't end up with an empty bytebuf
2021-08-03 18:05:00 +02:00
retrooper
b4132946c9
Build issues?
2021-08-03 16:57:16 +02:00
retrooper
7e3a2a2875
Early injector duplicate decoder issue fixed
2021-08-03 16:55:15 +02:00
retrooper
c28e8cd732
Small changes
2021-08-03 15:35:59 +02:00
retrooper
e39e86966c
Added getPlayer to PacketDecodeEvent, applied ByteBufAbstract, Still need to test
2021-08-03 13:40:42 +02:00
retrooper
90b2f6444d
ByteBuf abstraction finished, now time to apply it.
2021-08-03 13:03:47 +02:00
retrooper
8a754af137
Progress on ByteBuf abstraction so we can support both 1.7.10 and newer versions.
2021-08-03 11:17:07 +02:00
retrooper
3c899e41b5
Adding some build files
2021-08-03 10:59:48 +02:00
retrooper
3653c9b07a
Merge pull request #154 from MWHunter/viaversionclientversion
...
Fix getting player version for the first time with ViaVersion
2021-08-03 10:48:27 +02:00
abhiram555
340e10ff6d
Remove .gradle
2021-08-02 20:58:06 +05:30
DefineOutside
c667980997
Fix getting player version for the first time with ViaVersion
2021-08-02 10:22:29 -05:00
abhiram555
37517af695
Project Cleanup
2021-08-02 20:32:21 +05:30
abhiram555
33fcf6105a
Project Cleanup
2021-08-02 20:17:50 +05:30
abhiram555
8cf9af3024
Project files cleanup
2021-08-02 20:15:49 +05:30
abhiram555
eed8409e4b
Added PacketDecoder on lagacy minecraft
2021-08-02 20:12:29 +05:30
abhiram555
bd193e4be2
Removed IJ files
2021-08-02 16:19:40 +05:30
abhiram555
87c73392eb
Added PacketDecodeEvent for modern minecraft version's
2021-08-02 16:18:51 +05:30
retrooper
df29b947a6
ViaVersion linkage error hopefully fixed
2021-08-02 10:48:10 +02:00
retrooper
55c3b9a446
Removed debugs when ViaVersion is present
2021-07-28 20:27:07 +02:00
retrooper
76ad95c63a
PlayerUtils#writePacket and PlayerUtils#flushPackets created
2021-07-23 12:21:32 +02:00
retrooper
e7235f1ef7
Fixed WrappedPacketInCustomPayload#getChannelName always returning "minecraft:brand" on 1.13+ server versions.
2021-07-21 22:16:02 +02:00
retrooper
1e26293c51
Extra NMS class added
2021-07-20 19:49:37 +02:00
retrooper
84f9bbf207
Removed invalid enum constants in ServerVersion
2021-07-20 13:59:32 +02:00
retrooper
40e13755ff
NPC#teleport
2021-07-15 13:00:54 +02:00
retrooper
093c45609c
Removed license notice from build files
2021-07-14 23:21:05 +02:00
retrooper
06d4333524
Copied Bukkit's BoundingBox util;
...
Fixed getEntityBoundingBox bugs on some newer server versions;
Corrected license notice in some files;
2021-07-14 23:15:37 +02:00
retrooper
78773c3a7b
WrappedPacketOutSpawnEntity created;
...
Fixed incompatibilities with future ViaVersion versions(stopped using legacy API);
2021-07-14 21:58:24 +02:00
retrooper
bd36cae8d0
ServerUtils#getEntityBoundingBox created
2021-07-14 21:08:26 +02:00
retrooper
2babb1ac44
Merge remote-tracking branch 'origin/dev' into dev
2021-07-14 12:13:30 +02:00
retrooper
e29a15db7e
Fixed sending WrappedPacketOutPosition for 1.9 -> 1.16.5
2021-07-14 12:13:22 +02:00
retrooper
bb87ce9e77
Merge pull request #146 from MWHunter/fixserverversion
...
Fix ServerVersion#isNewerThan
2021-07-14 01:28:54 +02:00
DefineOutside
b2b7687b33
Fix ServerVersion comparison
2021-07-13 18:13:16 -05:00
retrooper
d182f9bd5b
WrappedPacketInCustomPayload#getTag -> WrappedPacketInCustomPayload#getChannelName;
...
WrappedPacketOutCustomPayload#getTag -> WrappedPacketOutCustomPayload#getChannelName;
WrappedPacketLoginOutCustomPayload#getTag -> WrappedPacketLoginOutCustomPayload#getChannelName;
The channel name now also contains the namespace on newer server versions, it can be "minecraft:brand" on newer server versions instead of just "brand". Older versions such as 1.8 always had the namespace. I just made the names consistent. This is a sort of breaking change, thats why I didn't end up deprecating getTag, i want you guys to be aware of the breaking change.
2021-07-13 22:53:41 +02:00
retrooper
ab4dba254d
Code cleanup
2021-07-13 14:03:11 +02:00
retrooper
380b1e9a73
Merge pull request #143 from MWHunter/destroyattempttwo
...
Fix reading destroy packet on 1.17
2021-07-13 13:47:41 +02:00
retrooper
395cb6a6b7
WrappedPacketOutEntityDestroy now has 1.17.1 and has been cleaned up.
2021-07-13 13:47:27 +02:00
retrooper
e3a6bec0ae
Merge pull request #145 from MWHunter/useItem
...
Add WrappedPacketInUseItem
2021-07-13 13:17:01 +02:00
retrooper
8cd52c4f4d
WrappedPacketInUseItem completed;
...
WrappedPacketInBlockPlace_1_9 optimized;
2021-07-13 13:16:31 +02:00
retrooper
ef758b4ee3
Merge remote-tracking branch 'origin/dev' into dev
2021-07-13 12:57:51 +02:00
retrooper
a75ad0e58e
Small change
2021-07-13 12:57:34 +02:00
DefineOutside
2d282bee8e
Add WrappedPacketInUseItem
2021-07-11 18:14:35 -05:00
DefineOutside
4b30678d6b
Fix reading entity destroy on 1.17.1
2021-07-10 14:22:15 -05:00
retrooper
70ae66df17
Merge pull request #142 from MWHunter/flying
...
Fix FLYING packet on 1.17
2021-07-10 21:21:05 +02:00
retrooper
0a98140a1c
Merge pull request #141 from MWHunter/dev
...
Fix WrappedPacketOutMapChunk for 1.17 void chunks
2021-07-10 21:18:55 +02:00
DefineOutside
2ce25c24ee
Fix FLYING packet on 1.17
2021-07-10 13:57:23 -05:00
DefineOutside
f27688c89f
Fix WrappedPacketOutMapChunk for 1.17 void chunks
2021-07-10 12:07:39 -05:00
retrooper
e287e63c58
WrappedPacketOutCollect fixed when attempting to send on 1.11+
2021-07-09 11:35:25 +02:00
retrooper
6a44c3edbf
Merge branch 'dev' of https://github.com/retrooper/packetevents into dev
...
Conflicts:
.gradle/7.0/executionHistory/executionHistory.bin
.gradle/7.0/executionHistory/executionHistory.lock
.gradle/7.0/fileHashes/fileHashes.bin
.gradle/7.0/fileHashes/fileHashes.lock
.gradle/buildOutputCleanup/buildOutputCleanup.lock
.gradle/checksums/checksums.lock
2021-07-09 07:34:48 +02:00
retrooper
cd28ced0c7
Merge pull request #138 from Tecnio/dev
...
Added WrappedPacketOutCollect
2021-07-09 07:32:41 +02:00
retrooper
b05496db09
Fixed WrappedPacketOutCollect bugs and improved.
2021-07-09 07:31:14 +02:00
Tecnio
c914ccbb90
Added WrappedPacketOutCollect
2021-07-09 04:49:00 +03:00
retrooper
a236fb5523
packetevents 1.8-pre-17
2021-07-08 15:24:32 +02:00
retrooper
1768ea518e
Official packetevents 1.8-pre-17
2021-07-08 13:42:17 +02:00
retrooper
0c7f185174
WrappedPacketOutMapChunk#getPrimaryBitMap deprecated, it was a typo
2021-07-08 13:40:30 +02:00
retrooper
2d8cf55985
WrappedPacketOutMapChunk#getPrimaryBitMaskBitSet created for 1.17, WrappedPacketOutMapChunk#getPrimaryBitMask won't say empty on 1.17 XD
2021-07-08 13:35:49 +02:00
retrooper
15e746687a
packetevents 1.8-pre-17
2021-07-08 13:13:33 +02:00
retrooper
ee9a870144
New Packet IDs for packets added in 1.17
2021-07-08 13:10:10 +02:00
retrooper
932ef480b5
Build issues fixed
2021-07-07 05:47:45 +02:00
retrooper
41125cee92
ServerVersion#v_1_17_1 created;
...
ClientVersion#v_1_17_1 created;
ConcurrentModificationException when calling getEntityById method fixed;
2021-07-07 05:08:42 +02:00
retrooper
a9585a1117
Wrapper bug fixes for 1.17.
2021-07-06 20:06:40 +02:00
retrooper
5aaee6fb63
Much more efficient entity ID caching.
2021-07-02 12:57:09 +02:00
retrooper
8722dd0c34
WrappedPacketInUseEntity fixed for Paper;
...
WrappedPacketOutRemoveEntityEffect fixed for 1.17;
2021-07-01 23:00:19 +02:00
retrooper
267468f731
StackOverflow when calling getEntityById fixed;
2021-07-01 12:24:07 +02:00
retrooper
610975b957
Fixed duplicate-handler exception on server reloads.
2021-06-30 22:11:58 +02:00
retrooper
f09617b2c2
PacketEvents.get().getServerUtils().getEntityById(@Nullable World world, int entityID) created;
...
WrappedPacketEntityAbstraction#getEntity Asynchronous Chunk getEntities call exception on 1.17 fixed;
WrappedPacketOutMapChunk#getChunkX and WrappedPacketOutMapChunk#getChunkZ fixed on 1.17
2021-06-30 21:53:57 +02:00
retrooper
96a3de9744
Caching the entity id of players when they join the server
2021-06-29 19:15:01 +02:00
retrooper
78f88fcede
Fixed WrappedPacketOutEntity and WrappedPacketOutNamedEntitySpawn;
...
NPC API inconsistencies fixed;
2021-06-28 23:15:17 +02:00
retrooper
612a9c318f
WrappedPacket#readGameMode, WrappedPacket#writeGameMode fixed
2021-06-26 12:58:26 +02:00
retrooper
d1bf9a09ae
Debugs removed.
2021-06-22 20:34:36 +02:00
retrooper
6e01c76e24
Fixed PacketType.Play.Client.POSITION, POSITION_LOOK and LOOK on 1.7.10
2021-06-21 20:34:59 +02:00
retrooper
ccf401ff6d
Potential memory leaks fixed.
2021-06-20 21:28:19 +02:00
retrooper
6b86d7fdc6
Fixed WrappedPacketEntityAbstraction#getEntity, we cache entity ID ourself. We need to do some performance tests. (looking at main-threa d load and TPS);
...
WrappedPacketOutMapChunk bug fix on 1.8.x
2021-06-20 20:15:09 +02:00
retrooper
de3988ca29
Progress to fixing WrappedPacketEntityAbstraction#getEntity
2021-06-18 22:41:59 +02:00
retrooper
0b35e5ae5f
Build issue fix.
2021-06-18 17:49:49 +02:00
retrooper
007f1030a9
All accessible packet-wrappers should be usable on 1.17.
2021-06-18 17:07:06 +02:00
retrooper
938f9184b2
1.17 support for some more client-bound packet-wrappers.
2021-06-17 21:09:13 +02:00
retrooper
4c0c57ace6
WrappedPacketInBlockPlace bug fix
2021-06-17 15:19:47 +02:00
retrooper
af4906396b
Build issues fixed.
2021-06-16 21:26:49 +02:00
retrooper
3a68338da4
1.17 support to more client-bound packet-wrappers
2021-06-16 20:34:52 +02:00
retrooper
bb195f28ec
NPC.java bug fixes and cleaned up
2021-06-16 19:18:44 +02:00
retrooper
bd0d9cc528
PacketType corrections
2021-06-16 17:57:25 +02:00
retrooper
39756e4490
1.17 support for some more client-bound packet-wrappers;
...
WrappedPacketInJigsawGenerate package corrected;
2021-06-16 07:30:16 +02:00
retrooper
d406506189
1.17 support for some more client-bound packet-wrappers;
...
WrappedPacketOutAnimation optimized and bug fixes (especially fake entity support)
2021-06-15 22:25:36 +02:00
retrooper
9de94b79be
Fixed some PacketTypes;
2021-06-13 19:30:55 +02:00
retrooper
5cded7923a
Some client-bound packet-wrappers now support 1.17!
2021-06-13 14:47:52 +02:00
retrooper
8c6adafebc
Most functionality in server-bound packet-wrappers should work on 1.17, WrappedPacketInUseEntity might still need some completing.
2021-06-13 09:33:53 +02:00
retrooper
39cd41a2d3
Added 1.17 support to some more server-bound packet-wrappers;
...
License/Copyright holder notice in some injector classes corrected;
2021-06-12 22:27:59 +02:00
retrooper
37feadb421
Many server-bound play wrappers now support 1.17.
2021-06-11 21:48:45 +02:00
retrooper
34c079d757
All status, handshake and login packets support 1.17. Play packets remaining.
2021-06-11 20:37:20 +02:00
retrooper
bd52d59801
PacketType.Play.Client.PONG, PacketType.Server.PING added (last commit actually);
...
Player#getNMSPing 1.17 support (last commit actually);
WrappedPacketInPong created;
WrappedPacketOutPing created;
WrappedPacketInFlying#hasPositionChanged deprecated, use isMoving;
WrappedPacketInFlying#hasRotationChanged deprecated, use isRotating;
2021-06-11 19:27:42 +02:00
retrooper
015038c9b6
Added support for the critical 1.17 NMS breaking changes.
2021-06-11 18:17:27 +02:00
retrooper
18a5656991
official pre-16
2021-06-10 21:47:51 +02:00
retrooper
bedecfd575
Some TODO comments removed.
2021-06-10 21:40:36 +02:00
retrooper
7aca5a9f13
WrappedPacketInFlying#getX, getY, getZ, setX, setY, setZ added, but deprecated (for compatibility with old API)
2021-06-10 21:30:40 +02:00
retrooper
344bb27fbf
PacketPlaySendEvent#setPostTask created;
...
PacketLoginSendEvent#setPostTask created;
PacketStatusSendEvent#setPostTask created;
PlayerUtils#changeSkinProperty created;
Updated to PacketEvents-pre-16
2021-06-10 20:59:07 +02:00
retrooper
74dd8b74b5
PacketListenerPriority package relocated;
2021-06-10 19:11:24 +02:00
retrooper
1e113a0938
ServerVersion#v_1_17 created;
...
ClientVersion#v_1_17 created
2021-06-09 18:31:14 +02:00
retrooper
a0a010e842
WrappedPacketOutWindowItems created, but untested;
2021-06-08 20:36:41 +02:00
retrooper
8be91a0dc3
PlayerUtils#isGeyserPlayer(Player) created;
...
PlayerUtils#isGeyserPlayer(UUID) created;
ServerUtils#isGeyserAvailable created;
PlayerUtils#getNMSPing(Player) deprecated;
PlayerUtils#getSmoothedPing(Player) deprecated;
PlayerUtils#getSmoothedPing(UUID) deprecated;
PlayerUtils#getPing(UUID) deprecated;
Use PlayerUtils#getPing(Player) for ping;
2021-06-07 21:33:25 +02:00
retrooper
14405dfb7f
WrappedPacketInFlying#getPosition and setPosition created;
...
WrappedPacketInFlying#isPosition -> #hasPositionChanged;
WrappedPacketInFlying#isLook -> #hasRotationChanged;
WrappedPacketInVehicleMove#getPosition, setPosition created;
WrappedPacketOutNamedEntitySpawn additional constructors added;
2021-06-06 18:49:32 +02:00
retrooper
ddd427ef91
WrappedPacketOutSpawnEntity progress, but still incomplete;
...
WrappedPacketOutEntityVelocity#getVelocity and setVelocity created, the other velocity accessors deprecated;
WrappedPacketOutExplosion#getPosition and setPosition created, the other position accessors are deprecated;
WrappedPacketOutExplosion#getPlayerVelocity and setPlayerVelocity created, the getPlayerMotion... methods are deprecated;
2021-06-06 08:27:08 +02:00
retrooper
026c0aae23
Corrected copyright holder and license notice on files taken from ViaVersion.
2021-06-05 20:23:48 +02:00
retrooper
cc9153940e
Merge remote-tracking branch 'origin/dev' into dev
2021-06-05 16:49:58 +02:00
retrooper
cb31a355be
PacketListenerPriority better documented;
...
PacketListenerPriority#getById and PacketListenerPriority#getId created
2021-06-05 16:49:49 +02:00
retrooper
5c9b6fa4b4
ViaVersion credit in README
2021-06-05 01:34:40 +02:00
retrooper
d38176c5d3
Merge pull request #126 from Camotoy/noduplicatehandler
...
Don't allow the handler to be added twice
2021-06-05 01:30:43 +02:00
Camotoy
92f14105f7
Don't allow the handler to be added twice
2021-06-04 18:34:01 -04:00
retrooper
d141674bd7
Merge remote-tracking branch 'origin/dev' into dev
2021-06-04 23:23:41 +02:00
retrooper
1576639567
PacketEventPriority deprecated, PacketListenerPriority should be used.
2021-06-04 23:23:27 +02:00
retrooper
e9cd689f71
Merge pull request #124 from Camotoy/removesocketchannelassumption
...
Remove assumption of SocketChannel
2021-06-03 09:19:40 +02:00
Camotoy
eee2628166
Remove assumption of SocketChannel
...
Hello, Geyser person here. We're working on some changes to inject Geyser players in the server so they don't create a TCP connection. However, the channels they use aren't socket channels, meaning this library would break with the changes. This PR rectifies that by setting all mentions of SocketChannel to Channel. Tested with Paper 1.16.5 and CraftBukkit 1.7.10 using the Attack Detector example plugin.
Without these changes, https://github.com/PaperMC/Paper/pull/5611 will also break. I would recommend that you remove assumptions that the channel remote address is an INetSocketAddress, such as here: https://github.com/retrooper/packetevents/blob/dev/src/main/java/io/github/retrooper/packetevents/utils/netty/channel/ChannelUtils8.java which will break if anyone uses the setting present in that PR.
2021-06-02 20:09:44 -04:00
retrooper
84710d4161
PacketEventsSettings#fallbackServerVersion might be corrected on some odd server software;
...
Import optimizations;
2021-06-01 19:38:11 +02:00
retrooper
1d46ad9622
Merge pull request #123 from Tecnio/dev
...
Made 2 login packets sendable
2021-05-29 22:05:00 +02:00
retrooper
4424b1b0f3
Merge branch 'dev' into Tecnio_dev
...
# Conflicts:
# .gradle/7.0/javaCompile/classAnalysis.bin
2021-05-29 22:04:06 +02:00
retrooper
739471e562
Fixed potential bug with WrappedPacketLoginOutDisconnect and WrappedPacketLoginOutSuccess when sending.
2021-05-29 22:01:27 +02:00
retrooper
a74eb55c71
PlayerUtils#changeSkin created which updates the player's gameprofile.
2021-05-29 21:56:15 +02:00
retrooper
09ccb8d7b4
WrappedPacketOutGameStateChange bug fix;Changing skin in PlayerUtils progress, but inaccessible and incomplete
2021-05-26 22:49:12 +02:00
Tecnio
88e9453b73
Made 2 login packets sendable
2021-05-26 00:26:49 +03:00
retrooper
29f8a3204f
Gradle build files
2021-05-25 22:40:10 +02:00
retrooper
5324aab746
Merge remote-tracking branch 'origin/dev' into dev
...
# Conflicts:
# .gradle/7.0/executionHistory/executionHistory.bin
# .gradle/7.0/executionHistory/executionHistory.lock
# .gradle/7.0/fileHashes/fileHashes.bin
# .gradle/7.0/fileHashes/fileHashes.lock
# .gradle/7.0/javaCompile/classAnalysis.bin
# .gradle/buildOutputCleanup/buildOutputCleanup.lock
# .gradle/checksums/checksums.lock
2021-05-25 22:39:16 +02:00
retrooper
46d5b150f6
PacketEventsPlugin todo comments added
2021-05-25 22:38:53 +02:00
retrooper
f0b81ac532
Merge pull request #122 from Tecnio/dev
...
Added 2 wrappers.
2021-05-25 22:36:33 +02:00
Tecnio
faa5f3b4de
Changed how hands are handled
2021-05-25 23:33:40 +03:00
Tecnio
f63c1b2aa6
Added setters and changed getHand handling
2021-05-25 23:29:46 +03:00
Tecnio
1f324f9307
Removed debugs
2021-05-25 17:56:25 +03:00
Tecnio
b958dac7ae
Added 2 wrappers.
2021-05-25 17:50:59 +03:00
retrooper
f95314cd37
WrappedPacketOutBlockBreakAnimation#getBlockPosition always {0, 0, 0} fixed;
...
Many wrappers cleaned up(lots of code-duplication);
PlayerUtils#injectPlayer and PlayerUtils#ejectPlayer removed
2021-05-24 21:46:04 +02:00
retrooper
43eaa0869c
Merge pull request #121 from Tecnio/dev
...
Created WrappedPacketOutBlockAction
2021-05-24 20:27:50 +02:00
Tecnio
7e430a1eac
Improved the code
2021-05-24 21:25:39 +03:00
retrooper
39acdf9235
Small import optimization
2021-05-24 20:16:30 +02:00
Tecnio
e38944e39f
Improved the code
2021-05-24 20:54:35 +03:00
Tecnio
5c3051f297
Removed debugs
2021-05-24 20:41:00 +03:00
Tecnio
c1b8bf17b8
Removed debugs
2021-05-24 20:29:01 +03:00
Tecnio
b1f64155dc
Made BlockAction sendable.
2021-05-24 20:26:51 +03:00
Tecnio
32a5a34fd8
Added WrappedPacketOutBlockAction
2021-05-24 19:13:43 +03:00
retrooper
40c8c11125
WrappedPacketOutSpawnEntity created, but incomplete
2021-05-23 11:21:58 +02:00
retrooper
0c2e8dd128
Merge remote-tracking branch 'origin/dev' into dev
2021-05-22 22:44:53 +02:00
retrooper
189185e8e1
WrappedPacketOutSpawnEntityLiving completed, but untested.
2021-05-22 22:44:44 +02:00
retrooper
4e4c0fc343
Added bStats notice to README
2021-05-22 21:18:12 +02:00
threadexception
06a2b5af53
Small fixes and cleanups
2021-05-22 20:56:37 +02:00
threadexception
632d87d940
Merge branch 'dev' of https://github.com/retrooper/packetevents
...
Conflicts:
README.md
2021-05-22 20:02:05 +02:00
retrooper
41cd5fde29
WrappedPacketOutSpawnEntityLiving progress
2021-05-22 19:36:26 +02:00
retrooper
eef6347f2c
Update license attachment in README
2021-05-22 16:11:50 +02:00
retrooper
68dae87d2e
Paper injector uses handler name again, but lowercases it to avoid exceptions.
2021-05-21 17:25:08 +02:00
retrooper
901e45c490
Paper injector now uses plugin name and not handler name
2021-05-21 17:14:26 +02:00
retrooper
be7d66d14c
Corrected GPL license notice.
2021-05-21 16:25:18 +02:00
retrooper
8b798f5ea0
Paper injector added,
...
license notice in all files shortened
2021-05-21 16:22:04 +02:00
retrooper
926252b8ca
UpdateChecker cleaned up
2021-05-15 18:57:47 +02:00
retrooper
31469898d9
WrappedPacketOutMapChunk created, but incomplete.
2021-05-15 17:38:00 +02:00
retrooper
cf4913ff0a
SendableWrapper#asNMSPacket implementations cleanup
2021-05-15 16:18:31 +02:00
retrooper
915b9152d4
WrappedPacketOutTitle created
2021-05-15 15:51:14 +02:00
retrooper
9e0f190264
WrappedPacketOutSetCooldown is now accessible
2021-05-13 16:09:59 +02:00
retrooper
5c4d40e09b
PacketEvents 1.8-pre-15 update
2021-05-13 12:44:59 +02:00
retrooper
b8bf1038e7
TODO Comment removed.
2021-05-13 12:43:50 +02:00
retrooper
1f8f900d91
Early injector now supports late-bind on older server versions.
2021-05-13 12:39:17 +02:00
retrooper
531e2af0cf
bStats support added
2021-05-12 21:01:27 +02:00
retrooper
448415458c
WrappedPacketOutMount created,
...
WrappedPacketOutSetCooldown created,
WrappedPacketOutEntityEquipment created,
Missing ServerVersion enum constants added
2021-05-06 14:08:41 +02:00
retrooper
bd191ec914
WrappedPacketOutMount created
2021-05-05 19:54:06 +02:00
retrooper
dc1d3dd3fc
PacketEvents 1.8-pre-14
2021-04-30 11:03:37 +02:00
retrooper
15fcc9f11a
WrappedPacketOutWorldParticles removed as it doesn't work on latest version.
2021-04-30 10:52:07 +02:00
retrooper
ca7b5758b7
WrappedPacketOutTabComplete created, but incomplete.
2021-04-30 10:17:33 +02:00
retrooper
c4376d582f
WrappedPacketOutEntityMetadata working, but incomplete.
2021-04-30 09:32:54 +02:00
retrooper
b3e7ef2792
Lots of cleanup, minor bug fixes, wrappedpacketoutentitymetadata being re-created.
2021-04-29 20:20:51 +02:00
retrooper
542864cac1
1.7.10 direct access no longer used.
2021-04-29 18:37:40 +02:00
retrooper
6169947284
Some cleanup and documentation correction
2021-04-29 18:27:27 +02:00
retrooper
bdff7436a5
Gradle javadocs attempt
2021-04-29 15:32:21 +02:00
retrooper
a8f8bbaa53
WrappedPacketOutUpdateAttributes bug fix on newer versions
2021-04-26 10:24:14 +02:00
retrooper
80034ed4b8
WrappedPacketOutGameStateChange bug fix on 1.16+
2021-04-26 09:54:25 +02:00
retrooper
caa8cfb40b
WrappedPacketOutGameStateChange bug fix on 1.16+
2021-04-26 09:54:10 +02:00
retrooper
41d45a562e
forgot some gradle files
2021-04-24 21:50:07 +02:00
retrooper
0d284e674a
Support for Spigot 1.16.5 when it comes to IChatBaseComponents
2021-04-24 21:27:45 +02:00
retrooper
677d30ef55
Some incompatible plugins modifying player connection fix attempt.
2021-04-24 20:49:12 +02:00
retrooper
76d60f0d7a
Successfully migrated to Gradle, all is working!
2021-04-21 23:20:44 +02:00
retrooper
b93950074d
Linking against 1.16.5 spigot api
2021-04-21 23:16:52 +02:00
retrooper
319737a20a
Added gradle-wrapper.jar
2021-04-21 23:08:54 +02:00
retrooper
1e0090e82a
Successfully migrated from MIT to GPLv3.
2021-04-21 23:01:43 +02:00
retrooper
2a4c08bb3f
Process of migrating from MIT to GPL3
2021-04-21 22:56:21 +02:00
retrooper
0e72a1e944
All source files now have MIT license notice. This is the commit before the GPL3 change.
2021-04-21 22:55:01 +02:00
retrooper
d998f388f7
Switched from Maven to Gradle.
2021-04-21 22:35:05 +02:00
retrooper
6ff830f245
WrappedPacketOutLogin incomplete but created,
...
Many other wrappers cleaned up
2021-04-21 22:05:11 +02:00
retrooper
f44a5b3599
Updated packetevents version to 1.8-pre-13
2021-04-21 19:59:38 +02:00
retrooper
8ae21853c9
Minor optimizations and internal cleanups.
2021-04-21 19:44:10 +02:00
retrooper
bd5e8b8ed5
All wrappers that used to throw UnsupportedOperationExceptions when an unsupported field was accessed on the local server version now return an Optional. It should be much more clear for developers using the PacketEvents API when a field is not supported on every server version.
...
Vector3i#x/y/z are public
Vector3f#x/y/z are public
Vector3d#x/y/z are public
2021-04-18 17:22:21 +02:00
retrooper
a0dc82aba4
WrappedPacketInArmAnimation created
2021-04-17 21:24:17 +02:00
retrooper
3e8d255ac7
Update README on master branch.
2021-04-17 16:12:56 +02:00
retrooper
bb0f70cb44
Client version incompatibilities with suspecious NPC plugins fixed.
2021-04-15 21:35:39 +02:00
retrooper
e680d2b8f7
WrappedPacketOutEntityEffect created,
...
WrappedPacketOutRemoveEntityEffect created,
All wrappers that contain entity IDs have been cleaned up. Using the wrappers should be the same as before, additional constructors added to some wrappers. Internal refactoring.
2021-04-13 14:53:40 +02:00
retrooper
9dacbe2f36
Vector3d, Vector3f, Vector3i x, y, z fields are no longer accessible, use the setters. Internal usages of them updated. NPC despawning fixed.
2021-04-10 14:17:54 +02:00
retrooper
74dde71db1
Merge remote-tracking branch 'origin/dev' into dev
2021-04-09 12:53:10 +02:00
retrooper
f1bc3d6f4a
Internal class EventManagerDynamic renamed to EventManagerModern
2021-04-09 12:53:03 +02:00
retrooper
0fa893f949
Update README.md
2021-04-09 12:24:22 +02:00
retrooper
2699a1e8f9
Update README.md
2021-04-09 12:24:09 +02:00
retrooper
78b2eb07f5
NPC compilation error fix.
2021-04-09 09:45:47 +02:00
retrooper
49c1287664
1.8-pre-12
2021-04-09 09:43:37 +02:00
retrooper
83b3a10069
Late-bind support added.
2021-04-09 09:26:50 +02:00
retrooper
8aed1fda53
Late injector fixed.
2021-04-08 22:15:04 +02:00
retrooper
5f40eec0d3
PacketEvents 1.8-pre-11 released.
2021-04-07 19:15:30 +02:00
retrooper
104b894f50
Merge remote-tracking branch 'origin/dev' into dev
2021-04-07 18:23:28 +02:00
retrooper
bcba33a7cb
PacketListenerDynamic constructor re-added for backwards compatibility.
2021-04-07 18:23:20 +02:00
terrarier2111
4275c39d8a
Using wrapped buffers now
2021-04-06 17:57:34 +02:00
retrooper
ae3adefd82
WrappedPacket...CustomPayload wrappers can be retained, then read on another thread and later released.
2021-04-06 16:32:13 +02:00
terrarier2111
6e28602b73
Fixed CustomPayLoad ByteBuf stuff
2021-04-06 13:23:34 +02:00
retrooper
584d3edb13
byteBufClass inside NMSUtils
2021-04-06 12:44:38 +02:00
retrooper
978ce4629a
PacketDataSerializer class inside NMSUtils
2021-04-06 12:32:31 +02:00
retrooper
33cfa93f84
PacketListenerDynamic deprecated,
...
PacketListenerAbstract should be used.
2021-04-06 10:24:43 +02:00
retrooper
d5a29365b4
Merge remote-tracking branch 'origin/dev' into dev
2021-04-06 09:41:11 +02:00
retrooper
e12870b542
Potentially support for custom plugins with custom player connection overrides.
2021-04-06 09:40:56 +02:00
retrooper
75301b188a
Update README.md
2021-04-06 09:05:29 +02:00
retrooper
be91a955dc
Additional info on the LICENSE removed in README
...
Promise this is last change to README XD
2021-04-06 09:05:15 +02:00
retrooper
8eb6ae03eb
Removed redundant "\" in README
2021-04-06 09:04:27 +02:00
retrooper
7bf4c081b3
Small change to README
2021-04-06 09:00:59 +02:00
retrooper
55b6f2cbce
README is now ready.
2021-04-06 09:00:45 +02:00
retrooper
e97dcf2ae3
Cleaned up README
2021-04-06 08:59:59 +02:00
retrooper
3affffb42e
Update README.md
2021-04-06 08:52:16 +02:00
retrooper
ddcb92d04c
Update README.md
2021-04-06 08:52:03 +02:00
retrooper
4413aca711
PlayerConnection reading support for some custom plugins.
2021-04-06 08:49:05 +02:00
retrooper
c4307fa777
Java 16+ support!
2021-04-05 20:32:10 +02:00
retrooper
f4ada314ba
Example removed
2021-04-05 19:54:51 +02:00
retrooper
dbbc40879a
ByteBufUtil issues fixed -> CustomPayload wrappers reading byte content issues FIXED
2021-04-05 19:54:21 +02:00
retrooper
8d3f86722c
1.8-pre-10
2021-04-04 16:17:37 +02:00
retrooper
09466af902
Finished WrappedPacketOutEntityDestroy
2021-04-04 16:16:12 +02:00
retrooper
851d19f57d
Merge pull request #110 from yanjulang/wrapper-destroyentity
...
Added wrapper for PacketPlayOutEntityDestroy
2021-04-04 16:10:18 +02:00
retrooper
a4ede8dfcf
Reflection final field modifications cleanup,
...
WrappedGameProfile#getProperties added,
Internal cleanups
2021-04-04 16:05:25 +02:00
retrooper
1c48790a03
Merge remote-tracking branch 'origin/dev' into dev
...
# Conflicts:
# src/main/java/io/github/retrooper/packetevents/PacketEvents.java
# src/main/java/io/github/retrooper/packetevents/utils/reflection/Reflection.java
2021-04-04 16:04:12 +02:00
retrooper
26bc3274fe
Reflection final field modifications cleanup,
...
WrappedGameProfile#getProperties added,
Internal cleanups
2021-04-04 16:03:54 +02:00
yanjulang
805e2ad335
Added wrapper for PacketPlayOutEntityDestroy
2021-04-03 23:13:56 +02:00
terrarier2111
8b6c6d7b35
Improved Reflection perf by caching and some magic
2021-04-03 12:41:11 +02:00
retrooper
7bec3ae062
NPC cleanup, but NPC abstraction is not finished.
2021-03-31 20:32:25 +02:00
retrooper
defddefb48
Give a warning when late-bind is enabled in the spigot config on older minecraft versions,
...
give a proper custom exception whena field is not found with some additional data to help fix issues.
2021-03-31 20:27:26 +02:00
retrooper
5201b18fe7
WrappedPacketOutBlockChange bug fix on 1.7.10,
2021-03-31 10:34:54 +02:00
retrooper
c449e8ced1
Stackoverflow fix :/
2021-03-30 18:52:23 +02:00
retrooper
f22d593173
NPE fix
2021-03-30 18:45:29 +02:00
retrooper
5a3ce13d93
PacketType#packetIDMap is no longer initialized with reflection, but manually hopefully reducing issues with obfuscators.
2021-03-30 18:28:32 +02:00
retrooper
ecd0d63dc2
IncompatibleClassChangeError on some versions bug fix.
2021-03-30 16:52:59 +02:00
retrooper
066791b283
error fix
2021-03-30 15:00:16 +02:00
retrooper
f05bf26293
1.7.10 potential bug fixes
2021-03-30 10:09:57 +02:00
retrooper
75391bebde
PacketType#load cleanup (potentially fixed bugs),
...
NMSPacketEvent#packetID now cached
2021-03-30 10:08:10 +02:00
retrooper
d413f9e41b
Example code removed
2021-03-26 21:44:19 +01:00
retrooper
efdc66739f
WrappedPacketOutBlockChange bug fix attempt, WrappedPacketOutTabComplete WIP
2021-03-26 21:43:42 +01:00
retrooper
adf652978f
Removed ERROR from supported versions in an UnsupportedOperationException thrown by a wrapper when a field is unsupported on the current server version. WrappedPacketOutNamedSoundEffect finished.
2021-03-21 16:06:19 +01:00
retrooper
29e8e9020d
Less visible stacktrace when handling an incoming/outgoing packet
2021-03-21 15:17:36 +01:00
retrooper
64da1a54fa
WrappedPacketOutNamedSoundEffect progress, but not sendable YET!
2021-03-21 15:16:52 +01:00
retrooper
37740d072f
Removed debugs
2021-03-21 13:00:23 +01:00
retrooper
6496f1402a
Unnecessary player ejecting removed. (FIXED BUGS WITH PLAYERS BYPASSING THE INJECTION)
2021-03-21 12:59:36 +01:00
retrooper
e661ee75d7
WrappedPacket concurrent modification exceptions fixed
2021-03-19 08:25:22 +01:00
retrooper
dbd9df8c71
ClassUtil concurrent modification exception fix
2021-03-18 20:44:28 +01:00
retrooper
bb8027bcaf
NPCManager (BETA) created,
...
WrappedPacketOutEntityHeadRotation created,
WrappedPacketOutEntityTeleport now uses Vector3d instead of many double getters.
Minor injector issues for some people.
2021-03-18 19:45:50 +01:00
retrooper
c7096d8b35
1.8-pre-9, (generate uuid like nms)
2021-03-11 09:58:34 +01:00
retrooper
36b80763e3
WrappedPacketOutNamedEntitySpawn bug fixes,
...
1.8-pre-9
2021-03-11 09:42:27 +01:00
retrooper
bc861089b0
WrappedPacketOutNamedEntitySpawn created,
...
WrappedEntityPlayer created,
WrappedPacketOutEntity.WrappedPacketOutEntityLook created,
WrappedPacketOutEntity.WrappedPacketOutEntityMove created,
WrappedPacketOutEntity.WrappedPacketOutRelEntityMoveLook created
This commit focussed on supporting NPC spawning and movement.
2021-03-10 20:54:56 +01:00
retrooper
e5a43a8826
WrappedPacketOutPlayerInfo created and sendable,
...
WrappedPacketOutViewDistance created and sendable,
PacketEvents.get().getPlayerUtils().getGameProfile(Player) created
2021-03-09 22:09:58 +01:00
retrooper
1e1b609eb7
WrappedPacketOutRespawn WIP
2021-03-08 20:27:26 +01:00
retrooper
957c8876cc
Improved injection failure reverting.
2021-03-07 22:09:09 +01:00
retrooper
2902ef8ba4
Automatically revert to compatibility injector if early injector fails.
2021-03-07 22:05:10 +01:00
retrooper
de07adb46a
WrappedPacketInEntityAction issues on spigot 1.8.0 fixed
2021-03-07 21:32:05 +01:00
retrooper
f3dbb6dd4c
PacketEvents#init function without Plugin instance as it is redundant. Old function still exists, but is deprecated.
2021-03-07 12:47:45 +01:00
retrooper
b954e68f29
Ejecting players exception when already ejected fix?
2021-03-07 11:52:54 +01:00
retrooper
8e09c54143
Early injector Java 12 support!
2021-03-06 20:55:08 +01:00
retrooper
5e88678c52
PacketTypes are now constants and can be used in switch statements. packetevents-pre-8 update!
2021-03-06 13:32:07 +01:00
retrooper
60ad9f476d
packetevents-pre-7 pre-release
2021-03-05 21:52:06 +01:00
retrooper
5b4579c67c
packetevents-pre-7
2021-03-05 21:48:40 +01:00
retrooper
d502de76dd
PacketType IDs of other states no longer have duplicate values!
...
All IDs are initialized as you load PacketEvents using reflection, the IDs may change across java versions as the Java documentation clearly states that fields(in reflection) are not given in any particular order.
2021-03-05 21:32:43 +01:00
retrooper
eb5e21eb1b
Just to be safe
2021-03-05 19:31:38 +01:00
retrooper
d747974950
Wrappers with #getEntity methods now also have a #getEntity(World) method, which can lead to faster entity look up time. People have rarely encountered concurrent modification exceptions when calling getEntity, I just return null in such cases. It is extremely rare, but the entity can be null!
2021-03-05 19:30:00 +01:00
retrooper
ef8fe9161f
PacketEvents async loading added
2021-03-01 12:13:51 +01:00
retrooper
50ede8bf24
WrappedPacketOutBlockBreakAnimation UNTESTED wrapper created,
...
WrappedPacketOutUpdateAttributes UNTESTED wrapper created
2021-02-28 17:50:52 +01:00
retrooper
81f90a955c
1.8-pre-6
2021-02-27 23:40:57 +01:00
retrooper
0252dbf1b8
* Project code cleanup
...
* Minor bug fixes
* Few setters renamed to be more logical
2021-02-27 23:34:54 +01:00
retrooper
cd230ca35d
Small changes to wrapper contributions.
2021-02-27 16:23:07 +01:00
retrooper
4852e4bfca
ProtocolSupport support added
2021-02-27 16:17:10 +01:00
retrooper
0ed112b6fc
Working on ProtocolSupport support...
2021-02-26 22:12:16 +01:00
retrooper
3db6390efb
Merge pull request #106 from Tecnio/dev
...
Many wrappers added.
2021-02-26 22:08:31 +01:00
Tecnio
57aa65cb76
Many wrappers added.
2021-02-27 03:04:20 +03:00
retrooper
746be8a0cf
WrappedPacketOutBlockChange now accepts Materials, WrappedPacketOutBlockChange#getMaterial, WrappedPacketOutBlockChange#setMaterial
2021-02-26 16:36:51 +01:00
retrooper
0ea484bdb1
PacketListenerDynamic#onPacketHandshakeReceiveEvent -> PacketListenerDynamic#onPacketHandshakeReceive
2021-02-26 12:38:05 +01:00
retrooper
072dbfbbb4
1.8-pre-5
2021-02-26 11:26:43 +01:00
retrooper
58faab9f54
WrappedPacketOutBlockChange finished,
...
WrappedPacketOutOpenWindow finished
2021-02-26 11:25:25 +01:00
retrooper
16d9a0c6a6
EarlyInjector finally finished, no longer those old "Failed to inject" problems,
...
Network manager not found issues on 1.7.10 fixed,
mSpigot support ;O(discouraged to use mSpigot though),
PacketType.Handshaking state created,
PacketType.Handshaking.Client.SET_PROTOCOL created (used to be PacketType.Login.Client.HANDSHAKE),
setData setters finished on custom payload wrappers
2021-02-25 22:55:41 +01:00
terrarier2111
c2f55aa048
Implemented ByteBufUtil#setBytes
2021-02-25 09:43:35 +01:00
retrooper
bcb8d0e785
WrappedPacketInSettings & WrappedPacketOutPosition fixed with new setters
2021-02-25 07:53:55 +01:00
retrooper
a881496e2b
WrappedPacketInSettings#isChatColors -> WrappedPacketInSettings#isChatColored
2021-02-24 22:22:02 +01:00
retrooper
e4913cb841
Made setters for almost all fields in all wrappers, some stuff are still marked as TODO. Some wrappers are incomplete.
2021-02-24 22:06:58 +01:00
retrooper
781278a2c5
Made setters for like half the client-bound play wrappers, half to do
2021-02-24 15:37:07 +01:00
retrooper
f1bbcd61ed
Fixed SupportedVersions annotation,
...
WrappedPacketHandshakingInHandshake renamed,
PacketType.Handshaking is now its own state
2021-02-24 11:37:35 +01:00
retrooper
42bdc1f1ca
Setters created for all server-bound play wrappers
2021-02-24 09:36:09 +01:00
retrooper
710508ae1e
Revert "Merge pull request #105 from LIWKK/patch-25"
...
This reverts commit 7d048c21b3 , reversing
changes made to b59f0c5613 .
2021-02-23 23:33:52 +01:00
retrooper
f826363d01
Many wrappers now have setter methods, not all finished though. Read all TODOs.
2021-02-23 22:49:34 +01:00
retrooper
7d048c21b3
Merge pull request #105 from LIWKK/patch-25
...
Method to check if player is inject in handlers.
2021-02-23 17:28:51 +01:00
retrooper
0710f214c5
Merge pull request #104 from LIWKK/patch-24
...
Added player kick, when channel is null.
2021-02-23 17:28:04 +01:00
Johannes
3c4298dcea
Update EarlyChannelInjector.java
2021-02-23 18:18:29 +02:00
Johannes
efbfb7e29c
Method to check if player is inject in handlers.
2021-02-23 18:06:37 +02:00
Johannes
0aeff7cab8
Added player kick, when channel is null.
2021-02-23 18:02:22 +02:00
terrarier2111
be340a9812
Fixed ByteBufUtil#getBytes
2021-02-23 08:14:21 +01:00
retrooper
7122f1194c
Created setters for a few login wrappers, TODO Make setters for all wrappers and document every wrapper
2021-02-22 22:14:11 +01:00
retrooper
e8df865b3c
Completed WrappedPacketOutSetSlot wrapper, TODO: document all wrappers nicely including this one.
2021-02-22 21:51:27 +01:00
retrooper
9e38883dcd
Merge pull request #103 from AoElite/setslotbranch
...
Add WrappedPacketOutSetSlot
2021-02-22 21:38:58 +01:00
retrooper
1d955cac6e
Fixed getNetworkManagers method in NMSUtils
2021-02-22 21:38:39 +01:00
terrarier2111
106b7c6d75
Improved OS lookup
2021-02-22 11:49:43 +01:00
retrooper
e70609bbc2
Working on early channel injector, still has a bug...
2021-02-21 09:46:59 +01:00
AoElite
e1e0735688
fix field names
2021-02-21 02:18:57 -05:00
AoElite
51a417cebd
Add WrappedPacketOutSetSlot
2021-02-21 02:11:17 -05:00
retrooper
c98c4e7d38
Forgot to replace server channel list with our list wrapper. Weird it isn't working still...
2021-02-20 23:12:18 +01:00
retrooper
042b55af62
Merge pull request #102 from LIWKK/patch-23
...
Remove NotNull annotation, player can be null in send event.
2021-02-20 23:09:48 +01:00
retrooper
ab8885eb6e
Merge pull request #101 from LIWKK/patch-22
...
Remove NotNull annotation, player can be null.
2021-02-20 23:09:43 +01:00
Johannes
069980d567
Remove NotNull annotation, player can be null in send event.
2021-02-20 23:59:52 +02:00
Johannes
e6e3835846
Remove NotNull annotation, player can be null.
2021-02-20 23:59:15 +02:00
retrooper
bdb83dfd86
Merge remote-tracking branch 'origin/dev' into dev
2021-02-20 22:56:57 +01:00
retrooper
628730d484
EarlyChannelInjector WIP, more progress, still has a few issues.
2021-02-20 22:56:43 +01:00
retrooper
7aefa35623
Merge pull request #100 from LIWKK/patch-21
...
Fix 1.7.10 loadup error
2021-02-20 20:05:01 +01:00
Johannes
8964a0ac5d
Fix 1.7.10 loadup error
2021-02-20 14:05:03 +02:00
retrooper
128ff6c60b
Entity metadata wrapper modified, but untested
2021-02-19 09:33:19 +01:00
retrooper
1bc2bbc905
Merge pull request #99 from DragonHunt3r/dev
...
Initial PacketPlayOutEntityMetaData support
2021-02-19 09:15:02 +01:00
DragonHunt3r
3f9977fd1c
Merge branch 'dev' into dev
2021-02-19 09:14:45 +01:00
retrooper
6f5bc43179
BlockDig wrapper SWAP_HELD_ITEMS deprecated,
...
BlockPlace Hand enum fixed
2021-02-19 09:05:23 +01:00
retrooper
89cba54262
Attempt to fix bug in block place wrapper, removed protocollib from pom.xml
2021-02-17 21:22:56 +01:00
retrooper
081c2fece1
Cleanup done, this commit still has debugs, still working on fixing issues when joining too early SOMETIMES
2021-02-17 20:54:50 +01:00
retrooper
0b9f646650
Unfinished clean ups, 1.7.10 support attempted
2021-02-17 15:39:54 +01:00
retrooper
07ca8ac282
TODO: Tons of cleaning up, this commit is rushed lol
2021-02-17 08:16:30 +01:00
retrooper
cb798d6fd0
New EarlyChannelInjector8, invomplete, many debugs, TODO cleanup, and re-add 1.7 support :) we now dont havevthat injection failure problem
2021-02-16 22:33:47 +01:00
DragonHunt3r
5b06f2005c
Initial PacketPlayOutEntityMetaData support
...
Added WrappedPacketOutEntityMetadata and required classes
Current implementation is missing some features marked with `// TODO:`
2021-02-16 19:08:44 +01:00
retrooper
c07960814c
Merge remote-tracking branch 'origin/dev' into dev
2021-02-14 23:27:06 +01:00
retrooper
a1b75243f3
player ping NPE fixed
2021-02-14 23:26:56 +01:00
retrooper
9f9ca79f90
attempt to fix concurrent modification exception
2021-02-13 22:18:31 +01:00
retrooper
241f5ed707
Merge pull request #98 from LIWKK/patch-20
...
[DEV] Fix EntityAction 1.7.10 bug
2021-02-13 22:14:59 +01:00
Johannes
276653975d
[DEV] Fix EntityAction 1.7.10 bug
2021-02-13 11:12:48 +02:00
retrooper
ff985e4eee
Fixed a NPE when killing server in the event manager.
2021-02-13 07:57:36 +01:00
retrooper
65c28b4c90
1.8-pre-4!
2021-02-12 22:45:15 +01:00
retrooper
e994c34689
Merge remote-tracking branch 'origin/dev' into dev
2021-02-12 21:44:37 +01:00
retrooper
0eed580e72
* Cleaner exceptions, exceptions thrown by PacketEvents should now be easier to read and will explain more about the problem. Can help you identify the issue much easier.
...
* WrapperUnsupportedUsageException created, called whenever you use a wrapper that isn't supported on the local server version.
2021-02-12 21:44:29 +01:00
retrooper
88ccbdbbe7
[Dev] Fixed method shenanigans by @True-cc
...
[Dev] Fixed method shenanigans
2021-02-12 19:39:06 +01:00
true-cc
4604981e7d
Removed random load method
2021-02-12 10:36:26 -08:00
true-cc
bf990c0a20
Fixed method shenanigans
...
constantly getting method -> storing method to var then using it later
2021-02-12 10:27:53 -08:00
retrooper
cfebc47853
PacketListenerDynamic#filterXYZ added for each protocol state.
...
WrappedPacketOutChat fixed for different java versions than 8 HOPEFULLY
2021-02-12 13:39:35 +01:00
retrooper
4a72e70506
[Dev] [BugFix] Fixed a bug where java is idiotic in getDelcaredMethods not returning in any order by @True-cc
...
[Dev] [BugFix] Fixed a bug where java is idiotic in getDelcaredMethods not returning in any order by @True-cc
2021-02-11 08:53:23 +01:00
true-cc
edc07a38ae
Made all instances of getMethod store the method for later use.
2021-02-10 13:46:36 -08:00
true-cc
a4daa60a7f
Removed the WChat shit and added Reflection.getDeclaredMethodsInOrder
2021-02-10 13:16:44 -08:00
true-cc
e3f7b6888c
Added a todo x2
2021-02-10 10:32:15 -08:00
true-cc
62bb1a501b
Added a todo
2021-02-10 10:31:35 -08:00
true-cc
92fab840c5
Started adding wrappers for chat stuff
2021-02-10 10:25:26 -08:00
retrooper
515a4a4f8c
1.8-pre-4
2021-02-09 21:13:45 +01:00
retrooper
7518b9335e
PacketEventsSettings#injectionRescheduling toggleable,
...
dynamic event manager registering concurrent mod exceptions fixed, registering event listeners thread safe, unregister event listeners method removed,
2021-02-09 19:02:11 +01:00
retrooper
6221ff0b8b
1.8-PRE-3 pre-release
2021-02-07 21:02:17 +01:00
retrooper
bacc1cd878
1.8-PRE-3
2021-02-07 20:41:37 +01:00
retrooper
5144bd6199
* Packet filtering in PacketListenerDynamic support (Good usage of this can improve performance of your plugin)
...
* PacketListenerDynamic#onPacketEventExternal added, onPacketEvent deleted(for performance improvements), onPacketEventExternal is meant for events that are not inbuilt in the PacketEvents API. PacketEvents lets you create your own custom events and call them.
2021-02-07 20:24:58 +01:00
retrooper
a80770b8f7
* Support injecting multiple threads at the same on the same thread in the inject and eject executor service.(No thread switching for all players)
...
* WrappedPacketOutPosition#isRelative.... methods added
2021-02-07 14:55:40 +01:00
retrooper
1caca9fd96
Direction enum fixed
2021-02-06 13:56:23 +01:00
retrooper
59aa347e4e
Updated BLOCK_PLACE wrapper by @Tecnio
2021-02-05 15:00:29 +01:00
Tecnio
a22ce57287
Updated BLOCK_PLACE wrapper.
2021-02-05 16:51:21 +03:00
retrooper
bac63c57e7
* Direction is now an enum again, cleaned up too...
...
* PacketHandlerInternal -> PacketProcessorInternal
2021-02-04 19:18:09 +01:00
retrooper
78171c583d
Merge remote-tracking branch 'origin/dev' into dev
2021-02-04 13:21:29 +01:00
retrooper
3821c6e98a
Untested WrappedPacketOutNamedSoundEffect added
2021-02-04 13:21:12 +01:00
terrarier2111
e0c71e7c86
Fixed ClientVersion#isPreRelease and improved its performance
2021-02-03 13:30:41 +01:00
terrarier2111
d9d054c0cd
Cleaned up some stuff
2021-02-02 18:43:31 +01:00
retrooper
82304e4f45
* WrappedPacketInEntityAction cleanup and optimized to use much less memory with faster load times
...
* WrappedPacketOutChat(BaseComponent, UUID) added
* WrappedPacketOutChat support for some weird 1.7 spigots removing constructors
* Direction documentation corrected
2021-01-29 22:06:12 +01:00
retrooper
cbc510f5a4
1.8-pre-2
2021-01-29 17:43:05 +01:00
retrooper
58040a338b
world particles wrapper unfinished and not a public class
2021-01-29 17:28:56 +01:00
retrooper
9e5cba423d
Fixed ServerVersion#isNewerThan and ServerVersion#isOlderThan comparison bug when comparing the same server version
2021-01-28 17:52:33 +01:00
retrooper
19cdd85b65
WrappedPacketOutNamedSoundEffect progress, cleanup and optimizations to a few wrappers
2021-01-28 12:34:04 +01:00
retrooper
a6872ffc3c
ClientVersion#isNewerThan, ClientVersion#isNewerThanOrEquals, ClientVersion#isOlderThan, ClientVersion#isOlderThanOrEquals added.
...
Vector3i#toString, Vector3d#toString added.
WrappedPacketOutBlockChange wrapper finished and supports sending.
Errors are now much more clear and easier to spot if they are on PacketEvents's end or yours.
2021-01-28 11:41:59 +01:00
retrooper
92ad799276
ServerVersion#isNewerThan, ServerVersion#isNewerThanOrEquals, ServerVersion#isOlderThan, ServerVersion#isOlderThanOrEquals created, other comparison methods DEPRECATED, fixed comparison issues when two versions are different but have same protocol version....., internal usages of these methods UPDATED.
...
Still need to do the same for client version....
2021-01-27 22:28:21 +01:00
retrooper
28770edcdd
Direction usage changed
2021-01-27 09:40:18 +01:00
retrooper
0f5180ad07
pom.xml changed
2021-01-26 21:36:15 +01:00
retrooper
b2c126ecf9
* redundant single threaded executor service removed ("general executor service")
...
* update checking now uses the GitHub API checking for Updates on the GitHub repository releases. This is a more reliable option, instead of using the spiget API(yes, spiget, not spigot, unofficial API).
* UpdateChecker.UpdateCheckerStatus created
* If you wish you can now easily check for updates on your own using our API, you could do it every x minutes for example
2021-01-26 21:24:51 +01:00
retrooper
aab7266bcb
Merge remote-tracking branch 'origin/dev' into dev
2021-01-26 20:04:39 +01:00
retrooper
dc5eab1980
Fixed PacketEvents ping being 0 when no keep alive has been received yet. (especially noticable on 1.9+ where keep alives are sent by the server at a 30second rate)
2021-01-26 20:02:41 +01:00
terrarier2111
ddfc803603
Cleaned up some stuff
2021-01-26 10:15:41 +01:00
retrooper
5de43429a3
1.16.3 & 1.16.4 added to ClientVersion
2021-01-26 08:13:17 +01:00
retrooper
513421f3d0
PostPlayerInjectEvent#getClientVersion is NOT supposed to be annotated with @Nullable
2021-01-25 13:35:04 +01:00
retrooper
04ca446d44
real official commit for 1.8 pre 1 XD, javadoc attached
2021-01-25 13:01:19 +01:00
retrooper
d8cfd826c0
official commit for 1.8 pre 1
2021-01-25 13:00:33 +01:00
retrooper
30689a74bd
1.8 pre 1 (removed WrappedPacketOutBlockChange)
2021-01-25 12:29:50 +01:00
retrooper
957adbb3a2
1.8 pre 1
2021-01-25 10:56:57 +01:00
retrooper
e59ff04f2b
* client version cleanup and enum constants with 2/more protocol versions renamed
2021-01-25 10:34:39 +01:00
retrooper
3511099f78
NMSUtils netty location issues fix attempt,
...
Direction#equals method implemented
2021-01-25 09:52:41 +01:00
retrooper
7dc6f89585
WrappedPacketOutAnimation cleanup, WrappedPacketOutNamedSoundEffect in the creation (unfinished), NMSUtils netty location issues with some weird obfuscation fix? Allegedly happens with zkm obfuscation, taking a different/better approach at finding the netty location.
2021-01-25 08:46:47 +01:00
retrooper
e899b0cebb
IllegalStateException thrown when calling a packet listener method causes an exception letting you know to help you find the error.
2021-01-23 13:18:59 +01:00
retrooper
40ba25d011
added PacketEvents#getAPI as a deprecated method for backwards compat
2021-01-23 09:38:01 +01:00
retrooper
43e5e0200a
small packetevents cleanups
2021-01-19 18:50:48 +01:00
retrooper
7906ac7fa9
updated
2021-01-18 22:05:45 +01:00
terrarier2111
706f5331b6
Renamed field properly and improved other stuff
2021-01-18 12:34:44 +01:00
retrooper
3e13ea6aaa
Merge remote-tracking branch 'origin/dev' into dev
2021-01-18 08:17:24 +01:00
retrooper
fb13834048
HANDLER_NAME is now a static variable
2021-01-18 08:17:05 +01:00
retrooper
3e8bd7f649
Merge pull request #92 from LIWKK/patch-19
...
* Removed debugging mark
2021-01-17 15:55:19 +01:00
Johannes
dfc898e0bf
* Removed debugging mark
2021-01-17 16:50:15 +02:00
retrooper
38fc0cf4be
Merge pull request #91 from LIWKK/patch-18
...
mSpigot support
2021-01-17 15:46:00 +01:00
Johannes
7204b85664
* Better try catch, it'll always be a or getEntity
2021-01-17 16:33:49 +02:00
retrooper
c0642a69a1
Attempt to fix alleged 1.7.10 incompatibilities, possibly a redundant commit
2021-01-17 15:14:55 +01:00
retrooper
251e01f6e7
clientversion resolving caching
2021-01-16 14:10:19 +01:00
retrooper
612a7b50cf
clientversion small optimization
2021-01-16 13:49:17 +01:00
retrooper
c4d04d10d7
Moved Direction and Hand
2021-01-16 13:27:59 +01:00
retrooper
e87bfe0ef9
Merge pull request #88 from Tecnio/dev
...
Added 3 wrappers
2021-01-16 10:39:30 +01:00
Tecnio
6d87a03412
Added Becaon wrapper
2021-01-16 12:20:37 +03:00
Tecnio
13bea01eac
Added ItemName and PickItem wrappers
2021-01-16 12:00:53 +03:00
retrooper
9a8126cc1e
WrappedPacketInTeleportAccept wrapper created by Tecnio
...
Added the WrappedPacketInTeleportAccept wrapper to the API
2021-01-16 09:07:13 +01:00
retrooper
45f705e351
stop shading plib
2021-01-16 09:04:49 +01:00
Tecnio
1c3577a5e7
Added the WrappedPacketInTeleportAccept wrapper to the API
2021-01-16 09:30:28 +03:00
retrooper
a2aedf680a
Direction util issues fixed
2021-01-15 22:54:48 +01:00
retrooper
14cfb6b8c5
clientversion small improvement
2021-01-15 20:42:25 +01:00
retrooper
5e98e8a192
fixed pom,xml
2021-01-15 18:00:37 +01:00
retrooper
bb65610e74
PacketEventsSettings javadoc updated,
...
Direction is now a class
2021-01-15 16:32:10 +01:00
retrooper
19ccfb87e3
Merge remote-tracking branch 'origin/dev' into dev
2021-01-15 09:15:58 +01:00
retrooper
514298b942
* Use ProtocolLib if it is available (ONLY IF THE INJECTION IS A LATE INJECTION)
2021-01-15 09:15:46 +01:00
retrooper
b59f0c5613
GitBook: [master] 2 pages modified
2021-01-14 22:17:48 +00:00
retrooper
267480b563
Redundant as we have a wiki page for this
2021-01-14 18:16:35 +01:00
retrooper
a50a5f8f89
unwanted
2021-01-14 18:16:19 +01:00
retrooper
f06cd69b27
* Project code cleanup
...
* Concurrent modification exceptions when accessing entities in some wrappers FIXED
2021-01-13 20:01:36 +01:00
retrooper
c0bf7f7069
* WrappedPacketOutChat(BaseComponent,ChatPosition,UUID) created, WrappedPacketOutChat.Util removed
2021-01-12 22:12:48 +01:00
retrooper
d884c5324d
* WrappedPacketOutWorldParticles attempt
...
* ClientVErsion#isResolved
2021-01-12 21:27:06 +01:00
retrooper
16caeeee89
UpdateChecker code duplication removed
2021-01-12 12:19:02 +01:00
retrooper
17e5d84907
Events cleaned up a bit, using OOP and PostPlayerInjectEvent#isAsync added
2021-01-11 18:12:50 +01:00
retrooper
fe4037b850
Cleaned up PacketTypeClasses
2021-01-10 09:22:25 +01:00
retrooper
564f65d2d2
Reinject a tick later if we fail,
...
and log the error if the second injection fails
2021-01-10 09:18:41 +01:00
retrooper
2a944d9376
back to official tiny attempt
2021-01-09 20:06:20 +01:00
retrooper
3dc1bbc671
back to official tiny attempt
2021-01-09 20:05:50 +01:00
retrooper
1a141b114e
Even quicker channel caching
2021-01-09 19:24:26 +01:00
retrooper
f9e7589d87
PlayerInjectEvent no longer requires channel as an argument
2021-01-09 19:08:21 +01:00
retrooper
f77ab58b3b
Channel cache a bit earlier in the early injector
2021-01-09 19:02:51 +01:00
retrooper
a3e744d883
Injectors cleanup
2021-01-09 18:57:16 +01:00
retrooper
8680f0f43b
Update NMSUtils.java
2021-01-09 16:49:13 +01:00
retrooper
a981caa386
EventManagerDynamic fix attempt
2021-01-08 21:13:58 +01:00
retrooper
06644f5fe6
EventManagerDynamic#registerListener bug fix
2021-01-08 20:57:24 +01:00
retrooper
bcb79a0ac5
Fixed clientversion in PostPlayerInjectEvent
2021-01-08 16:34:58 +01:00
retrooper
b6c48d95db
* Tiny optimizations to EventManagerLegacy
2021-01-08 16:25:54 +01:00
retrooper
f28092bccb
* EventManagerDynamic optimizations (WARNING, registering listeners is not thread safe)
...
* TurboSpigotUtils (I am developing a paper fork, thinking of optimizaitons I can give packetevents users using the spigot :D )
2021-01-08 16:16:11 +01:00
retrooper
a566b6f8cb
Cleaned up the injection systems.
...
Now using interfaces to help cleanup the injectors.
2021-01-07 22:40:25 +01:00
terrarier2111
ba7e178cb1
Cleaned up WrappedPacket
2021-01-07 08:03:48 +01:00
retrooper
b88ac0191e
Fixed/prevented concurrent modifications when a wrapper loads (on first usage) or when wrapper reads a field(looking into this later)
2021-01-06 22:06:17 +01:00
retrooper
f864eeb646
* WrappedPacketOutChat.Util.createHoverMessagePacket(UUID, BaseComponent) :)
2021-01-05 21:44:17 +01:00
retrooper
cc2f810be3
* Before last attempt to fix small bug fix for WrappedPacketOutChat.Util
2021-01-05 21:25:17 +01:00
retrooper
d41da16c56
* Small bug fix to WrappedPacketOutChat.Util
2021-01-05 21:14:10 +01:00
retrooper
9d3390b1bb
WrappedPacketOutChat.Util.createHoverMessagePacket method created for simpler hovering message usage without dealing with JSON
2021-01-05 21:05:16 +01:00
retrooper
3fe96333e1
* WrappedPacketOutChat.Util created
2021-01-05 19:51:08 +01:00
retrooper
a17c782c2e
* WrappedPacketInSetCreativeSlot#setItemStack(ItemStack) created
...
* PostPlayerInjectEvent now called async again, but similar approach to last commit (EXPERIMENTAL)
2021-01-05 18:33:18 +01:00
retrooper
2f9a2ce435
Fix WrappedPacketInSetCreativeSlot (UNTESTED WRAPPER)
2021-01-05 10:05:46 +01:00
retrooper
d78776be6f
* Attempt to fix keepalives and transactions sending
2021-01-05 10:00:21 +01:00
retrooper
e23d1a87f6
Merge branch 'dev' of https://github.com/retrooper/packetevents
2021-01-05 09:56:49 +01:00
retrooper
b27f86c073
* Now loading status server-bound packet type IDs and login client-bound packet type IDs
2021-01-05 09:56:14 +01:00
retrooper
2a5f5448a4
Merge pull request #86 from NikV2/master
...
Added wrapper for set creative slot
2021-01-05 01:50:41 +01:00
Nik
c84472270e
Added wrapper for set creative slot
2021-01-05 02:41:50 +02:00
retrooper
e3b667d5b2
WrappedPacketInUseEntity hopefully fixing bugs for 1.7.10 trash modified spigot users xd
2021-01-03 21:13:59 +01:00
retrooper
7079c50deb
WrappedPacketOutBlockChange#WrappedPacketOutBlockChange(int, int, int, World) constructor now works
2021-01-03 16:25:04 +01:00
retrooper
b3e07b9188
* WrappedPacketInSpectate created
2021-01-03 13:16:40 +01:00
retrooper
41427d8698
* WrappedPacketInEnchantItem wrapper created
2021-01-03 11:53:05 +01:00
retrooper
6e2177e27c
* NMSUtils bug fix
2021-01-02 21:59:04 +01:00
retrooper
25bba6e306
Early and Late channel injector issues fix attempt
2021-01-02 21:52:29 +01:00
retrooper
64c0c79edd
* Cleaned up all files
...
* WrappedPacketOutBlockChange sendable FINISHED(UNTESTED, EXPERIMENTAL)
2021-01-02 18:50:24 +01:00
terrarier2111
9f6e79cb16
Improved performance of ClientVersion#isPreRelease
2021-01-02 18:34:57 +01:00
retrooper
917959743e
* PostPlayerInjectEvent small bug fixes
...
* ClientVersion#isPreRelease added
2021-01-02 15:54:28 +01:00
retrooper
577660b58c
* small temp fix for the shaders
2021-01-01 22:26:07 +01:00
retrooper
4377d85a05
* WrappedPacketOutBlockChange progress (UNFINISHED)
...
* WrappedPacketOutEntityMetadata progress (UNFINISHED)
* PostPlayerInjectEvent not being called fix ATTEMPT
2021-01-01 22:20:53 +01:00
terrarier2111
fb8fcf7d50
Cleaned up EventManagerDynamic
2021-01-01 21:19:14 +01:00
retrooper
faf8e4664c
* EventManagerDynamic using HashSets for the listeners in the map
2021-01-01 21:16:11 +01:00
retrooper
7e52b8e979
Merge remote-tracking branch 'origin/dev'
...
# Conflicts:
# src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java
# src/main/java/io/github/retrooper/packetevents/packetwrappers/play/out/custompayload/WrappedPacketOutCustomPayload.java
2021-01-01 21:13:22 +01:00
retrooper
55ab2fa043
* WrappedPacketOutBlockChange wrapper created
2021-01-01 21:13:10 +01:00
terrarier2111
560a1b5e2f
Fixed my stupidity
2021-01-01 20:46:54 +01:00
terrarier2111
db61b202c0
Merge branch 'dev' of https://github.com/retrooper/packetevents
...
Conflicts:
src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java
2021-01-01 20:43:58 +01:00
terrarier2111
ebc697dd89
Cleaned up ByteBufUtil
2021-01-01 20:42:11 +01:00
retrooper
784d99c03d
* ClientVersion resolving issues fix attempt
2020-12-31 19:24:30 +01:00
terrarier2111
d48ab480c9
Fixed a bug in ByteBufUtil
2020-12-31 18:35:58 +01:00
terrarier2111
052f1108c3
Took executor service type into account when naming threads
2020-12-31 16:35:25 +01:00
retrooper
b42f5b68ca
* PacketEvents executing listeners(when enabled in the settings and in the listener) on its own threads REMOVED due to event order processing incompatibilities, event cancelling incompatibilities, packet modification incompatibilities
...
* Attempted to fix the client version not being resolved
2020-12-24 13:01:09 +01:00
retrooper
3926c48114
* PacketEventsSettings#injectAndEjectThreadCount(int) and PacketEventsSettings#packetProcessingThreadCount(int) should now affect
2020-12-24 12:12:33 +01:00
terrarier2111
0a5f2d2b8e
Added custom ThreadFactories to internal thread pools
2020-12-24 01:15:01 +01:00
retrooper
57f80b5196
minor change to readme
2020-12-21 23:50:55 +01:00
retrooper
7ac3b7e65b
minor change
2020-12-21 23:49:24 +01:00
retrooper
4ce2f88d4a
minor correction
2020-12-21 23:47:54 +01:00
retrooper
374025f5bf
small changes
2020-12-21 23:47:10 +01:00
retrooper
450da1ce3f
few corrections
2020-12-21 23:44:55 +01:00
retrooper
4a5cfd141a
small correction
2020-12-21 23:40:23 +01:00
retrooper
56ea329b5c
small corrections
2020-12-21 23:39:34 +01:00
retrooper
3104cda55e
readme is a bit more professional now
2020-12-21 23:35:19 +01:00
retrooper
111b28ba7e
Update README.md
2020-12-21 22:24:03 +01:00
retrooper
7754a6e183
Update README.md
2020-12-21 22:23:02 +01:00
retrooper
2d2063cac2
small bug fix
2020-12-21 20:07:09 +01:00
retrooper
494edfa095
fixed wrapper loading issues for sent wrappers
2020-12-21 19:40:46 +01:00
retrooper
e3a9d4e6de
* SubclassUtil#getSubClass potential NPEs prevented
...
* WrappedPacketInResourcePackStatus wrapper created
* WrappedPacketInTrSel (Trade Select) wrapper created
* WrappedPacketOutCamera wrapper created (and sendable)
* WrappedPacketOutUpdateTime wrapper created (and sendable)
2020-12-21 18:49:26 +01:00
retrooper
c8f766735a
* Player injection failures bug fix(early injector)
...
* Player disconnected bug fix
* PacketListenerDynamic#getThreadMode added, and added PacketListenerThreadMode to the PacketListenerDynamic constructor to decide what threads PE should use to process your listener
* PacketType ID resolving on all events bug fixed
2020-12-21 16:33:10 +01:00
terrarier2111
83899c8fac
Removed redundant clone call in ServerVersion$reverse
2020-12-20 20:00:26 +01:00
retrooper
99d56a520e
* Redundant imports removed
2020-12-20 15:31:09 +01:00
retrooper
c1b2caad8b
* Debugs removed
2020-12-20 15:30:48 +01:00
retrooper
53cd0feba3
* Documented all the early injectors, some internal utils, all non internal utils
...
TODO: document all internal utils, late injectors, packettype and packettypeclasses.
* public WrappedPacket(Object packet) -> public WrappedPacket(NMSPacket packet)
Only will affect dynamic wrapper system users.
WrappedPacket myWrapper = new WrappedPacket(object); -> WrappedPacket myWrapper = new WrappedPacket(new NMSPacket(object));
2020-12-20 15:28:51 +01:00
retrooper
e83945d875
Update README.md
2020-12-20 06:45:38 +01:00
retrooper
31def9a711
fix to sending wrappedpacketoutkeepalive
2020-12-19 13:03:02 +01:00
retrooper
b4514dca63
* Debug code removed
2020-12-18 19:00:46 +01:00
retrooper
add5f9853d
* WrappedPacketOutOpenWindow NOT SENDABLE YET, attempt
...
* MainExample.java -> PacketEventsPlugin
* EarlyChannelInjector documented
2020-12-18 19:00:14 +01:00
retrooper
419c08780f
* PacketEvents.get().getPlayerUtils().getClientVersion(Player) won't return the server version(if viaversion, protocolsupport or other similar plugins are present), to be sure we return null until we get a response from their APIs
2020-12-17 20:55:33 +01:00
retrooper
d39b50b02c
Merge pull request #85 from LIWKK/patch-17
...
Added NamedEntitySpawn
2020-12-17 16:27:22 +01:00
Johannes
2d8b2ae523
Added NamedEntitySpawn
2020-12-17 17:09:19 +02:00
terrarier2111
3e5366f374
Improved caching in EventManagerDynamic
2020-12-16 23:37:08 +01:00
retrooper
2b10325f7f
wrappedpacketoutresourcepacksend now working on 1.7.10
2020-12-16 23:00:43 +01:00
retrooper
4c5fdf6dce
Update WrappedPacketOutResourcePackSend.java
2020-12-16 22:51:37 +01:00
retrooper
8a8616c124
wrappedpacketoutresourcepacksend syntax error fix
2020-12-16 22:42:50 +01:00
retrooper
8095e506e4
bug fix attempt for 1.7.10 on resourcepacksend wrapper
2020-12-16 22:37:41 +01:00
retrooper
e067208755
Named Entity Spawn Packet ID by LIWKK
2020-12-16 18:26:46 +01:00
Johannes
f9bf042178
Added Named entity spawn
2020-12-16 19:12:22 +02:00
retrooper
23db4a6506
* PacketEventPriority is now an enum
...
* WrappedPacketOutResourcePackSend wrapper(sendable) added
* WrappedPacketInCloseWindow wrapper added
* WrappedPacketOutCloseWindow wrapper(sendable) added
2020-12-15 17:33:39 +01:00
retrooper
2e0468ed74
* Should fix issues with multiple packetevents shades incompatibilities and they will all use ONE of the shaded ones.
...
The one that loaded as a plugin the first will be the selected one.
* Moved to maven-shade-plugin for shading, no longer using the outdated method
2020-12-15 16:40:15 +01:00
retrooper
e932fb5707
* Lots and lots of documentation, all that is left is the injector classes, PacketType.java, All wrappers, PacketEventsSettings.java, UpdateChecker.java, all utilities and the PacketEvents.java class.
2020-12-13 16:19:41 +01:00
retrooper
337551119b
* Fixed duplicate post player injection event calls
2020-12-13 11:50:52 +01:00
retrooper
7ec7336b9a
Ton of refactoring
...
* PacketReceiveEvent.java -> PacketPlayReceiveEvent
* PacketSendEvent.java -> PacketPlaySendEvent
* PacketLoginEvent.java -> PacketLoginReceiveEvent & PacketLoginSendEvent
* PacketStatusEvent.java -> PacketStatusReceiveEvent & PacketStatusSendEvent
* PacketListenerDynamic#onPacketReceive -> PacketListenerDynamic#onPacketPlayReceive
* * PacketListenerDynamic#onPacketSend -> PacketListenerDynamic#onPacketPlaySend
* PacketListenerDynamic#onPacketLogin -> PacketListenerDynamic#onPacketLoginReceive & PacketListenerDynamic#onPacketLoginSend
* PacketListenerDynamic#onPacketStatus -> PacketListenerDynamic#onPacketStatusReceive & PacketListenerDynamic#onPacketStatusSend
* PacketListenerDynamic#onPostPacketReceive -> PacketListenerDynamic#onPostPacketPlayReceive
* PacketListenerDynamic#onPostPacketSend -> PacketListenerDynamic#onPostPacketPlaySend
2020-12-13 11:13:18 +01:00
retrooper
a136729532
Merge remote-tracking branch 'origin/dev' into dev
2020-12-12 16:11:01 +01:00
retrooper
2da41d03ef
* PostPlayerInjectEvent#getClientVersion now supports ViaBackwards and ViaRewind as they take longer to resolve client version, this results in the PostPlayerInjectEvent being called later
2020-12-12 16:10:40 +01:00
terrarier2111
3c65754fca
Merge pull request #81 from retrooper/terrarier2111-patch-1
...
Create codeql-analysis.yml
2020-12-11 22:42:51 +01:00
terrarier2111
688931aa7e
Create codeql-analysis.yml
2020-12-11 22:41:43 +01:00
terrarier2111
e5338caa29
Improved some stuff
2020-12-09 21:00:07 +01:00
retrooper
b45bc73396
* Fixed bugs
...
* PacketReceiveEvent#getPlayer and PacketSendEvent#getPlayer are annotated with @NotNull now.
2020-12-09 20:28:04 +01:00
retrooper
918d5b89ef
Merge remote-tracking branch 'origin/dev' into dev
2020-12-09 18:50:03 +01:00
retrooper
9f06d583ab
* Test commit
2020-12-09 18:49:23 +01:00
retrooper
1c87cf7982
Created FUNDING.yml
2020-12-09 18:39:06 +01:00
retrooper
75f7eaf74f
Created FUNDING.yml
2020-12-09 18:38:40 +01:00
retrooper
a4f4163412
Created feature issue template
2020-12-09 15:19:50 +01:00
retrooper
ef529b7949
Create feature issue template
2020-12-09 15:19:11 +01:00
retrooper
6e52acb677
Added Bug report template
2020-12-08 22:52:08 +01:00
retrooper
826695a677
Update bug template
2020-12-08 22:49:07 +01:00
retrooper
e403469e52
Contributor Code of Conduct File added
...
Create CONTRIBUTOR_CODE_OF_CONDUCT.md
2020-12-08 22:32:04 +01:00
retrooper
084acb8894
Create CONTRIBUTOR_CODE_OF_CONDUCT.md
2020-12-08 22:31:29 +01:00
retrooper
948e260460
Merge remote-tracking branch 'origin/dev' into dev
2020-12-08 08:46:57 +01:00
retrooper
f4efdea4b2
* WrappedPacketInAbilities now loads
...
* ClientVersion is removed when a client leaves.
2020-12-08 08:46:24 +01:00
terrarier2111
1cb7730c3c
Improved some stuff
2020-12-07 19:59:21 +01:00
terrarier2111
5b558b50e2
Merge branch 'dev' of https://github.com/retrooper/packetevents
...
Conflicts:
src/main/java/io/github/retrooper/packetevents/utils/nms/NMSUtils.java
2020-12-07 19:48:06 +01:00
retrooper
00986f2341
* WrappedPacketInAbilities bug fix for 1.16
2020-12-07 18:18:35 +01:00
retrooper
b83e8887ff
* small bug fixes
2020-12-07 18:11:25 +01:00
retrooper
7bfadfa233
dev build 9 for 1.7.9
...
* pretty stable, all known bugs fixed
2020-12-07 17:58:35 +01:00
retrooper
a3f75f1237
*nms util cache fix
2020-12-07 17:46:25 +01:00
retrooper
1e21d3f6ea
* Bug fix with cached information not being deleted when a player quits
...
* All events having to do with a PACKET has the #getSocketAddress() method returning an InetSocketAddress.java
2020-12-07 17:44:35 +01:00
terrarier2111
73d0c6ea7d
Readded caching for internal method
2020-12-07 16:04:58 +01:00
retrooper
278b27da6b
* Bugs fixed on newer versions with the EarlyChannelInjector
...
* NMSUtils fixed some bugs
* PacketListenerDynamic new constructor, default priority is PacketEventPriority.NORMAL
* Reflection bugs fixed
2020-12-07 15:01:46 +01:00
retrooper
fbb0692f80
Merge remote-tracking branch 'origin/dev' into dev
2020-12-06 09:59:46 +01:00
retrooper
f4307ab524
* ProtocolLib support REMOVED
...
* PacketEventsSettings#useProtocolLibIfAvailable(boolean) removed
* Channel ejection fixed
2020-12-06 09:59:16 +01:00
terrarier2111
cafda14c89
Improved and cleaned up NMSUtils
2020-12-04 20:20:08 +01:00
terrarier2111
2e7e81be9f
Improved NMSUtils
2020-12-04 20:01:05 +01:00
terrarier2111
83b5697d40
Renamed Direction method and optimized imports
2020-12-04 19:19:11 +01:00
terrarier2111
e0a1c39e54
Improved some stuff in Direction enum
2020-12-04 19:14:01 +01:00
retrooper
6608203ddc
* Reflection#getMethod StackOverFlow fix
2020-12-04 18:08:58 +01:00
retrooper
1f811ba90e
* Hotfix for ProtocolLib Support
2020-12-04 18:03:05 +01:00
retrooper
70f33f56e8
* Fix WrappedPacketInUseEntity
2020-12-04 17:59:30 +01:00
retrooper
39c2a157c4
* Quick fix to ProtocolLib support
2020-12-04 17:54:08 +01:00
retrooper
761352cbbc
* PROTOCOLLIB LISTENER USAGE WHEN AVAILABLE SUPPORT ATTEMPT
...
This is untested.
* PacketLoginEvent#getChannel replaced with PacketLoginEvent#getSocketAddress
Same with PacketStatusEvent
* ClientVersion cached with a InetSocketAddress instead of netty channel
2020-12-04 17:39:46 +01:00
retrooper
44016e1a03
* Direction small changes
...
* Vector3i.INVALID created
* ClientVersion small changes
2020-12-04 11:12:24 +01:00
retrooper
a2233c434a
* Minor documentation change appended to NMSPacketEvent's documentation
2020-12-04 10:31:55 +01:00
retrooper
fb4863cbe9
* Appended to NMSPacketEvent's documentation
2020-12-04 10:22:50 +01:00
retrooper
e60d50a957
* Cleaned up all events to do with packets reducing documentation duplication
2020-12-04 10:19:42 +01:00
retrooper
c53d69d03c
* PacketType and PacketTypeClasses refactored issues fixed
2020-12-04 09:53:38 +01:00
retrooper
9e294d7185
* More documentation, a lot more to go :c
2020-12-04 09:33:13 +01:00
retrooper
e9cd983131
* Nullable.java removed
...
* Direction minor optimization
* Documented a lot of files. More documentation to come.
2020-12-03 19:35:37 +01:00
terrarier2111
e6798d4901
Cleaned up some more reflect code
2020-12-03 18:38:58 +01:00
terrarier2111
1c0e8cdd91
Cleaned up some more reflect code
2020-12-03 18:02:23 +01:00
terrarier2111
a3f9fc9cb3
Fixed reflect read indexes
2020-12-03 15:57:32 +01:00
retrooper
808bbabff1
* Hand enum added to WrappedPacketInUseEntity
...
* Vector3d target vector added to WrappedPacketInUseEntity
* WrappedPacket has been cleaned up and optimized(basically all wrappers)
We no longer cache all fields, we only cache all fields that are accessed...
* WrappedPacketInTabComplete created only supporting the #getText() method as the text field is the only field that doesn't get removed across 1.7.10->1.16.4
2020-12-03 15:12:07 +01:00
terrarier2111
4a5e579256
Minor improvements
2020-12-03 14:01:05 +01:00
retrooper
7c74d22700
* PacketManager.java renamed to PacketHandlerInternal and moved.
2020-12-03 09:17:36 +01:00
retrooper
cf11930f05
* Code optimizations(removal of redundant imports, ...)
2020-12-02 10:17:08 +01:00
retrooper
f814d20cbb
* Fixed bugs to do with the EarlyChannelInjector
2020-12-02 10:08:27 +01:00
retrooper
6313fca6fa
NMSUtils compilation error fixed
2020-12-02 01:13:58 +01:00
retrooper
f0bcfc62c8
NMSUtils Minecraft Server Instance bug fix
...
Only failed on newer minecraft versiobs
2020-12-02 01:02:10 +01:00
retrooper
cf930c6013
* Fixed bugs
2020-12-01 16:55:48 +01:00
retrooper
052a65f6ef
* PacketManager micro optimization with the channel caching
...
* Player ejected when they leave
2020-12-01 16:12:42 +01:00
retrooper
4078418376
* PostPlayerInjectEvent is now called BEFORE the first PacketReceive/Send event, will ALWAYS only be called on successful injections and is called async(due to me already being in an async context).
2020-12-01 15:32:14 +01:00
retrooper
68e8d4f788
Merge remote-tracking branch 'origin/dev' into dev
...
# Conflicts:
# src/main/java/io/github/retrooper/packetevents/packetmanager/tinyprotocol/TinyProtocol7.java
# src/main/java/io/github/retrooper/packetevents/packetmanager/tinyprotocol/TinyProtocol8.java
2020-12-01 12:07:58 +01:00
retrooper
be6e0ce222
* TinyProtocol removed, wrote my own similar version of it
...
* All play wrappers refactored to io.github.retrooper.packetevents.packetwrappers.play.(in/out)
* Vector3d utility class created and added to many wrappers that have to do with a position or delta(doubles).
2020-12-01 12:05:15 +01:00
terrarier2111
67dd097a0f
Renamed constants properly
2020-11-30 15:12:07 +01:00
terrarier2111
ed9007da44
Improved caching
2020-11-30 14:58:04 +01:00
terrarier2111
81632cdf6d
Revert "Improved caching"
...
This reverts commit 79c07642
2020-11-30 14:46:04 +01:00
terrarier2111
727e02a235
Revert "Renamed constants properly"
...
This reverts commit 05a981de
2020-11-30 14:46:00 +01:00
terrarier2111
39e105c69c
Revert "Other improvements"
...
This reverts commit 1a2145b4
2020-11-30 14:45:51 +01:00
terrarier2111
1a2145b413
Other improvements
2020-11-30 14:44:04 +01:00
terrarier2111
05a981de6e
Renamed constants properly
2020-11-30 14:43:51 +01:00
terrarier2111
79c07642a2
Improved caching
2020-11-30 14:39:49 +01:00
retrooper
e2352fe3bf
*.github file deleted
2020-11-30 14:06:55 +01:00
retrooper
2d9ac56f2e
* Project code cleanup (Unused imports removed, code reformatted...)
2020-11-30 14:03:32 +01:00
retrooper
8e1d70b6be
* pom.xml added
2020-11-30 13:15:53 +01:00
retrooper
7c6a675173
* Reverted back to maven
...
* Optimized dynamic event manager event calls
* WrappedPacketInBlockPlace#getDirection bug fixes
* WrappedPacketInBlockDig#getDirection bug fixes
* PacketEvents static usages reduced, API cleaned up
2020-11-30 13:03:35 +01:00
terrarier2111
feeff01654
Minor improvement
2020-11-29 22:36:32 +01:00
retrooper
0e53005867
CONTRIBUTING information file
2020-11-28 11:34:11 +01:00
retrooper
98b4ee2bac
Created CONTRIBUTING.md
...
Please read this file if you are planning on contributing.
2020-11-28 11:33:29 +01:00
retrooper
efc2dc1c54
Update README.md
2020-11-26 10:58:25 +01:00
retrooper
827c974908
* added gradle-wrapper.jar
2020-11-26 10:26:31 +01:00
retrooper
05b9c8efca
* added gradle-wrapper.properties
2020-11-26 10:25:04 +01:00
retrooper
42a9745196
* removed gitgnore
2020-11-26 10:11:31 +01:00
retrooper
5a283b7ffa
* Moved from maven to gradle.
...
pom.xml has been removed.
2020-11-26 10:09:01 +01:00
retrooper
59d25df76b
Update NMSUtils.java
2020-11-25 19:34:24 +01:00
retrooper
c42a00ddcf
* WrappedPacketLoginOutCustomPayload load issues fix attempt
...
* WrapperPacketWriter#writeObject created and implemented in WrappedPacket, WrappedPacket#writeObject
2020-11-25 18:09:50 +01:00
retrooper
b3e06caf7c
* PEVersion#compare(PEVersion) renamed to PEVersion#compareTo(PEVersion)
2020-11-25 17:55:23 +01:00
retrooper
a0b84c0552
* PEVersion cleaned up and optimized and updated its usages
2020-11-25 17:49:31 +01:00
retrooper
e8be5eb8ba
* PacketEvents.getSettings().injectionFailureMessage(String) can be used to modify the injection failure kick message
...
* PacketType.Login and PacketType.Status now easier to use
PacketType.Status.Client are the client side status packets and PacketType.Status.Server are the server side status packets, same applies to the Login class.
* WrappedPacketLoginInCustomPayload & WrappedPacketLoginOutCustomPayload bugs fixed
* All login and status wrappers' package locations have been moved
* Small potential bug fix for TinyProtocol async player injection failures
2020-11-25 14:20:02 +01:00
retrooper
2531988a59
* WrappedPacketLoginOutSetCompression is now sendable
...
* WrappedPacketLoginInCustomPayload has been finished
* WrappedPacketLoginOutCustomPayload created and is sendable
* PacketType.Login.Client and PacketType.Login.Server created for easier usage
* PacketType.Login.Server.SET_COMPRESSION id newly created
2020-11-25 08:52:50 +01:00
retrooper
7204b06870
* PacketEvents.getAPI().getPlayerUtils().sendPacket(NETTY_CHANNEL, SENDABLE_WRAPPER); created
...
* PacketEvents.getAPI().getPlayerUtils().sendPacket(NETTY_CHANNEL, RAW_NMS_PACKET); created
2020-11-25 07:57:53 +01:00
retrooper
6289543ea5
* PostPlayerInjectEvent now supported in the new event system.
2020-11-24 15:16:09 +01:00
retrooper
6a1ce5e234
* Issues with ClientVersion, when one minecraft instance is on the server and another one on the server list, the one on the server list overwrites the online client's version
...
* ClientVersion class small cleanup and optimization
2020-11-24 10:04:04 +01:00
retrooper
bd1e4e7e6d
1.7.9 release
...
Update!
2020-11-23 13:00:47 +01:00
retrooper
feda5b96b6
* PostPlayerInjectEvent added, called after successful injection
2020-11-23 12:58:54 +01:00
retrooper
809396ff21
1.7.9 release
2020-11-23 12:36:11 +01:00
retrooper
2428487eb1
* UpdateChecker bugs fixed, PEVersion#equals(PEVersion) now works
2020-11-23 08:41:20 +01:00
retrooper
df0c769111
* VersionLookupUtils prioritization changed up, 1. ViaVersion, 2. ProtocolLib, 3. ProtocolSupport
2020-11-23 07:45:22 +01:00
retrooper
5e0cd75bb0
attempt to fix protoclsupport/viaversion erroring when asked for protocolversion, but not successful
2020-11-22 17:57:55 +01:00
retrooper
b21e6b4a67
* PacketEvents injecting is done with event priority on LOW for late injections, and ClientVersion resolving with HIGH event priority
2020-11-22 17:46:56 +01:00
retrooper
bfc3aa7ad8
* PacketEvents.onJoin priority set to HIGHEST
2020-11-22 17:27:19 +01:00
retrooper
72458ddfd2
* PacketEvents failing to inject you and doesn't call any events for your player (RARE BUG) fixed. This bug could only happened if you had injectEarly set to true.
2020-11-22 17:07:21 +01:00
retrooper
a8a04b137b
* ClientVersion unresolvable on 1.16.3 and 1.16.4 bug FIXED
2020-11-22 16:40:39 +01:00
retrooper
4e11df1fc7
Update EventManagerDynamic.java
2020-11-21 21:19:48 +01:00
Retrooper
c3ab35bd6b
* reverted to old entity finder util
2020-11-21 13:11:20 +08:00
retrooper
af1025da1f
caching entity ID im wrappedpacketoutentityteleport now
2020-11-21 04:54:16 +01:00
retrooper
f2ce9eacb1
WrappedPacketOutEntityTeleport Entity ID always 0
2020-11-21 04:50:20 +01:00
retrooper
27307e034b
Merge branch 'dev' of https://github.com/retrooper/packetevents into dev
2020-11-20 11:00:16 +01:00
retrooper
808357735f
* PacketEventsLoadFailureException now includes the cause exception.
...
* VersionLookupUtils now prioritizes ProtocolSupport over ViaVersion
2020-11-20 10:59:02 +01:00
retrooper
ece8b6d395
WrappedPacketOutEntity Entity ID 0 Bug fix
2020-11-20 04:12:22 +01:00
retrooper
8643e14900
WrappedPacketOutEntity Entity ID 0 bug fix
2020-11-20 04:10:49 +01:00
retrooper
cbfd52d926
* PacketEvents-Bungee utilities removed and bungee server startup error fix.
...
* PacketEventsMethodInvokeException now actually includes the cause of the error.
* PacketEventsNMSCachedEntityNotFoundException.java renamed to PacketEventsEntityByIDNotFoundException.java.
* Reflection methods to do with fields DEPRECATED, use the WrappedPacket utility class.
* ClassUtil.getClassSimpleName(Class<?> cls) potential bug fix, if a class was named "null" it would have not cached do to a string null check.
2020-11-19 17:47:27 +01:00
retrooper
e266e43d19
* WrappedPacketOutChat constructor
...
* pom.xml stopped compiling ProtocolSupport
* All event classes now cache packet ID
2020-11-19 10:00:07 +01:00
retrooper
c9d58e08c9
1.7.8 release
2020-11-17 15:34:56 +01:00
retrooper
24eda2b3a5
1.7.8 release
...
* Official 1.16.4 support
ClientVersion.v_1_16_4, ServerVersion.v_1_16_4 created
* Unfortunately PacketEvents.getSettings().useProtocolLibIfAvailable(boolean) setting most likely won't be coming back
* Bungee client version resolving bug fixed
* Recommended to have ViaVersion, ProtocolSupport or ProtocolLib on your spigot server, as PacketEvents makes use of them to resolve client version ONLY if they are available.
They are required on the spigot server ONLY if you have a bungee network.
* Interruption of PacketEvents.stop() protected
2020-11-17 15:32:37 +01:00