I am currently confused and I'm trying to learn how to use packets. I am currently getting errors about the event being incorrect.
Code:
on packet event play_server_chat:
set {_message} to toReadableText("chatcomponent" pjson 0 of event-packet)
if {_message} contains "&aTeleporting you to your island":
cancel event
broadcast "test"