1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Troubles with ThatPacketAddon

Discussion in 'Skript' started by EagL, Jul 2, 2020.

Thread Status:
Not open for further replies.
  1. EagL

    EagL Member

    Jun 23, 2020
    Likes Received:
    Skript Version (do not put latest): Skript v2.5-alpha3
    Skript Author: Bensku
    Minecraft Version: 1.15.2
    Full Code:
    Code (Text):
    1. set {_cooldownPacket} to new play_client_set_cooldown packet
    I have thatpacketaddon v1.0-BETA.3 and ProtocolLib v4.5.1. I've read the docs and from what I could understand the code above should work, but it doesn't:
    [16:40:22 ERROR]: Can't understand this expression: 'new play_client_set_cooldown packet' (testscript.sk, line 76: set {_cooldownPacket} to new play_client_set_cooldown packet')

    I've tried the same thing with other packets but they result in the same error.
    --- Double Post Merged, Jul 2, 2020, Original Post Date: Jul 2, 2020 ---
    I got it working now with play_server_set_cooldown instead, but why is that? Shouldnt it be client according to https://wiki.vg/Protocol#Set_Cooldown? Ok, so apparently youre supposed to use the opposite of what that page says. If its bound to the client it should be sent by the server.
Thread Status:
Not open for further replies.

Share This Page