兄弟们,有没有关c03包的js,谢谢
-
嘿这是你需要的吗?
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); }