code

Documentation on the code packet sent by the client to the server.

Description

This packet is sent by the client whenever the player tries to send a message with a leading /. Below are tables for both available commands, and old, removed commands.

Note: The following command tables don't include any item codes, though you can find a list on the fan-made wiki here.

Parameters

Key
Type
Description

ticket

string

The incoming client's PlayFab account ID.

Available Commands

Command
Server-sided?
Options (& their type)
Action

pop

Shows a pop-up box in the middle of the player's screen near the top with how many critters are online.

freeitem

Grants the player the latest free item, if one is available.

tbt

Grants the player the latest Throwback Thursday (TBT) item, if one is available.

darkmode

Grants the player the latest dark mode item, if one is available, and enables dark mode on the game page.

gear

list item IDs

Replaces the player's gear with the specified item IDs, if the player owns them.

balloons

Toggles the visibility of "balloons" (chat messages and emotes).

nicknames

Toggles the visibility of nicknames of players.

join

string room ID

Attempts to join the specified room ID.

emote

string emote ID

Sends the specified emote ID.

treasure

Toggles the visibility of the current room's "treasure" (the invisible image that defines all Trigger colliders).

navmesh

Toggles the visibility of the current room's navigation mesh (the invisible image that defines where the player can walk).

zoom

number magnification amount

Magnifies the game canvas by a certain amount.

inventory

Opens the player's inventory GUI.

ignore

string nickname

Ignores a certain player - which is the equivalent to blocking them and hides them in every part of the game.

Removed Commands

Command
Server-sided?
Action

news

Displays an alert with the latest in-game news.

now

Displays an alert with the server's local time.

beep

Displays an pop-up, same as when being granted an item, telling the player they are connected to the server.

game

Opens a WebGL player on the left side of the screen and runs a preview of the card game test.

shop

Opens the shop pane on the right side of the screen.

Last updated