CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    I need a C03packet disable,thx and Happy spring festival!

    Scripts
    3
    3
    74
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Klivensh last edited by

      as the title

      WaterFlex A 2 Replies Last reply Reply Quote 0
      • WaterFlex
        WaterFlex @Klivensh last edited by

        @Klivensh if(event.getPacket() instanceof C03PacketPlayer) {
        event.cancelEvent()
        }

        1 Reply Last reply Reply Quote 0
        • A
          ASKLL @Klivensh last edited by

          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);
          }
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          About
          • Terms of Service
          • Privacy Policy
          • Status
          • Contact Us
          Downloads
          • Releases
          • Source code
          • License
          Docs
          • Tutorials
          • CustomHUD
          • AutoSettings
          • ScriptAPI
          Community
          • Forum
          • Guilded
          • YouTube
          • Twitter
          • D.Tube