General - Send/Receive Packet (Effect) — PacketEventsSK

Addon: PacketEventsSK · Category: Effect · Since: 1.0.0

Syntax

[(silently|default)] (send|receive) packet %packets% (to|from) %players%

Description

Used to force the server to send or receive a packet, optionally silently. (silent means it won't trigger on packet send or receive)

Examples

command killTargetForMe:
    trigger:
        set {_packet} to a new clientbound destroy entities packet:
            entity ids: protocol id of target entity

        silently send packet {_packet} to the player

View source