sealzles

can you add me a /trims plugin that changes the players trims it shows a gui that has every armor piece like helmet chestplate leggings and boots and then shield in bottom then it lets you change your trims and automaticlly enchants your armor with curse of vanish and remembers the trims and shield pattern

Kodari AI
KodariSep 20 at 9:24 pm 2
TrimCustomizer
A Bukkit plugin providing a GUI-based armor trim customization system. Players open a trim menu displaying all armor pieces (helmet, chestplate, leggings, boots) plus shield, then select from available trim patterns and materials. The plugin automatically applies the Curse of Vanishing enchantment to customized armor, persists trim selections per player, and re-applies saved trims when armor is re-equipped. Features a clickable inventory GUI with buttons for each armor slot and trim option, using the lazy-initialized InventoryGUI framework with centralized event management.

Implemented the /trims plugin from scratch.

Features included:

  • /trims command with GUI

  • Helmet, chestplate, leggings, boots, and off-hand shield sections

  • Armor trim material and pattern selection

  • Shield color and banner pattern selection

  • Automatic Curse of Vanishing enchantment

  • Persistent trim and shield settings in config.yml

  • Settings reapplied when players join

  • Back, close, remove-trim, and pagination controls

  • Paper 1.20.6 build configuration with Java 21

  • XSeries-compatible material and enchantment handling

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 837
src/main/java/com/kodari/trims/TrimsPlugin.java
package com.kodari.trims;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class TrimsPlugin extends JavaPlugin {
    private TrimManager trimManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        trimManager = new TrimManager(this);
        Bukkit.getPluginManager().registerEvents(new TrimsListener(trimManager), this);

        TrimsCommand command = new TrimsCommand(trimManager);
        if (getCommand("trims") != null) {
            getCommand("trims").setExecutor(command);
            getCommand("trims").setTabCompleter(command);
        }
    }

    public TrimManager getTrimManager() {
        return trimManager;
    }
}