General - Cancel Packet (Effect) — PacketEventsSK

Addon: PacketEventsSK · Category: Effect · Since: 1.0.0, 1.1.1 (fixed bugs)

Syntax

cancel [the] packet

Description

Used to cancel the packet in a packet receive/send event. This just means that the packet won't be processed/sent.

Examples

on clientbound chunk data netty processed:
    if player's name isn't "3add":
        stop
    cancel the packet
    send "You can't view my chunks 3add!"

View source