Skip to content

network ​

Utilities for interacting with network packets

Functions ​

send(packet : userdata) ​

Sends a packet through the normal channel, triggering events

  • packet (object) The raw Java packet to send

send_no_event(packet : userdata) ​

Sends a packet directly, bypassing the event system

  • packet (object) The raw Java packet to send

is_server_packet(packet : userdata): boolean ​

Checks if a packet is a server-to-client packet (Clientbound)

  • packet (object) The raw Java packet to check
  • returns (boolean) True if it's a server packet

process_packet(packet : userdata) ​

Processes a packet as if it was received from the server

  • packet (object) The raw Java packet to process