Skip to content

ScriptAPI

324 Topics 1.9k Posts

A place to ask for help on writing scripts

  • Help

    9
    0 Votes
    9 Posts
    3k Views
    ChocoPie_ismeC
    @Aftery said in Help: does it work on b71 then no
  • How to quickly enter the server from single player game?

    6
    0 Votes
    6 Posts
    2k Views
    ChocoPie_ismeC
    Ingame Server Switcher Mod
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Help me how to convert?

    Moved
    5
    0 Votes
    5 Posts
    2k Views
    C
    just remove the type C0FPacketConfirmTransaction then. Since JavaScript is a dynamically typed language, the type is determined at runtime. If the packet is a instance of a C0FPacketConfirmTransaction you can call getWindowId() and getUid() then if it is not, exceptions should be thrown. //if (event.getPacket() instanceof C0FPacketConfirmTransaction) packetConfirmTransaction = event.getPacket();