The GUI
Running /dstattrack (or /dstat, /stattrack) with no arguments opens a drag-and-drop menu β the friendliest way to apply or remove a stattrack.
A 45-slot (5-row) inventory:
| Slot | Item | Purpose |
|---|---|---|
| 4 | Book (info) | Shows the price and a how-to. |
| 19 | Arrow head | Points at the input slot. |
| 20 | (empty) | Input slot β drop the item to stattrack here. |
| 23 | Green head (Add) | Click to apply. Hidden without dstattrack.add. |
| 24 | Red head (Remove) | Double-click to remove. Hidden without dstattrack.remove. |
Every other slot is filled with decorative glass.
Using it
Section titled βUsing itβ- Run
/dstattrack. - Drop the item you want to track into the input slot (slot 20).
- Click Add to apply (youβre charged the price), or double-click Remove to strip a stattrack.
The Add and Remove buttons are permission-aware: a player who lacks dstattrack.add simply wonβt see the Add head β the same way the command tree hides subcommands a player canβt run.
Closing the menu
Section titled βClosing the menuβIf you close the GUI with an item still in the input slot, it is returned to your inventory automatically (and dropped at your feet if your inventory is full). Nothing is ever lost.
Customising
Section titled βCustomisingβThe title and every buttonβs name/lore come from the gui section of config.yml. All strings are MiniMessage. The slot positions and head textures are fixed in code.