CCBlueX Forum

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

    [RELEASE] Last Packet

    Scripts
    script plumerman
    2
    2
    274
    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.
    • Plumer Man
      Plumer Man last edited by

      Shows when last packet received from server (ms)

      ///api_version=2
      var System = Java.type('java.lang.System');
      var Fonts = Java.type("net.ccbluex.liquidbounce.ui.font.Fonts");
      var timeSince = System.currentTimeMillis();
      
      (script = registerScript({
          name: "LastPacket",
          authors: ["PlumerMan"],
          version: "1.0"
      })).import("Core.lib");
      
      module = {
          category: "Exploit",
          description: "Time since last packet received",
          onPacket: function (e) {
              var packetName = e.packet.toString();
              if(packetName.charAt(34) == "S")
                  timeSince = System.currentTimeMillis();
          },
          onRender2D: function () {
      		Fonts.minecraftFont.drawStringWithShadow("§7Last Packet (MS): §f" + (System.currentTimeMillis() - timeSince),  4, 10, 0xFFFFFF); // Bottom Left
          },
          onEnable: function () {
      
          },
          onDisable: function () {
              reset();
          }
      };
      
      
      I 1 Reply Last reply Reply Quote 0
      • I
        idk my name @Plumer Man last edited by

        @plumer-man e.packet.class.simpleName.startsWith("S") && (timeSince = java.lang.System.currentTimeMillis())

        1 Reply Last reply Reply Quote 1
        • 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