@Klivensh
var scriptName = "CancelC0F";
var scriptAuthor = "ASKLL";
var scriptVersion = 1.0;
var C0FPacketConfirmTransaction = Java.type ("net.minecraft.network.play.client.C0FPacketConfirmTransaction");
function NoC03() {
this.getName = function() {
return "CancelC0F";
}
this.getCategory = function() {
return "Misc";
}
this.getDescription = function() {
return "CancelC0F";
}
this.onUpdate = function () {
}
this.onPacket = function (event) {
var packet = event.getPacket();
if (packet instanceof C0FPacketConfirmTransaction){
event.cancelEvent()
}
}
}
var NoC0F = new NoC0F();
var NoC0FClient;
function onEnable() {
NoC0FClient = moduleManager.registerModule(NoC0F);
}
function onDisable() {
moduleManager.unregisterModule(NoC0FClient);
}