RA-TagSystem
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
/tagopens 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.ymlon 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
| Component | Required | Purpose |
|---|---|---|
| MySQL or MariaDB | Yes | Shared storage for tags and player tags |
| PlaceholderAPI | No (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
- Create an empty MySQL database (default name
ra_tagsystem) - Put the Velocity jar into the proxy's
plugins/folder and the Paper jar into each backend server'splugins/folder - Fill in the same database credentials in both
config.ymlfiles - Restart the proxy and the servers
- Edit tags in
plugins/RA-TagSystem/tags.ymlon 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: "󴈿Merdeka"
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: "A2BE2Tag Selection"
size: 45
locked-item-material: GRAY_DYE
unlocked-item-material: NAME_TAG
rarity-colors:
COMMON: "&#AAAAAA"
RARE: "�AAFF"
EPIC: "&#AA00FF"
LEGENDARY: "&#FFAA00"
messages:
prefix: "󴈿[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
| Command | Description | Access |
|---|---|---|
/tag | Open the tag selection GUI | Player |
/tag admin set <player> <tag> | Set a player's active tag | Admin |
/tagsystem unlock <player> <tag> | Unlock a tag for a player (console friendly) | Admin |
/tagsystem lock <player> <tag> | Lock a tag again | Admin |
/tagsystem set <player> <tag> | Activate a tag for a player | Admin |
Velocity
| Command | Description |
|---|---|
/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 reload | Reload 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
| Permission | Default | Description |
|---|---|---|
ratag.admin | op | Use /tag admin set on a Paper server |
ratag.use.<key> | — | Auto-generated per tag |
PlaceholderAPI
Requires PlaceholderAPI on the Paper server. Identifier: ra.
| Placeholder | Description |
|---|---|
%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