Skip to content

Chat Previews

Players can type special tokens in chat to show their held item or full inventory as a clickable preview. Other players can click the token to open a read-only GUI.

TokenShows
[item], [i]Held item (main hand)
[inventory], [inv]Full inventory (storage + armor + offhand)

Curly brace variants also work: {item}, {i}, {inventory}, {inv}.

  1. Player types Check out my sword [item] in chat
  2. RexChat replaces [item] with a clickable component showing the item name and amount
  3. Other players can hover to see item details and click to open a preview GUI
  4. The GUI is read-only — items cannot be taken or moved

Inventory snapshots are stored temporarily and expire automatically. A cleanup task runs every 5 minutes.

chat-previews:
enabled: true
tokens:
item: ["[item]", "[i]"]
inventory: ["[inventory]", "[inv]"]
messages:
preview:
target-not-found: "%rc_prefix%&cPlayer not found."
item:
title: "&6Item: &f{player}"
none: "%rc_prefix%&7You are not holding any item."
hover: "&7Click to view {player}'s item"
text: "&7[&f{Item} &bx{Amount}&7]"
singular-text: "&7[&f{Item}&7]"
empty-label: "&7[&eHold an item to show it&7]"
token-empty-error: "%rc_prefix%&cYou need to hold an item to show it."
open: "%rc_prefix%&7Opening item preview for &6{player}"
inventory:
title: "&6Inventory: &f{player}"
hover: "&7Click to view {player}'s inventory"
label-template: "&7[&fInventory&7]"
open: "%rc_prefix%&7Opening inventory preview for &6{player}"
PermissionDescriptionDefault
rexchat.previewUse chat preview tokenstrue
rexchat.preview.itemOpen item previewstrue
rexchat.preview.invOpen inventory previewstrue

Set chat-previews.enabled: false to disable the entire feature. Tokens will be displayed as plain text and preview commands will return an error.