RA-TagSystem

A network-wide chat tag system with a Velocity control plane and a Paper display module, shared through MySQL, with rarity colors, a selection GUI, and PlaceholderAPI support.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.21.x and Velocity


Features

One Tag List for the Whole Network

  • Tags are defined once on the Velocity proxy and stored in a shared MySQL database
  • Every Paper server reads the same tags, so a tag unlocked on one server works on all of them
  • Tags use hex colors (&#RRGGBB) and one of four rarities: COMMON, RARE, EPIC, LEGENDARY

Tag Selection GUI

  • /tag opens a 45-slot inventory GUI
  • Unlocked tags show as name tags, locked tags as gray dye
  • Clicking an unlocked tag activates it, clicking the active tag again deactivates it
  • Item materials, title, and rarity colors are configurable

Admin Control from Velocity

  • Create, delete, and reload tags from the proxy without restarting any server
  • tags.yml on the proxy is the single source of truth, and changes are pushed to the database
  • Unlock or lock a tag for a player, or force-set their active tag

Store Integration

  • /tagsystem unlock|lock|set <player> <tag> can be run from the console, so a store or webhook plugin can grant tags
  • Each tag has an auto-generated permission node: ratag.use.<key>

Dependencies

ComponentRequiredPurpose
MySQL or MariaDBYesShared storage for tags and player tags
PlaceholderAPINo (softdepend, Paper)Exposes the active tag as a placeholder

The project has three modules: core (database and models), paper (display and GUI), and velocity (admin).


Installation

  1. Create an empty MySQL database (default name ra_tagsystem)
  2. Put the Velocity jar into the proxy's plugins/ folder and the Paper jar into each backend server's plugins/ folder
  3. Fill in the same database credentials in both config.yml files
  4. Restart the proxy and the servers
  5. Edit tags in plugins/RA-TagSystem/tags.yml on the proxy, then run /tagsystem admin reload

File Structure

text
1
Velocity proxy: plugins/RA-TagSystem/
├── config.yml       # Database connection
└── tags.yml         # Tag definitions (source of truth)

Paper server: plugins/RA-TagSystem/
└── config.yml       # Database, GUI, rarity colors, messages

Configuration

tags.yml (Velocity)

yaml
1
# Permission node is auto-generated as: ratag.use.<key>
tags:
  merdeka:
    rarity: LEGENDARY
    prefix: "&#999999Merdeka"
  owner:
    rarity: LEGENDARY
    prefix: "&#FF0000Owner"
  vip:
    rarity: EPIC
    prefix: "&#FFD700VIP"
  member:
    rarity: COMMON
    prefix: "&#AAAAAAMember"

config.yml (Paper)

yaml
1
database:
  host: localhost
  port: 3306
  database: ra_tagsystem
  username: root
  password: ""
  pool-size: 10
  useSSL: false

gui:
  title: "&#8A2BE2Tag Selection"
  size: 45
  locked-item-material: GRAY_DYE
  unlocked-item-material: NAME_TAG

rarity-colors:
  COMMON: "&#AAAAAA"
  RARE: "&#00AAFF"
  EPIC: "&#AA00FF"
  LEGENDARY: "&#FFAA00"

messages:
  prefix: "&#999999[Tags] &r"
  tag-locked: "&cYou haven't unlocked this tag yet!"
  tag-set: "&aTag activated: %tag%"
  tag-deactivated: "&aTag deactivated."
  no-permission: "&cYou don't have permission for this tag."

The Velocity config.yml only holds the same database section.


Commands

Paper

CommandDescriptionAccess
/tagOpen the tag selection GUIPlayer
/tag admin set <player> <tag>Set a player's active tagAdmin
/tagsystem unlock <player> <tag>Unlock a tag for a player (console friendly)Admin
/tagsystem lock <player> <tag>Lock a tag againAdmin
/tagsystem set <player> <tag>Activate a tag for a playerAdmin

Velocity

CommandDescription
/tagsystem admin create <name> <rarity> <prefix>Create or update a tag. The prefix must contain a valid &#RRGGBB color
/tagsystem admin delete <name>Remove a tag
/tagsystem admin reloadReload tags.yml into the database
/tagsystem admin set <player> <tag>Set a player's active tag
/tagsystem admin unlock <player> <tag>Unlock a tag for a player
/tagsystem admin lock <player> <tag>Lock a tag for a player

Permissions

PermissionDefaultDescription
ratag.adminopUse /tag admin set on a Paper server
ratag.use.<key>—Auto-generated per tag

PlaceholderAPI

Requires PlaceholderAPI on the Paper server. Identifier: ra.

PlaceholderDescription
%ra_tag%The player's active tag prefix, with colors applied. Empty if none
%ra_tag_raw%The active tag's key (for example vip)
%ra_tag_rarity%The active tag's rarity (COMMON, RARE, EPIC, LEGENDARY)

License

Developed by RajaAditya — rajaaditya.my.id