I need a C03packet disable,thx and Happy spring festival!
-
Is this what you want?
var scriptName = "CancelC03"; var scriptAuthor = "*"; var scriptVersion = 1.0; var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer"); function NoC03() { this.getName = function() { return "CancelC03"; } this.getCategory = function() { return "Misc"; } this.getDescription = function() { return "CancelC03"; } this.onUpdate = function () { } this.onPacket = function (event) { var packet = event.getPacket(); if (packet instanceof C03PacketPlayer){ event.cancelEvent() } } } var NoC03 = new NoC03(); var NoC03Client; function onEnable() { NoC03Client = moduleManager.registerModule(NoC03); } function onDisable() { moduleManager.unregisterModule(NoC03Client); }