How i can read channels of custom_payload packets
KaffinPX opened this issue · 5 comments
You should be able to access the byte buffer in the packet as is done in the wrapper: https://github.com/dmulloy2/PacketWrapper/blob/master/PacketWrapper/src/main/java/com/comphenix/packetwrapper/WrapperPlayClientCustomPayload.java
As for reading it to a string, see this constructor: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#String-byte:A-
Thanks, ill try asap
21 Haz 2021 Pzt 23:04 tarihinde Dan Mulloy ***@***.***> şunu
yazdı:
… You should be able to access the byte buffer in the packet as is done in
the wrapper:
https://github.com/dmulloy2/PacketWrapper/blob/master/PacketWrapper/src/main/java/com/comphenix/packetwrapper/WrapperPlayClientCustomPayload.java
As for reading it to a string, see this constructor:
https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#String-byte:A-
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1252 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARSUB2DS2W55GDFEVHAS3LDTT6LM7ANCNFSM47BRH2CA>
.