How to send a packet?
-
ok so im trying to send the c17custompayload from this in liquidbounce but i dont know how https://github.com/Rilshrink/Minecraft-Disablers/blob/main/earthpoldisabler.java
import ByteArrayOutputStream, DataOutputStream, PacketBuffer, Unpooled, C17PacketCustomPayload, IOException, C03PacketPlayer
if(packet instanceof C03PacketPlayer) { if(mc.thePlayer.ticksExisted % 15 == 0) { try { b = new ByteArrayOutputStream(); out = new DataOutputStream(b); out.writeUTF(mc.thePlayer.getGameProfile().getName()); buf = new PacketBuffer(Unpooled.buffer()); buf.writeBytes(b.toByteArray()); mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf)); } catch (IOException) { } } } -
import ByteArrayOutputStream, DataOutputStream, PacketBuffer, Unpooled, C17PacketCustomPayload, IOException, C03PacketPlayer
if(packet instanceof C03PacketPlayer) { if(mc.thePlayer.ticksExisted % 15 == 0) { try { b = new ByteArrayOutputStream(); out = new DataOutputStream(b); out.writeUTF(mc.thePlayer.getGameProfile().getName()); buf = new PacketBuffer(Unpooled.buffer()); buf.writeBytes(b.toByteArray()); mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf)); } catch (IOException) { } } }@auto-reply-bot what are the vars in liquid script that i need to use to import those though?
-
@auto-reply-bot what are the vars in liquid script that i need to use to import those though?
var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
var DataOutputStream = Java.type("java.io.DataOutputStream")
...
https://google.com -
var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
var DataOutputStream = Java.type("java.io.DataOutputStream")
...
https://google.com@auto-reply-bot morez vars plz
-
@auto-reply-bot morez vars plz
@ez-chan-osu
you can google it easily
it's like:
var [varname] = Java.type("thing you wanna import -> lang object")look after the lang object.
i googled 1 of em and instantly found them.
same with PacketBuffer, and the rest that is comming from minecraft
-
@auto-reply-bot morez vars plz
@ez-chan-osu ```
var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream") var DataOutputStream = Java.type("java.io.DataOutputStream") var PacketBuffer = Java.type("net.minecraft.network.PacketBuffer") var Unpooled = Java.type("io.netty.buffer.Unpooled") var C17PacketCustomPayload = Java.type("net.minecraft.network.play.client.C17PacketCustomPayload") var IOException = Java.type("java.io.IOException") var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer") //and for the module, just paste what auto reply bot said, if(packet instanceof C03PacketPlayer) { if(mc.thePlayer.ticksExisted % 15 == 0) { try { b = new ByteArrayOutputStream(); out = new DataOutputStream(b); out.writeUTF(mc.thePlayer.getGameProfile().getName()); buf = new PacketBuffer(Unpooled.buffer()); buf.writeBytes(b.toByteArray()); mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf)); } catch (IOException) { } } } -
@ez-chan-osu ```
var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream") var DataOutputStream = Java.type("java.io.DataOutputStream") var PacketBuffer = Java.type("net.minecraft.network.PacketBuffer") var Unpooled = Java.type("io.netty.buffer.Unpooled") var C17PacketCustomPayload = Java.type("net.minecraft.network.play.client.C17PacketCustomPayload") var IOException = Java.type("java.io.IOException") var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer") //and for the module, just paste what auto reply bot said, if(packet instanceof C03PacketPlayer) { if(mc.thePlayer.ticksExisted % 15 == 0) { try { b = new ByteArrayOutputStream(); out = new DataOutputStream(b); out.writeUTF(mc.thePlayer.getGameProfile().getName()); buf = new PacketBuffer(Unpooled.buffer()); buf.writeBytes(b.toByteArray()); mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf)); } catch (IOException) { } } }@mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain
-
@mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain
@sigma-bot ty
-
@mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain
@sigma-bot begging? also unlike you, i do other things, since coding is not my job
-
@sigma-bot begging? also unlike you, i do other things, since coding is not my job
@ender1355 i doubt you can do anything else other than being braindead
-
@ender1355 i doubt you can do anything else other than being braindead
@sigma-bot cmon did you even make a script?
-
@sigma-bot cmon did you even make a script?
@ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs
-
@ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs
@sigma-bot xd
-
@mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain
@sigma-bot we are not begging, i just asked a simple question.
-
oh wow that's a lot of fucking imports for a char array
with utf8 support, I guess -
@ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs
-
@sigma-bot xd
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login