Anarchick / skript-packet

Another skript's packet addon to replace ThatPacketAddon with skript2.5.2+
MIT License
21 stars 4 forks source link

Reloading skript with packet event duplicates event #16

Closed boxic closed 1 year ago

boxic commented 2 years ago

Like the title suggests, every time I reload a skript with this event, it triggers another time, increasing by 1 every reload until I restart the server.

# When player closes out of a sign gui, updating it and sending a packet
on packet event play_client_update_sign:

    # Get location of sign
    set {_location} to location field 0 of event-packet

    # No actual sign there, it was a fake GUI sign
    block at {_location} is not a sign

    # Get line text of sign
    set {_lines::*} to field 1 of event-packet

    # Trigger GUI sign closing event
    guis_sign_closed(event-player, {_lines::*})

image

Server version is paper 1.19.2 on a velocity proxy

Skript addons: image

Plugin list: image

Binjabin commented 1 year ago

I also get this exact same issue.

Anarchick commented 1 year ago

I was able to replicate and solve it ! Fix in next update :)