π
FuryKits_Full_Prompt.txt
txt
501 lines
βΆ
Create a professional, modern, production-quality Minecraft FFA/PvP Kit plugin named "FuryKits".
IMPORTANT:
- Original implementation; do not copy existing plugin source code.
- No normal /kits selection menu.
- Players receive kits with /kit .
- GUIs are only for kit customization and armor trim customization.
- HALF/MEDIUM/FULL permissions apply ONLY to Armor Trims.
- Generate complete, compilable source code with no placeholders.
PLATFORM:
- Paper 1.21.4+
- Java 21
- Maven
- Modern Paper API
- Adventure API / MiniMessage
- SQLite for persistent player data
- No deprecated APIs
COMMANDS:
Player:
/kit
/kit edit
/kit save
/kit cancel
/kit reset
/kit trim
Admin:
/kit create - Create kit from current inventory
/kit delete
/kit rename
/kit give
/kit reload
/kit list
Add complete tab completion.
PERMISSIONS:
furkits.use
furkits.edit
furkits.admin
furkits.kit.
TRIM TIERS ONLY:
furkits.trim.half
furkits.trim.medium
furkits.trim.full
KIT SYSTEM:
Every kit must support:
- Main inventory and exact item positions
- Hotbar
- Armor
- Offhand
- Enchantments
- Custom names and lore
- Item flags
- Unbreakable state
- Custom model data
- Potion effects
- Attributes
- Modern Paper item components where supported
Admins create kits using /kit create . Save complete item metadata safely.
PERSONAL KIT LAYOUT:
Each player can save a separate personal layout for every kit.
Example: two players can use the same NethPot kit but have completely different hotbar/item positions.
The original kit must never be modified by a player's personal customization.
CUSTOMIZE KIT GUI:
Command: /kit edit
Title default: "Customize Kit"
Follow the provided reference style:
- Show kit items and editable inventory layout
- Show armor and offhand where supported
- Allow rearranging kit items and hotbar
- Provide Save, Cancel, Reset, and Select Trim controls
- The player inventory/editor layout should work naturally and securely
GUI FLOW:
/kit edit nethpot
β Customize Kit
β Rearrange items
β Select Trim
β Trims
β Available Trims
β Select pattern/material
β Preview
β Apply
β Return to Customize Kit
β Save
GUI CUSTOMIZATION:
Create gui.yml. Do not hardcode GUI values.
Admins must be able to change:
- Titles
- Sizes
- Button materials
- Button slots
- Names
- Lore
- Custom model data
- Enchantments
- Glow
- Item flags
- Decorative items and slots
- Pagination buttons
- Back buttons
- Locked trim appearance
Example:
kit-editor:
title: "Customize Kit"
size: 54
buttons:
save:
enabled: true
material: LIME_DYE
slot: 45
name: "Save"
lore:
- "Save your kit layout"
cancel:
enabled: true
material: BARRIER
slot: 46
name: "Cancel"
reset:
enabled: true
material: REDSTONE
slot: 47
name: "Reset"
trim:
enabled: true
material: SMITHING_TABLE
slot: 49
name: "Select Trim"
lore:
- "Open Trim Menu"
ARMOR TRIM SYSTEM:
Add a complete armor trim customization system inspired by the provided reference images.
IMPORTANT:
HALF/MEDIUM/FULL limits ONLY the Armor Trim options.
Do NOT restrict kit usage, kit editing, layout editing, saving, resetting, commands, or normal kit items with these tier permissions.
PERMISSION PRIORITY:
FULL > MEDIUM > HALF
Rules:
- furkits.trim.half: limited/basic configured trims
- furkits.trim.medium: HALF trims + additional MEDIUM trims
- furkits.trim.full: all configured trims
- If a player has multiple permissions, use the highest tier.
CONFIGURABLE TRIM TIERS:
The exact trim patterns and materials must be configurable.
Example:
trim-tiers:
half:
permission: "furkits.trim.half"
patterns:
- sentry
- dune
- coast
- wild
- ward
materials:
- iron
- copper
- gold
- redstone
- lapis
medium:
permission: "furkits.trim.medium"
includes-lower-tiers: true
patterns:
- tide
- snout
- rib
- eye
- spire
materials:
- emerald
- diamond
- quartz
full:
permission: "furkits.trim.full"
includes-lower-tiers: true
access-all-patterns: true
access-all-materials: true
Support all vanilla trim patterns and materials supported by the target Minecraft version.
KIT-SPECIFIC TRIMS:
Each kit can enable/disable trims.
Example:
kits:
nethpot:
display-name: "NethPot"
permission: "furkits.kit.nethpot"
enabled: true
trims:
enabled: true
application-mode: "ALL_ARMOR"
crystal:
display-name: "Crystal"
enabled: true
trims:
enabled: true
sword:
enabled: true
trims:
enabled: false
If trims are disabled, hide or disable the Select Trim button according to configuration, and /kit trim must show a configurable message.
TRIM GUI:
Title default: "Trims"
Display and preview:
- Helmet
- Chestplate
- Leggings
- Boots
Buttons:
- Available Trims
- Apply
- Reset Trim
- Back
All slots/materials must be configurable.
Example:
trim-editor:
title: "Trims"
size: 54
armor:
helmet-slot: 12
chestplate-slot: 21
leggings-slot: 30
boots-slot: 39
buttons:
available-trims:
material: SMITHING_TABLE
slot: 24
name: "Available Trims"
apply:
material: LIME_DYE
slot: 49
name: "Apply"
reset:
material: REDSTONE
slot: 48
name: "Reset Trim"
back:
material: ARROW
slot: 45
name: "Back"
AVAILABLE TRIMS GUI:
Clicking Available Trims opens "Available Trims".
Show trims based on the player's highest trim tier:
- HALF: HALF only
- MEDIUM: HALF + MEDIUM
- FULL: all configured trims
Support pagination, previous page, next page, and back buttons.
LOCKED TRIMS:
Config option:
trim-permissions:
hide-locked-trims: true
If true, locked trims are hidden.
If false, show configurable locked items, for example:
locked-trim:
material: BARRIER
name: "Locked"
lore:
- "You need a higher Trim tier."
TRIM SELECTION:
1. Select trim pattern
2. Select trim material
3. Update armor preview
4. Click Apply
5. Return to kit customization
6. Save to persist
TRIM PREVIEW:
Do not permanently modify saved kit data until the player saves.
Preview helmet, chestplate, leggings, and boots correctly when pattern/material changes.
TRIM APPLICATION MODES:
Configurable per kit:
- ALL_ARMOR: apply selected trim to all armor
- INDIVIDUAL: allow choosing which armor pieces receive the trim
PERSONAL DATA:
Store separately for every player and every kit:
- Player UUID
- Kit name
- Personal inventory layout
- Personal armor layout
- Personal offhand layout
- Selected trim pattern
- Selected trim material
- Selected armor pieces
- Last saved data
Use SQLite. Persist after disconnects, restarts, and reloads.
Use async database operations where safe, but never access Bukkit API asynchronously.
KIT GIVING:
When /kit is used:
1. Check kit exists
2. Check permission
3. Clear inventory if configured
4. Clear effects if configured
5. Apply kit
6. Apply saved personal layout if available
7. Apply saved trim if enabled
8. Apply armor/offhand
9. Apply configured potion effects
10. Heal/feed if configured
11. Send configurable message
Example config:
kit-giving:
clear-inventory: true
clear-effects: true
heal-player: true
feed-player: true
apply-personal-layout: true
apply-personal-trim: true
SAVE:
Validate active editing session, kit existence, item validity, duplication, and layout before saving.
Save layout + armor + offhand + trim configuration.
CANCEL:
Discard unsaved changes and safely restore the player's original inventory, armor, offhand, and relevant state.
RESET:
Reset only the player's personal customization for that kit:
- Inventory layout
- Armor/offhand layout
- Trim settings
Never modify the original kit.
Optional confirmation must be configurable.
DISCONNECT/SHUTDOWN:
If player disconnects while editing, default behavior is cancel and safely restore the original state.
On plugin disable/shutdown, safely finish database operations and clean up resources.
Prevent item loss and duplication.
SECURITY:
Prevent:
- Item duplication
- Shift-click exploits
- Number-key swaps
- Double-click collection exploits
- Drag exploits
- Dropping temporary editor items
- Moving editor items outside allowed areas
- Saving duplicated/invalid items
- Editing without permission
- Invalid item/component manipulation
Use a secure editing-session system and validate inventory events.
MESSAGES:
Create messages.yml with MiniMessage support and configurable prefix.
Include messages for:
- No permission
- Kit not found
- Kit disabled
- Kit received
- Layout saved
- Layout cancelled
- Layout reset
- Trims unavailable for kit
- No trim access
- Trim applied
Example:
prefix: "[FuryKits ] "
no-permission: "You don't have permission."
kit-not-found: "That kit does not exist."
kit-received: "You received the %kit% kit."
layout-saved: "Your kit customization has been saved!"
layout-cancelled: "Your kit customization was cancelled."
layout-reset: "Your kit customization has been reset."
trim-not-available: "Armor Trims are not available for this kit."
no-trim-access: "You don't have access to Armor Trims."
trim-applied: "Your Armor Trim has been applied."
FILES TO GENERATE:
- pom.xml
- plugin.yml
- config.yml
- kits.yml
- messages.yml
- gui.yml
- Complete Java source code
PLUGIN ARCHITECTURE:
Use clean modular packages, for example:
com.furykits
βββ FuryKits.java
βββ command
βββ kit
βββ editor
βββ trim
βββ gui
βββ database
βββ config
βββ listener
βββ util
Suggested classes include:
- Kit
- KitManager
- KitSerializer
- KitEditorManager
- EditingSession
- KitEditorListener
- TrimManager
- TrimTier
- TrimSelection
- TrimListener
- GuiManager
- CustomizeKitGui
- TrimGui
- AvailableTrimsGui
- DatabaseManager
- PlayerKitDataRepository
- ConfigManager
- PlayerListener
- ItemUtils
You may improve the architecture where necessary.
CODE QUALITY:
- Java 21
- Modern Paper APIs
- No deprecated APIs
- Clean OOP
- Proper error handling and logging
- Thread-safe database handling
- Efficient for FFA servers
- Complete tab completion
- No memory leaks
- Proper resource cleanup
MAVEN:
Generate a complete pom.xml with all required dependencies.
The project must successfully build with:
mvn clean package
PLUGIN.YML:
Include plugin name, main class, version, API version, all commands, and permissions.
FINAL REQUIREMENTS:
Generate the COMPLETE project:
1. Complete folder structure
2. Complete pom.xml
3. Complete plugin.yml
4. Complete config.yml
5. Complete kits.yml
6. Complete messages.yml
7. Complete gui.yml
8. Every Java source file
9. All command classes
10. All GUI classes
11. Complete trim system
12. SQLite implementation
13. All listeners
14. Complete serialization
Do NOT use placeholders.
Do NOT use pseudo-code.
Do NOT leave TODO sections instead of implementation.
Ensure imports are correct and the Maven project compiles successfully.
FINAL REMINDER:
HALF / MEDIUM / FULL permissions apply ONLY to ARMOR TRIMS.
All other plugin features work normally with their standard permissions.
Create the Maven project, plugin metadata, and configurable YAML files.
Implement kit models, serialization, SQLite persistence, configuration, and trim-tier logic.
Implement secure editing sessions, customization/trim GUIs, listeners, and item metadata handling.
Implement all
/kitsubcommands, tab completion, kit application, reload/shutdown, and registration.
Created the complete FuryKits Maven project with:
Paper 1.21.4 / Java 21 setup
SQLite persistence with shaded dependencies
Configurable kits, messages, GUI layouts, and trim tiers
/kitcommand suite with tab completionPersonal per-kit layouts and armor trim selections
Secure inventory editing sessions
Customize Kit, Trim, and Available Trims GUIs
HALF/MEDIUM/FULL permissions restricted exclusively to armor trims
Kit serialization, metadata preservation, potion effects, armor, offhand, and item layouts
Disconnect, reset, cancel, reload, and shutdown handling
IMPORTANT UPDATE β APPLY THESE CHANGES TO THE EXISTING FURYKITS PLUGIN.
Do not recreate unrelated features. Keep the existing plugin features and only fix/update the following requirements.
==================================================
- REMOVE /KITS COMMAND COMPLETELY
==================================================
Remove any command or syntax related to:
/kits /kits <kitname>
Also remove any alias, example, tab completion, plugin.yml command entry, or internal handling related to /kits.
Players must receive kits ONLY using:
/kit <kitname>
Example:
/kit nethpot
Do NOT add individual commands like:
/nethpot /crystal
==================================================
- FIX KIT EDITOR DESIGN
==================================================
The current Kit Editor does not properly match the provided reference images.
Update the Kit Editor to follow the reference-style layout as closely as possible within Minecraft inventory GUI limitations.
The editor should have clearly separated areas:
- Editable Kit Area
- Player Inventory Area
- Protected Control/Button Area
- Decorative Area
The Kit Editor should NOT look like a random chest GUI filled with buttons.
The kit items must stay inside the editable kit area.
The player's normal inventory must be handled separately.
The GUI title, size, slots, buttons, materials, names, lore, and decorations must all be configurable.
==================================================
- FIX GUI ITEMS GOING INTO INVENTORY
==================================================
Currently, GUI/menu items can enter the player's inventory.
THIS MUST BE FIXED.
GUI-only items include:
- Save button
- Cancel button
- Reset button
- Select Trim button
- Apply button
- Back button
- Previous Page button
- Next Page button
- Locked items
- Decorative items
These items must NEVER:
- Enter the player's inventory
- Enter the editable kit slots
- Be picked up
- Be shift-clicked
- Be dragged
- Be swapped using number keys
- Be dropped
- Be duplicated
- Be saved as kit items
Create strict protected slot handling.
Separate slots into:
EDITABLE_KIT_SLOTS PROTECTED_CONTROL_SLOTS DECORATION_SLOTS PLAYER_INVENTORY_SLOTS
Only EDITABLE_KIT_SLOTS must be allowed to change the player's personal kit layout.
==================================================
- ADD AND FIX SELECT TRIM BUTTON
==================================================
The Kit Editor MUST contain a fully working:
Select Trim
button.
This button must be visible when Armor Trims are enabled for the current kit.
Clicking Select Trim MUST:
- Check whether trims are enabled for the kit.
- Check the player's trim permission.
- Open the Trim Editor immediately.
- Preserve the current Kit Editor session.
- Preserve all unsaved kit layout changes.
- Not lose or reset the current editing session.
IMPORTANT:
The Trim button must actually work.
Do NOT only add the button visually.
The click listener and GUI navigation must be fully implemented.
==================================================
- FIX TRIM EDITOR
==================================================
The Trim Editor currently does not open correctly.
Fix and fully implement it.
Both of these must work:
/kit trim <kitname>
AND:
/kit edit <kitname>
β Click Select Trim
β Trim Editor opens
Both methods must open the same functional Trim Editor.
==================================================
- REFERENCE-STYLE TRIM FLOW
==================================================
Use the provided images as the main design and flow reference.
The required flow is:
/kit edit nethpot
β
Customize Kit
β
Click Select Trim
β
Trims
β
Available Trims
β
Select Trim Pattern
β
Select Trim Material
β
Preview Armor
β
Apply
β
Return to Customize Kit
β
Save
Make this flow actually functional.
==================================================
- FIX AVAILABLE TRIMS
==================================================
The Available Trims menu must properly load and display trims.
It must not open as an empty or broken menu.
Permission tiers:
furkits.trim.half furkits.trim.medium furkits.trim.full
Rules:
HALF:
Show only configured HALF trims.
MEDIUM:
Show HALF + MEDIUM trims.
FULL:
Show all configured trims.
Priority:
FULL > MEDIUM > HALF
If a player has multiple trim permissions, use the highest available tier.
IMPORTANT:
These permissions apply ONLY to Armor Trims.
Do NOT restrict:
- Kit usage
- Kit editing
- Saving
- Resetting
- Inventory layout editing
- Normal kit items
- Other plugin features
==================================================
- FIX TRIM MENU STATE
==================================================
Create a proper temporary editing state for Armor Trims.
When the player enters the Trim Editor from the Kit Editor:
Do NOT destroy the current editing session.
Store:
- Current kit layout
- Selected trim pattern
- Selected trim material
- Selected armor pieces
- Current GUI state
When the player clicks Back from the Trim Editor:
Return them to the Customize Kit Editor.
Their previous unsaved kit layout must still be there.
==================================================
- ADD LIVE TRIM PREVIEW
==================================================
The Trim Editor must display:
- Helmet
- Chestplate
- Leggings
- Boots
When the player selects:
- Trim Pattern
- Trim Material
The armor preview must update.
Do NOT permanently save the trim immediately.
The trim should remain temporary until:
Apply
and final Kit Editor:
Save
==================================================
- FULL GUI CUSTOMIZATION
==================================================
Make the ENTIRE GUI system fully customizable through gui.yml.
Do not hardcode GUI design values.
Allow customization of:
- GUI titles
- GUI sizes
- Editable slots
- Control slots
- Decoration slots
- Armor preview slots
- Button slots
- Button materials
- Button names
- Button lore
- Custom model data
- Enchantments
- Glow
- Item flags
- Decorative items
- Decorative slots
- Previous page button
- Next page button
- Back button
- Locked trim item
- Selected trim indicator
This applies to:
- Customize Kit Editor
- Trim Editor
- Available Trims GUI
==================================================
- KIT EDITOR CONFIGURATION
==================================================
The Kit Editor must support configuration similar to:
kit-editor:
title: "<gray>Customize Kit"
size: 54
editable-kit-slots: - configurable
protected-control-slots: - configurable
buttons:
save: enabled: true material: LIME_DYE slot: configurable name: configurable lore: configurable
cancel: enabled: true material: BARRIER slot: configurable name: configurable lore: configurable
reset: enabled: true material: REDSTONE slot: configurable name: configurable lore: configurable
trim: enabled: true material: SMITHING_TABLE slot: configurable name: configurable lore: configurable
==================================================
- TRIM EDITOR CONFIGURATION
==================================================
Make these configurable:
- GUI title
- GUI size
- Helmet preview slot
- Chestplate preview slot
- Leggings preview slot
- Boots preview slot
- Available Trims button
- Apply button
- Reset button
- Back button
- Decorations
==================================================
- SECURITY FIX
==================================================
Properly handle:
- InventoryClickEvent
- InventoryDragEvent
- Hotbar number key swapping
- Shift-clicking
- Double-click collection
- Item dropping
- GUI closing
- Player disconnect
GUI items must never remain with the player after the editor closes.
Prevent:
- Item duplication
- GUI item duplication
- Saving GUI buttons as kit items
- Moving protected buttons
- Invalid inventory modifications
==================================================
- FINAL VALIDATION
==================================================
Before finalizing the updated plugin, verify:
- There is NO /kits command.
- /kit <kitname> works.
- /kit edit <kitname> opens Customize Kit.
- Customize Kit follows the provided reference-style flow.
- Select Trim button exists when trims are enabled.
- Clicking Select Trim actually opens Trim Editor.
- /kit trim <kitname> also opens Trim Editor.
- Available Trims loads correctly.
- HALF permission shows limited trims.
- MEDIUM shows HALF + MEDIUM.
- FULL shows all configured trims.
- Trim permissions affect ONLY Armor Trims.
- Returning from Trim Editor preserves the current kit layout.
- GUI buttons never enter player inventory.
- GUI buttons are never saved as kit items.
- All GUI designs are fully configurable.
- No existing unrelated plugin features should be removed.
- The updated project must compile successfully with:
mvn clean package
IMPORTANT:
Apply these changes to the existing plugin instead of removing working features.
Do not use placeholders.
Do not use pseudo-code.
Do not only modify configuration files.
Actually implement and fix:
- GUI classes
- GUI listeners
- Click handling
- Trim navigation
- Editing sessions
- Inventory protection
- Trim loading
- Permission tier handling
Remove
/kitscompletely and verify/kitcommand registration/handling.Rework the kit-editor GUI with protected/editable slot separation and configurable layout.
Implement trim navigation, temporary editing sessions, permissions, available-trim loading, and live preview.
Harden all inventory interactions and cleanup paths, then validate configuration and build consistency.
Task 1 is complete: /kits was removed as the kit command alias. Iβm now applying the editor layout split so configured editable slots, protected controls, and decorative slots are distinct instead of treating the first 41 GUI slots as editable.
Task 2 is complete: the kit editor now uses configurable editable slots, separate protected/decorative regions, and only permits changes in editable kit slots. Saving reads the configured mapping rather than hardcoded slots. Next Iβm fixing trim access, loading, navigation, and temporary state handling.
Task 3 is complete: both trim entry paths now use the same session-preserving flow, trim tiers honor configured permissions, available trims load safely, and trim selection remains temporary until the final kit save. Iβm now tightening event-level protection and completing GUI customization support.
A consistency check found two earlier GUI replacements had not landed in the current file contents, so Iβm reapplying those changes directly and fixing the remaining persisted-trim parsing and configured-slot save path before final validation.The editorβs final protection pass is being landed together now: command cleanup, configurable slot mapping, state-safe session reads, GUI lifecycle cleanup, and the complete GUI configuration schema are being synchronized so no earlier partial state can reintroduce the old hardcoded behavior.
Implemented the FuryKits updates:
Removed
/kitsalias and all command help references; kits now use/kit <kitname>.Reworked the kit editor around configurable editable, protected, and decorative slot areas.
Added strict inventory protection for clicks, shift-clicks, hotbar swaps, drops, double-click collection, and drags.
Added configurable GUI titles, sizes, button layouts, decorations, preview items, custom model data, glow, flags, and enchantments.
Fixed
Select Trimnavigation and preserved unsaved kit layouts across trim menus.Unified
/kit trim <kitname>and/kit edit <kitname>βSelect Trimbehavior.Fixed trim permission priority and configured permission nodes:
FULL > MEDIUM > HALF
HALF shows HALF trims
MEDIUM shows HALF + MEDIUM
FULL shows all configured/full-access trims
Added functional trim pattern/material selection, locked entries, pagination, selected indicators, armor previews, reset, apply, and back navigation.
Hardened player disconnect cleanup and malformed persisted trim-piece handling.
Removed the obsolete
editor.editable-slotsconfiguration entry.Verified that no
/kitsalias or command reference remains.
mvn clean package was not run because Maven/build tooling is unavailable in this environment; the project verifier will perform compilation automatically.
package com.furykits;
import com.furykits.command.KitCommand;
import com.furykits.config.ConfigManager;
import com.furykits.database.DatabaseManager;
import com.furykits.gui.GuiListener;
import com.furykits.gui.GuiManager;
import com.furykits.kit.KitManager;
import com.furykits.editor.EditorManager;
import com.furykits.trim.TrimManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class FuryKits extends JavaPlugin {
private ConfigManager configManager;
private DatabaseManager databaseManager;
private KitManager kitManager;
private TrimManager trimManager;
private GuiManager guiManager;
private EditorManager editorManager;
@Override
public void onEnable() {
saveDefaultConfig();
configManager = new ConfigManager(this);
configManager.loadFiles();
databaseManager = new DatabaseManager(this);
databaseManager.initialize();
kitManager = new KitManager(this, configManager);
kitManager.load();
trimManager = new TrimManager(configManager);
guiManager = new GuiManager();
editorManager = new EditorManager(this, databaseManager, kitManager, trimManager, guiManager, configManager);
Bukkit.getPluginManager().registerEvents(new GuiListener(guiManager, editorManager), this);
KitCommand command = new KitCommand(this, configManager, kitManager, trimManager, editorManager);
getCommand("kit").setExecutor(command);
getCommand("kit").setTabCompleter(command);
}
@Override
public void onDisable() {
if (editorManager != null) editorManager.shutdown();
if (kitManager != null) kitManager.save();
if (databaseManager != null) databaseManager.close();
}
public void reloadEverything() {
reloadConfig();
configManager.loadFiles();
kitManager.load();
trimManager.reload();
}
}