Marmot Player Data
In Marmot, the server-side API provides an automatically handled object detailing the player’s client status.
For example:
// returns true if the handshake packet was successfully returned upon joiningplayer.marmot?.isMarmot
// returns true if the player is holding left clickplayer.marmot?.holdingLeftClick
// returns true if the player is holding right clickplayer.marmot?.holdingRightClick
// returns the player's currently rendered UI, or nullplayer.marmot?.currentWindow
// returns the player's last rendered UI, or nullplayer.marmot?.previousWindow
All of these properties are handled automatically by the server, and should only be gotten, never set.
The player’s Marmot object CAN be null, and will be if the player is not using Marmot.