DriftTags
Chat tags players browse, equip and favourite.
A chat tag plugin for Paper servers, with hex colours, gradients, a tag menu, favourites and PlaceholderAPI support.
Features
- Tags with hex colours, gradients and rainbow formatting
- A clickable menu for browsing, equipping and favouriting tags
- Tags split across as many files as you like in
plugins/DriftTags/tags/ - Create and edit tags in game, with no need to touch the config
- Per-tag permissions, display order, descriptions and custom menu icons (including player heads and HeadDatabase heads)
- PlaceholderAPI placeholders for chat, scoreboards and tab lists
- Folia support
Requirements
- Paper (or a fork of it) 26.3, Java 25
- PlaceholderAPI (required)
- HeadDatabase (optional, for
hdb:<id>icons)
Installation
- Download
DriftTags-<version>.jarfrom the latest build, or build it yourself (see below). - Drop it into your server's
plugins/folder along with PlaceholderAPI. - Restart the server. The files are generated in
plugins/DriftTags/(see Folder layout). - Add
%drifttags_tag%to your chat format to show players' tags.
Commands
The main command is /tags. Running it on its own opens the tag menu.
| Command | Description | Permission |
|---|---|---|
/tags | Opens the tags menu | drifttags.use |
/tags help | Shows the help menu | — |
/tags set <tag> [player] | Sets your (or another player's) active tag | drifttags.set / drifttags.set.other |
/tags clear [player] | Clears your (or another player's) active tag | drifttags.clear / drifttags.clear.other |
/tags favorite <tag> | Toggles a tag as a favourite | drifttags.favorite |
/tags random | Equips a random tag you own | drifttags.random |
/tags search <keyword> | Searches the tags you own | drifttags.search |
/tags create <name> <tag> | Creates a new tag in game | drifttags.create |
/tags edit <name|tag|description|permission|order> <tag> <value> | Edits a tag's values | drifttags.edit |
/tags delete <tag> | Deletes a tag | drifttags.delete |
/tags setall <tag> | Sets every player's active tag | drifttags.setall |
/tags convert | Converts an old tags.yml into the tags/ folder format | drifttags.convert |
/tags reload | Reloads the files and says how many problems the console listed | drifttags.reload |
/tags version | Shows which version is running | drifttags.version |
Permissions
| Permission | Description | Default |
|---|---|---|
drifttags.* | Every command | op |
drifttags.user | All non-admin commands (use, categories, clear, favorite, random, search, set) | false |
drifttags.use | Open the tags menu | true |
drifttags.tag.<id> | Use a specific tag (whatever is set as the tag's permission) | — |
Each command's own permission is listed in the table above.
Placeholders
These need PlaceholderAPI.
| Placeholder | Returns |
|---|---|
%drifttags_tag% | The player's active tag |
%drifttags_tag_formatted% | The active tag, or the configured placeholder text if they have none |
%drifttags_tag_stripped% | The active tag's raw content |
%drifttags_tag_name% | The active tag's name |
%drifttags_tag_id% | The active tag's ID |
%drifttags_tag_description% | The active tag's description |
%drifttags_tag_permission% | The active tag's permission |
%drifttags_tag_order% | The active tag's order |
%drifttags_active% | true if the player has a tag equipped |
%drifttags_total% | Total number of tags on the server |
%drifttags_unlocked% | Number of tags the player can use |
%drifttags_favorites% | Number of tags the player has favourited |
%drifttags_joined% | All the player's tags joined together |
%drifttags_get_<id>% | A specific tag's display |
%drifttags_get-formatted_<id>% | A specific tag's display, formatted |
%drifttags_has_<id>% | true if the player can use that tag |
%drifttags_active_<id>% | true if that tag is the player's active tag |
Turning features on and off
The features section at the top of config.yml turns parts of the plugin on or off. A subcommand or menu button whose feature is off is left out. Changes need a restart.
| Switch | Default | What it covers |
|---|---|---|
favourites | true | /tags favorite, the favourites menu and shift-clicking a tag to favourite it. |
random-tag | true | /tags random, which gives the player a random tag they own. |
search | true | /tags search and the search button in the tags menu. |
remove-inaccessible-tags | false | Take a tag off a player automatically when they lose the permission for it. |
placeholders | true | The %drifttags_...% placeholders for PlaceholderAPI. |
remove-inaccessible-tags used to be on its own; servers that had it keep their value, which is moved into features on the next start.
Creating tags
Tags live in YAML files inside plugins/DriftTags/tags/. Every .yml file in that folder is loaded, so you can group
tags however you like. Each bundled file starts with a note explaining every key.
tags:
rainbow: # the tag's id, used in /tags set rainbow
name: 'Rainbow' # the name shown in the menu and /tags search
content: '<gray>[<rainbow>Rainbow</rainbow><gray>]' # what shows in chat
description: # optional lines under it in the menu
- '<gray>A rainbow tag!'
permission: 'drifttags.tag.rainbow' # leave it out so everyone can wear it
order: 1 # position in the menu with sort-type: CUSTOM
icon: # optional menu icon (or just icon: NAME_TAG)
material: NAME_TAG
glow: true
content is MiniMessage, or & codes with style-format: LEGACY in config.yml, and can use PlaceholderAPI
placeholders. Icons also support texture (base64, or hdb:<id> with HeadDatabase), owner (a username, or
self), model-data, enchantments and flags. Tags made in game go to the file named by default-tags-file.
Folder layout
plugins/DriftTags/
config.yml settings, starting with the features: switches
tags/ the tags, in as many files as you like (default.yml, dynamic.yml, pride.yml)
menus/ tags-gui.yml (/tags) and favorites-gui.yml (the favourites menu)
lang/ messages, one file per language: en_US.yml
commands/ tags.yml: turn /tags off, rename it or its sub-commands, add aliases
data/ everything the plugin writes itself; you never need to open it
database.db who wears which tag and their favourites (SQLite; not used with MySQL)
backups/ copies of files the plugin replaced
*.version which version last wrote each file
Every file starts with a boxed header saying how to apply changes, is split into sections, and has a note above
every option. The menus show the slot grid at the top. commands/tags.yml needs a restart; the rest apply with
/tags reload.
Messages and menus
Messages are in lang/en_US.yml, menus in menus/, both in MiniMessage
(<gray>, <color:#facc15> ...); old & codes still work. To translate, copy lang/en_US.yml to a new name (like
lang/es_ES.yml) and set locale: es_ES in config.yml. The note above each message lists its placeholders.
The default look: the prefix is DRIFTTAGS in bold solid gold (#facc15) followed by a dark grey » (no brackets),
gold is the accent colour, soft green means success, soft red an error and amber a warning. To hide the prefix, set
prefix-enabled: false in lang/en_US.yml.
Updates: messages and menu settings you changed are always kept. Ones you never changed get the new default when
an update rewords them; the file before the update is kept in data/backups/. Your tag files are never rewritten.
Updating from 1.6 or older
The first start of 1.7 moves the old files into the layout above, one console line each, and never overwrites or deletes anything (if both the old and new place exist it keeps both and says so):
drifttags.db→data/database.db(with its-journal/-walfiles if there are any)locale/→lang/, the.en_US.yml.version,.tags-gui.yml.versionand.favorites-gui.yml.versionmarkers →data/, old*.old*.ymlbackups inlocale/andmenus/→data/backups/
config.yml, lang/en_US.yml, commands/tags.yml and both menus are then rewritten once with the new notes (the
menus also in MiniMessage), keeping every value you set. Players' tags and favourites are never touched.
Mistakes in the files
A value DriftTags can't use never stops it. The console says which file and option, what was wrong and what is used instead, for example:
[DriftTags] config.yml: style-format "FANCY" isn't one of MINI_MESSAGE, LEGACY, using "MINI_MESSAGE"
[DriftTags] menus/tags-gui.yml: tag-item.material "BANANA" isn't an item name, using "STONE"
[DriftTags] tags/default.yml: tags.broken.order "abc" isn't a whole number, using 0
/tags reload tells whoever ran it how many problems there were. Slots outside a menu's rows are left out, so a
menu always opens.
Works with other DriftSuite plugins
Every feature lives in exactly one DriftSuite plugin, so no two plugins fight over the same command, chat message or part of the screen.
| Plugin | Handles |
|---|---|
| DriftChat | Chat format, public chat filter, emojis, mentions, announcements, join and leave messages, cross-server chat, private messages (/msg, /reply, /ignore) and private message spy (/spymsg, /socialspy) |
| DriftStaff | Staff mode, vanish, punishments, reports, staff chat, staff teleports (/stp, /stphere), /invsee, /clearchat, /lockchat, /slowchat, command/sign/book spy, filter for private messages and signs, 2FA |
| DriftTAB | Tab list, name tags, sidebar scoreboard, boss bars and other tab list features |
| DriftTags | Tags and the tag menu. Tags are shown through %drifttags_tag% in DriftChat and DriftTAB |
| DriftEconomy | Currencies, /pay, Vault and Treasury |
| DriftCombat | Combat tagging, combat-log punishments, combat timer in the action bar and boss bar, safe zones, item cooldowns |
| DriftLag | Entity clearing, entity and spawner limits, lag tools |
| DriftHomes | Homes, the homes menu, public homes, home invites and /visit |
| DriftEssentials | Spawn, warps, /tpa, /back, /rtp, kits, nicknames, AFK, /motd, player tools (/craft, /enderchest, /hat, /trash) and admin shortcuts (/gmc, /fly, /heal, /speed) |
| DriftShowcase | The rank showcase NPC: try a rank's look and items before buying it |
How they work together:
- DriftStaff marks vanished staff with the standard
vanishedmetadata. DriftTAB leaves them out of the tab list and online counts, DriftChat treats them as offline in/msg,/ignoreand tab completion, DriftEssentials leaves them out of/tpa,/nearand/seen, and they can't be hurt, so DriftCombat never puts them in combat. - DriftStaff mutes and
/lockchatstop a message before DriftChat formats it, and muted players can't use/msg. - DriftChat filters public chat. DriftStaff filters private messages, other commands and signs. Every message is filtered once.
- DriftLag never removes or limits NPCs, including DriftCombat's combat-log NPCs.
- DriftHomes and DriftEssentials ask DriftCombat before every teleport, so
/home,/spawn,/warp,/tpa,/backand/rtpare blocked during combat. Both use the same warmup, cooldown and safe-landing rules. /backin DriftEssentials remembers where/homeand/visittook you from.- DriftChat sends join and leave messages. DriftEssentials only adds the first-join welcome and
/motd. - Staff teleports stay in DriftStaff. DriftEssentials only has the player ones (
/tpa,/spawn,/warp,/back). - DriftEssentials nicknames are the player's display name, which DriftChat's
{displayname}shows, and%driftessentials_nick%works in DriftTAB. - DriftStaff's
/checkmenu has a button that opens the player's DriftHomes homes. - Prices in DriftHomes and DriftEssentials go through Vault, so they use DriftEconomy when
features.vaultis on in its config. - For a combat sidebar, add a DriftTAB scoreboard with
display-condition: "%driftcombat_in_combat_raw%=true". DriftCombat's README has the full example. - DriftShowcase reads DriftEssentials kits straight from its
kits.yml, so a rank in the showcase can show a kit's items. - DriftShowcase shows LuckPerms group prefixes above its NPC and in its ranks menu, and knows which ranks a player already has. It only reads from LuckPerms and never gives a group or permission.
- DriftShowcase asks DriftCombat before every preview, so ranks can't be tried on during combat. Vanished staff and staff in DriftStaff's staff mode can't try them on either.
Messages, sounds and menus
- Short confirmations show on the action bar above the hotbar instead of in chat. Any message that starts with
[actionbar]goes there; remove it to send that message in chat again. - Replies to a player's own command or menu click play a soft sound: one for success, one for errors. Change or turn them off with
sound-successandsound-errorinlang/en_US.yml. Broadcasts never make a sound. - The tag menus have the same layout as every DriftSuite menu: page arrows and a Close button along the bottom.