Skip to content

ScriptAPI

321 Topics 2.3k Posts

A place to ask for help on writing scripts

  • Help me how to convert?

    Moved
    5
    0 Votes
    5 Posts
    1k 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();