Tyler

make me a player tag plugin were you can equip a tag with a gui running /tags opens the tags, allow to create multipe tags and make it cost gems{playerpoints} customizable prices also add multiple lore lines allow hex support, have it have filler items with customizable also the amount of gui lines like 27 slots (3 lines) or 4 lines also make it so it shows the avaible tags and you can give the tags with /taggive then it shows all the tags that have been made, make a placeholder like %player_tag% make it work for the tab plugin and lpc, make it so theres a profile were it shows your head with lore, how many tags you own and when you click a tag that you have equipped it removes it (allow 3 lores for that like when you need to buy it then equip it then remove the tag) make every message and slot item configurable in config.yml

Kodari AI
KodariAug 29 at 4:33 pm 3
PlayerTagSystem
A comprehensive player tag plugin with GUI-based tag management. Players open /tags to view available tags in a configurable inventory (27 or 36 slots) with customizable filler items. Tags can be purchased with PlayerPoints (gems) at configurable prices, equipped, and removed. Admins use /taggive to grant tags, with a GUI listing all created tags. Features a profile section showing player head, owned tag count, and tag status with configurable lore lines. Supports hex colors, multiple lore lines, and a %player_tag% placeholder compatible with Tab and LPC plugins. All messages, slot positions, and items are configurable in config.yml.
  1. Create the Gradle project and plugin metadata with optional PlayerPoints, PlaceholderAPI, TAB, and LPC integrations.

  2. Create configurable tag storage, ownership/equipping logic, gem purchases, persistence, and placeholder expansion.

  3. Create the /tags, /taggive, and admin reload commands plus the paginated tag/profile GUI and configurable messages/items.

Implemented the PlayerTags plugin from scratch.

Features included:

  • /tags opens a configurable tag GUI.

  • Configurable GUI rows, slots, filler items, navigation buttons, profile item, names, and lore.

  • Player profile with player head, owned tag count, equipped tag, and PlayerPoints balance.

  • Multiple configurable tags in config.yml.

  • Tag prices using PlayerPoints gems.

  • Purchase, equip, and remove functionality.

  • Separate configurable lore for locked, owned, and equipped tags.

  • Hex color support using &#RRGGBB.

  • /taggive <player> opens a tag-giving GUI for administrators.

  • /tagadmin reload reloads configuration.

  • Persistent ownership and equipped tag data in data.yml.

  • %player_tag% PlaceholderAPI expansion compatible with TAB and LPC.

  • Optional support for PlayerPoints and PlaceholderAPI through soft dependencies.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
19 1,118
src/main/java/com/kodari/playertags/PlayerTagsPlugin.java
package com.kodari.playertags;

import com.kodari.playertags.command.TagAdminCommand;
import com.kodari.playertags.command.TagCommand;
import com.kodari.playertags.command.TagGiveCommand;
import com.kodari.playertags.gui.GuiListener;
import com.kodari.playertags.gui.GuiManager;
import com.kodari.playertags.placeholder.TagPlaceholderExpansion;
import com.kodari.playertags.tag.TagManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class PlayerTagsPlugin extends JavaPlugin {
    private TagManager tagManager;
    private GuiManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        tagManager = new TagManager(this);
        tagManager.load();
        guiManager = new GuiManager();
        Bukkit.getPluginManager().registerEvents(new GuiListener(guiManager), this);

        getCommand("tags").setExecutor(new TagCommand(this));
        getCommand("taggive").setExecutor(new TagGiveCommand(this));
        getCommand("tagadmin").setExecutor(new TagAdminCommand(this));

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new TagPlaceholderExpansion(this).register();
        }
    }

    @Override
    public void onDisable() {
        if (tagManager != null) {
            tagManager.save();
        }
    }

    public TagManager getTagManager() {
        return tagManager;
    }

    public GuiManager getGuiManager() {
        return guiManager;
    }

    public void reloadPlugin() {
        reloadConfig();
        tagManager.reloadTags();
    }
}