Chat Previews
Overview
Section titled “Overview”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.
Tokens
Section titled “Tokens”| Token | Shows |
|---|---|
[item], [i] | Held item (main hand) |
[inventory], [inv] | Full inventory (storage + armor + offhand) |
Curly brace variants also work: {item}, {i}, {inventory}, {inv}.
How It Works
Section titled “How It Works”- Player types
Check out my sword [item]in chat - RexChat replaces
[item]with a clickable component showing the item name and amount - Other players can hover to see item details and click to open a preview GUI
- 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.
Configuration
Section titled “Configuration”chat-previews: enabled: true tokens: item: ["[item]", "[i]"] inventory: ["[inventory]", "[inv]"]Messages
Section titled “Messages”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}"Permissions
Section titled “Permissions”| Permission | Description | Default |
|---|---|---|
rexchat.preview | Use chat preview tokens | true |
rexchat.preview.item | Open item previews | true |
rexchat.preview.inv | Open inventory previews | true |
Disabling
Section titled “Disabling”Set chat-previews.enabled: false to disable the entire feature. Tokens will be displayed as plain text and preview commands will return an error.