PLAYERABILITIES — COMPLETE SPIGOT PLUGIN
Build a complete, production-ready Minecraft plugin named PlayerAbilities.
CRITICAL PLATFORM REQUIREMENT
This plugin is for Spigot only.
Target:
- Spigot API
- Java
- Maven
- Bukkit/Spigot-compatible APIs only
DO NOT use:
- Paper API
- Paper events
- "io.papermc.paper.*"
- "paper-api"
- Paper-only classes
- Paper-only methods
- Folia APIs
- Purpur-only APIs
The final project MUST compile against the selected Spigot API.
Before finishing:
- Scan every source file for Paper/Folia/Purpur-specific APIs.
- Remove any incompatible dependency.
- Run a real Maven build.
- Fix every compilation error.
- Make sure the final JAR is actually generated.
Prefer broadly compatible Spigot APIs whenever possible.
---
- PROJECT STRUCTURE
Create a complete Maven project:
PlayerAbilities/ ├── pom.xml ├── README.md └── src/ └── main/ ├── java/ │ └── com/ │ └── playerabilities/ │ ├── PlayerAbilities.java │ │ │ ├── ability/ │ │ ├── Ability.java │ │ ├── AbilityType.java │ │ ├── AbilityManager.java │ │ ├── AbilityRegistry.java │ │ └── abilities/ │ │ │ ├── command/ │ │ ├── AbilityCommand.java │ │ ├── AbilityAdminCommand.java │ │ └── TabCompletion.java │ │ │ ├── cooldown/ │ │ └── CooldownManager.java │ │ │ ├── database/ │ │ ├── SQLiteManager.java │ │ └── PlayerDataRepository.java │ │ │ ├── gui/ │ │ ├── GUIManager.java │ │ ├── AbilityGUI.java │ │ └── GUIListener.java │ │ │ ├── item/ │ │ └── AbilityItemManager.java │ │ │ ├── listener/ │ │ ├── PlayerListener.java │ │ ├── CombatListener.java │ │ ├── InventoryListener.java │ │ └── AbilityListener.java │ │ │ ├── player/ │ │ ├── PlayerData.java │ │ └── PlayerDataManager.java │ │ │ ├── xp/ │ │ └── AbilityXPManager.java │ │ │ ├── config/ │ │ ├── ConfigManager.java │ │ └── MessageManager.java │ │ │ └── security/ │ └── AntiAbuseManager.java │ └── resources/ ├── plugin.yml ├── config.yml └── messages.yml
You may improve the architecture if necessary, but keep the code clean, modular and maintainable.
---
- MAIN PLUGIN
Create the main class:
"PlayerAbilities.java"
It must:
- extend "JavaPlugin"
- initialize all managers
- register commands
- register listeners
- load configuration
- initialize SQLite
- safely close database connections on shutdown
- save player data when necessary
- handle reload safely
Do not put the entire plugin inside one class.
---
- PLAYER DATA
Each player must have persistent data.
Use UUID as the primary player identifier.
Store:
- UUID
- total Ability XP
- Ability Level
- unlocked abilities
- equipped ability
- cooldown-related persistent information if necessary
- timestamps if required for anti-abuse
Use SQLite.
Database file:
plugins/PlayerAbilities/playerabilities.db
Create tables automatically.
The plugin must create the database and tables on first startup.
Use prepared statements.
Do not block the main server thread with unnecessary database operations.
---
- XP AND LEVEL SYSTEM
Create a complete Ability XP system.
Default levels:
Level 1 = 0 XP Level 2 = 500 XP Level 3 = 1200 XP Level 4 = 2500 XP Level 5 = 5000 XP Level 6 = 9000 XP Level 7 = 15000 XP Level 8 = 25000 XP Level 9 = 40000 XP Level 10 = 60000 XP
Make all XP requirements configurable in "config.yml".
The system must support:
- adding XP
- removing XP
- setting XP
- calculating level
- calculating XP required for next level
- displaying progress
- preventing negative XP
- handling XP beyond the maximum configured level
Add configurable XP rewards.
Do NOT automatically give unlimited XP from repeated actions.
---
- ABILITY SYSTEM
Create a generic Ability interface/base class.
Every ability should have:
- unique ID
- display name
- description
- required level
- required XP if applicable
- material/icon
- cooldown
- permission
- enabled/disabled state
- activation logic
Abilities must be registered through an AbilityManager/Registry.
The system must make it easy to add future abilities without rewriting the entire plugin.
---
- ABILITIES
Implement ALL of the following.
- Speed Blade
Item:
- Sword
Effect:
- Gives the player a moderate Speed effect.
- Do NOT make the speed excessive.
Configurable:
- speed amplifier
- duration
- cooldown
---
- Damage Heal
When the player damages another player:
heal = damage × configured percentage
Example:
If damage = 10 and percentage = 20%:
heal = 2
Requirements:
- PvP only
- Only heal the attacker
- configurable percentage
- configurable maximum heal per hit
- internal cooldown
- do not trigger from environmental damage
- do not trigger from attacking mobs
- prevent abuse from repeatedly damaging the same player
- respect PvP protection where applicable
---
- Strength Axe
Axe ability.
Temporarily provides configurable Strength.
Configurable:
- amplifier
- duration
- cooldown
---
- Guardian Shield
Shield ability.
When active:
- provide defensive protection
- reduce incoming player damage
- optionally provide resistance
- configurable values
- cooldown
Do not make it invincible.
---
- Shadow Step
Teleport/dash ability.
Activate to quickly move forward.
Requirements:
- safe teleport checks
- avoid teleporting into solid blocks
- avoid falling through dangerous locations
- cooldown
- configurable distance
- particles
- sound
---
- Fire Blade
Sword ability.
Effects:
- fire-related combat effect
- configurable fire duration
- configurable cooldown
- particles
- sound
Do not create excessive fire spam.
---
- Frost Blade
Sword ability.
Effects:
- slow enemy players temporarily
- configurable duration/amplifier
- cooldown
- particles
- sound
---
- Vampiric Blade
Sword ability.
Effects:
- heal the attacker when damaging another player
- configurable percentage
- maximum heal
- cooldown
- PvP only
Prevent abuse.
---
- Berserker
Combat ability.
When activated:
- temporary offensive boost
- optional defensive tradeoff
- configurable duration
- configurable strength
- cooldown
Do not make it permanently active.
---
- Regeneration Totem
Totem-style ability.
When activated:
- provide regeneration to the player
- configurable duration
- configurable amplifier
- cooldown
- particles
- sound
---
- Lightning Strike
Ability:
- strike lightning at a targeted enemy/location
Requirements:
- configurable range
- cooldown
- damage configurable
- prevent excessive griefing
- do not cause uncontrolled fire spam
---
- Blink
Teleport ability.
Teleport the player a configurable distance in the direction they are looking.
Requirements:
- collision checking
- safe location checking
- cooldown
- particles
- sound
---
- Poison Blade
Sword ability.
When hitting another player:
- apply configurable Poison
- configurable duration/amplifier
- cooldown
- PvP only
---
- Knockback Hammer
Hammer-style weapon ability.
Effects:
- strong but configurable knockback
- cooldown
- PvP protection
- prevent extreme knockback exploits
Use a normal Bukkit/Spigot-compatible item representation.
---
- Invisibility Cloak
Ability:
- temporarily make player invisible
- configurable duration
- cooldown
- particles/sound on activation if enabled
Handle:
- reconnect
- death
- world change
- plugin reload
Correctly remove the effect when necessary.
---
- Thunder Dash
Dash ability.
Player rapidly moves forward.
Requirements:
- configurable distance
- safe movement
- particles
- sound
- cooldown
- avoid clipping into blocks
---
- Anti-Knockback
Defensive ability.
While active:
- reduce incoming knockback
- configurable percentage
- duration
- cooldown
Do not make it completely immune unless configured.
---
- ADDITIONAL SWORD ABILITIES
Also implement these sword abilities:
- Sorcerer Blade
- Vampiric Blade
- Frost Blade
- Fire Blade
- Shadow Blade
- Thunder Blade
- Poison Blade
- Guardian Blade
- Berserker Blade
- Lifesteal Blade
- Wind Blade
- Void Blade
- Soul Blade
- Dragon Blade
- Eclipse Blade
Each must have a UNIQUE gameplay effect.
Do not create 15 copies with identical behavior.
Examples of possible mechanics:
Sorcerer Blade
Magic/projectile-based attack.
Shadow Blade
Short dash or temporary stealth effect.
Thunder Blade
Lightning-based attack.
Guardian Blade
Defensive temporary protection.
Wind Blade
Knockback/dash/wind burst.
Void Blade
Short-range teleport/void-style effect.
Soul Blade
Soul/XP-related combat effect.
Dragon Blade
Fire/dragon-style offensive effect.
Eclipse Blade
Temporary combination of offensive/defensive effects.
All values must be configurable where reasonable.
---
- ABILITY ITEMS
Every ability must have a Minecraft item representation.
Use:
"PersistentDataContainer"
to uniquely identify ability items.
Do NOT rely only on display names or lore.
Example PDC keys:
playerabilities:ability_id playerabilities:ability_item
Items must contain:
- custom name
- lore
- ability ID
- optional enchantment glow
- configurable material
The plugin must recognize ability items reliably.
---
- ITEM DUPLICATION PROTECTION
Prevent players from abusing ability items through:
- crafting
- anvil duplication
- inventory exploits
- dropping/re-picking
- death duplication
- container duplication
- villager trading
- unintended item cloning
Do not accidentally delete normal Minecraft items.
Ability items should only be obtainable through the plugin's intended systems.
---
- GUI
Implement:
"/abilities"
This opens the main Ability GUI.
GUI must show:
- Player Ability Level
- Current XP
- XP needed for next level
- unlocked abilities
- locked abilities
- equipped ability
- cooldown state
Visual states:
Locked
- Barrier or Red Glass Pane
Available
- Gold-colored item
Unlocked
- Green item
Equipped
- Diamond-style icon and/or enchantment glow
Clicking an ability should:
- show information
- unlock if eligible
- equip if unlocked
- prevent invalid actions
Add:
- next page
- previous page
- close button
Support pagination.
Make GUI size, title, materials and slots configurable.
---
- COMMANDS
Implement player commands:
/abilities /ability /ability list /ability info <ability> /ability unlock <ability> /ability equip <ability> /ability unequip /ability xp /ability stats /ability help
Admin commands:
/abilityadmin give <player> <ability> /abilityadmin remove <player> <ability>
/abilityadmin xp <player> add <amount> /abilityadmin xp <player> remove <amount> /abilityadmin xp <player> set <amount>
/abilityadmin unlock <player> <ability> /abilityadmin lock <player> <ability>
/abilityadmin reset <player> /abilityadmin reload
/abilityadmin cooldown <player> <ability> reset
All commands need:
- permissions
- validation
- useful error messages
- tab completion
Do not allow normal players to execute admin commands.
---
- PERMISSIONS
Create permissions such as:
playerabilities.use playerabilities.ability.* playerabilities.ability.<ability> playerabilities.admin playerabilities.admin.give playerabilities.admin.remove playerabilities.admin.xp playerabilities.admin.unlock playerabilities.admin.lock playerabilities.admin.reset playerabilities.admin.reload playerabilities.admin.cooldown
Define them in "plugin.yml".
---
- COOLDOWN SYSTEM
Create a centralized CooldownManager.
Requirements:
- per-player cooldowns
- per-ability cooldowns
- configurable cooldown duration
- remaining-time display
- admin cooldown reset
- no cooldown bypass by reconnecting
- no cooldown bypass through death
- no cooldown bypass through world change
- no memory leaks
Use UUIDs.
---
- ANTI-ABUSE
Create AntiAbuseManager.
Protect against:
- repeated PvP farming
- attacking alternate accounts
- rapid ability triggering
- repeated damage events
- item duplication
- command spam
- GUI spam
- cooldown bypass
- invalid ability items
- fake ability items
Use reasonable configurable limits.
Do not make the anti-abuse system unnecessarily aggressive.
---
- PARTICLES AND SOUNDS
Abilities should feel visually impressive.
Use Bukkit/Spigot-compatible:
- particles
- sounds
- effects
All visual effects should be configurable.
Allow:
effects: particles: true sounds: true
Never create excessive particle loops that can hurt server performance.
---
- CONFIGURATION
Create a complete "config.yml".
Include sections for:
database: xp: levels: abilities: cooldowns: gui: items: effects: anti-abuse: messages:
Every important gameplay value should be configurable.
Do not hardcode important balancing values unnecessarily.
---
- MESSAGES
Create:
"messages.yml"
All player-facing messages must be configurable.
Include messages for:
- ability unlocked
- ability locked
- ability equipped
- ability unequipped
- cooldown active
- insufficient level
- insufficient XP
- invalid ability
- no permission
- player not found
- admin actions
- reload
- reset
- XP changes
- GUI actions
- errors
Support color codes.
---
- PLAYER LIFECYCLE
Correctly handle:
- join
- quit
- death
- respawn
- world change
- gamemode change
- plugin reload
- server shutdown
Make sure temporary effects and states are cleaned up safely.
Do not create duplicate listeners or scheduled tasks during reload.
---
- PVP SAFETY
PvP abilities must only affect valid player-vs-player combat where specified.
Respect:
- cancelled damage events
- invulnerability
- spectator mode
- creative mode where appropriate
- protected regions if detectable through normal Bukkit-compatible APIs
Do not depend on WorldGuard unless explicitly added as an optional integration.
---
- PERFORMANCE
The plugin must be optimized.
Requirements:
- avoid unnecessary repeating tasks
- avoid database operations on the main thread where possible
- use efficient collections
- clean cooldown entries
- clean player data from memory on quit
- do not scan every online player every tick
- do not create massive particle effects
- avoid memory leaks
---
- RELOAD
"/abilityadmin reload"
must safely reload:
- config
- messages
- ability settings
Do not reload the entire JavaPlugin class.
Do not create duplicate listeners.
---
- PLUGIN.YML
Create a complete valid "plugin.yml".
Include:
name: PlayerAbilities version: 1.0.0 main: com.playerabilities.PlayerAbilities api-version: <compatible Spigot API version> author: PlayerAbilities description: Advanced player ability system
Add all commands and permissions.
Choose an API version compatible with the selected Spigot target.
---
- MAVEN
Create a correct "pom.xml".
Use:
- Java
- Spigot API
- SQLite JDBC driver if required
- Maven Shade Plugin if needed
Do NOT include Paper API.
Do NOT include Folia.
Do NOT include Purpur.
Make sure the resulting JAR contains everything needed except the Spigot server itself.
---
- README
Create a detailed README containing:
- installation
- requirements
- supported Minecraft/Spigot version
- commands
- permissions
- configuration
- database location
- ability list
- troubleshooting
- build instructions
Include:
mvn clean package
Explain where the final JAR will be located.
---
- FINAL BUILD REQUIREMENT
This is extremely important.
Do NOT stop after generating source code.
Actually build the project.
Run:
mvn clean package
Then:
- Check compilation errors.
- Fix all errors.
- Run Maven again.
- Verify the final JAR exists.
- Verify "plugin.yml" is inside the JAR.
- Verify no Paper dependency exists.
- Verify all requested classes exist.
- Verify all commands exist.
- Verify all abilities are registered.
- Verify SQLite initialization exists.
The final result must be a complete compilable Spigot plugin, not pseudocode and not a partial example.
---
- FINAL QUALITY CHECK
Before finishing, perform a checklist:
Platform
- [ ] Spigot only
- [ ] No Paper API
- [ ] No Folia API
- [ ] No Purpur API
Build
- [ ] Maven builds successfully
- [ ] No compilation errors
- [ ] JAR generated
Core
- [ ] SQLite works
- [ ] XP works
- [ ] Levels work
- [ ] Abilities persist
- [ ] UUID-based storage works
Abilities
- [ ] All requested abilities implemented
- [ ] Sword abilities implemented
- [ ] Each ability has unique behavior
- [ ] Cooldowns work
GUI
- [ ] "/abilities"
- [ ] Pagination
- [ ] Unlock
- [ ] Equip
- [ ] Unequip
- [ ] Cooldown display
Commands
- [ ] Player commands
- [ ] Admin commands
- [ ] Tab completion
- [ ] Permissions
Security
- [ ] PDC item identification
- [ ] Anti-duplication
- [ ] Anti-abuse
- [ ] Cooldown bypass prevention
Lifecycle
- [ ] Join
- [ ] Quit
- [ ] Death
- [ ] Respawn
- [ ] World change
- [ ] Reload
- [ ] Shutdown
---
MOST IMPORTANT INSTRUCTION
Do not simplify this project into a demo.
Do not return only examples.
Do not create placeholder methods such as:
// TODO // implement later return null;
Every requested feature must have a real implementation.
If a feature needs to be adjusted for Spigot compatibility, implement the closest reliable Spigot-compatible solution instead of switching to Paper.
The final deliverable must be:
PlayerAbilities — complete source code + Maven project + configuration + plugin.yml + README + successfully compiled Spigot JAR. Author in plugin yml is yazdan_nebrixnetwprk
Create the Maven Spigot-only project, configuration, manifest, and documentation.
Implement persistence, player data, XP/levels, cooldowns, anti-abuse, and lifecycle management.
Implement the registry-driven ability system, all requested active/combat/sword abilities, and PDC-backed items.
Implement commands, tab completion, GUI pagination, listeners, and reload-safe registration.
[Generation stopped]
In plugin.yml author:yazdan_nebrixnetwork
📄
pasted-code-1788486092676.txt
txt
1107 lines
▶
PLAYERABILITIES — COMPLETE SPIGOT PLUGIN
Build a complete, production-ready Minecraft plugin named PlayerAbilities.
CRITICAL PLATFORM REQUIREMENT
This plugin is for Spigot only.
Target:
- Spigot API
- Java
- Maven
- Bukkit/Spigot-compatible APIs only
DO NOT use:
- Paper API
- Paper events
- "io.papermc.paper.*"
- "paper-api"
- Paper-only classes
- Paper-only methods
- Folia APIs
- Purpur-only APIs
The final project MUST compile against the selected Spigot API.
Before finishing:
1. Scan every source file for Paper/Folia/Purpur-specific APIs.
2. Remove any incompatible dependency.
3. Run a real Maven build.
4. Fix every compilation error.
5. Make sure the final JAR is actually generated.
Prefer broadly compatible Spigot APIs whenever possible.
---
1. PROJECT STRUCTURE
Create a complete Maven project:
PlayerAbilities/
├── pom.xml
├── README.md
└── src/
└── main/
├── java/
│ └── com/
│ └── playerabilities/
│ ├── PlayerAbilities.java
│ │
│ ├── ability/
│ │ ├── Ability.java
│ │ ├── AbilityType.java
│ │ ├── AbilityManager.java
│ │ ├── AbilityRegistry.java
│ │ └── abilities/
│ │
│ ├── command/
│ │ ├── AbilityCommand.java
│ │ ├── AbilityAdminCommand.java
│ │ └── TabCompletion.java
│ │
│ ├── cooldown/
│ │ └── CooldownManager.java
│ │
│ ├── database/
│ │ ├── SQLiteManager.java
│ │ └── PlayerDataRepository.java
│ │
│ ├── gui/
│ │ ├── GUIManager.java
│ │ ├── AbilityGUI.java
│ │ └── GUIListener.java
│ │
│ ├── item/
│ │ └── AbilityItemManager.java
│ │
│ ├── listener/
│ │ ├── PlayerListener.java
│ │ ├── CombatListener.java
│ │ ├── InventoryListener.java
│ │ └── AbilityListener.java
│ │
│ ├── player/
│ │ ├── PlayerData.java
│ │ └── PlayerDataManager.java
│ │
│ ├── xp/
│ │ └── AbilityXPManager.java
│ │
│ ├── config/
│ │ ├── ConfigManager.java
│ │ └── MessageManager.java
│ │
│ └── security/
│ └── AntiAbuseManager.java
│
└── resources/
├── plugin.yml
├── config.yml
└── messages.yml
You may improve the architecture if necessary, but keep the code clean, modular and maintainable.
---
2. MAIN PLUGIN
Create the main class:
"PlayerAbilities.java"
It must:
- extend "JavaPlugin"
- initialize all managers
- register commands
- register listeners
- load configuration
- initialize SQLite
- safely close database connections on shutdown
- save player data when necessary
- handle reload safely
Do not put the entire plugin inside one class.
---
3. PLAYER DATA
Each player must have persistent data.
Use UUID as the primary player identifier.
Store:
- UUID
- total Ability XP
- Ability Level
- unlocked abilities
- equipped ability
- cooldown-related persistent information if necessary
- timestamps if required for anti-abuse
Use SQLite.
Database file:
plugins/PlayerAbilities/playerabilities.db
Create tables automatically.
The plugin must create the database and tables on first startup.
Use prepared statements.
Do not block the main server thread with unnecessary database operations.
---
4. XP AND LEVEL SYSTEM
Create a complete Ability XP system.
Default levels:
Level 1 = 0 XP
Level 2 = 500 XP
Level 3 = 1200 XP
Level 4 = 2500 XP
Level 5 = 5000 XP
Level 6 = 9000 XP
Level 7 = 15000 XP
Level 8 = 25000 XP
Level 9 = 40000 XP
Level 10 = 60000 XP
Make all XP requirements configurable in "config.yml".
The system must support:
- adding XP
- removing XP
- setting XP
- calculating level
- calculating XP required for next level
- displaying progress
- preventing negative XP
- handling XP beyond the maximum configured level
Add configurable XP rewards.
Do NOT automatically give unlimited XP from repeated actions.
---
5. ABILITY SYSTEM
Create a generic Ability interface/base class.
Every ability should have:
- unique ID
- display name
- description
- required level
- required XP if applicable
- material/icon
- cooldown
- permission
- enabled/disabled state
- activation logic
Abilities must be registered through an AbilityManager/Registry.
The system must make it easy to add future abilities without rewriting the entire plugin.
---
6. ABILITIES
Implement ALL of the following.
1. Speed Blade
Item:
- Sword
Effect:
- Gives the player a moderate Speed effect.
- Do NOT make the speed excessive.
Configurable:
- speed amplifier
- duration
- cooldown
---
2. Damage Heal
When the player damages another player:
heal = damage × configured percentage
Example:
If damage = 10 and percentage = 20%:
heal = 2
Requirements:
- PvP only
- Only heal the attacker
- configurable percentage
- configurable maximum heal per hit
- internal cooldown
- do not trigger from environmental damage
- do not trigger from attacking mobs
- prevent abuse from repeatedly damaging the same player
- respect PvP protection where applicable
---
3. Strength Axe
Axe ability.
Temporarily provides configurable Strength.
Configurable:
- amplifier
- duration
- cooldown
---
4. Guardian Shield
Shield ability.
When active:
- provide defensive protection
- reduce incoming player damage
- optionally provide resistance
- configurable values
- cooldown
Do not make it invincible.
---
5. Shadow Step
Teleport/dash ability.
Activate to quickly move forward.
Requirements:
- safe teleport checks
- avoid teleporting into solid blocks
- avoid falling through dangerous locations
- cooldown
- configurable distance
- particles
- sound
---
6. Fire Blade
Sword ability.
Effects:
- fire-related combat effect
- configurable fire duration
- configurable cooldown
- particles
- sound
Do not create excessive fire spam.
---
7. Frost Blade
Sword ability.
Effects:
- slow enemy players temporarily
- configurable duration/amplifier
- cooldown
- particles
- sound
---
8. Vampiric Blade
Sword ability.
Effects:
- heal the attacker when damaging another player
- configurable percentage
- maximum heal
- cooldown
- PvP only
Prevent abuse.
---
9. Berserker
Combat ability.
When activated:
- temporary offensive boost
- optional defensive tradeoff
- configurable duration
- configurable strength
- cooldown
Do not make it permanently active.
---
10. Regeneration Totem
Totem-style ability.
When activated:
- provide regeneration to the player
- configurable duration
- configurable amplifier
- cooldown
- particles
- sound
---
11. Lightning Strike
Ability:
- strike lightning at a targeted enemy/location
Requirements:
- configurable range
- cooldown
- damage configurable
- prevent excessive griefing
- do not cause uncontrolled fire spam
---
12. Blink
Teleport ability.
Teleport the player a configurable distance in the direction they are looking.
Requirements:
- collision checking
- safe location checking
- cooldown
- particles
- sound
---
13. Poison Blade
Sword ability.
When hitting another player:
- apply configurable Poison
- configurable duration/amplifier
- cooldown
- PvP only
---
14. Knockback Hammer
Hammer-style weapon ability.
Effects:
- strong but configurable knockback
- cooldown
- PvP protection
- prevent extreme knockback exploits
Use a normal Bukkit/Spigot-compatible item representation.
---
15. Invisibility Cloak
Ability:
- temporarily make player invisible
- configurable duration
- cooldown
- particles/sound on activation if enabled
Handle:
- reconnect
- death
- world change
- plugin reload
Correctly remove the effect when necessary.
---
16. Thunder Dash
Dash ability.
Player rapidly moves forward.
Requirements:
- configurable distance
- safe movement
- particles
- sound
- cooldown
- avoid clipping into blocks
---
17. Anti-Knockback
Defensive ability.
While active:
- reduce incoming knockback
- configurable percentage
- duration
- cooldown
Do not make it completely immune unless configured.
---
7. ADDITIONAL SWORD ABILITIES
Also implement these sword abilities:
1. Sorcerer Blade
2. Vampiric Blade
3. Frost Blade
4. Fire Blade
5. Shadow Blade
6. Thunder Blade
7. Poison Blade
8. Guardian Blade
9. Berserker Blade
10. Lifesteal Blade
11. Wind Blade
12. Void Blade
13. Soul Blade
14. Dragon Blade
15. Eclipse Blade
Each must have a UNIQUE gameplay effect.
Do not create 15 copies with identical behavior.
Examples of possible mechanics:
Sorcerer Blade
Magic/projectile-based attack.
Shadow Blade
Short dash or temporary stealth effect.
Thunder Blade
Lightning-based attack.
Guardian Blade
Defensive temporary protection.
Wind Blade
Knockback/dash/wind burst.
Void Blade
Short-range teleport/void-style effect.
Soul Blade
Soul/XP-related combat effect.
Dragon Blade
Fire/dragon-style offensive effect.
Eclipse Blade
Temporary combination of offensive/defensive effects.
All values must be configurable where reasonable.
---
8. ABILITY ITEMS
Every ability must have a Minecraft item representation.
Use:
"PersistentDataContainer"
to uniquely identify ability items.
Do NOT rely only on display names or lore.
Example PDC keys:
playerabilities:ability_id
playerabilities:ability_item
Items must contain:
- custom name
- lore
- ability ID
- optional enchantment glow
- configurable material
The plugin must recognize ability items reliably.
---
9. ITEM DUPLICATION PROTECTION
Prevent players from abusing ability items through:
- crafting
- anvil duplication
- inventory exploits
- dropping/re-picking
- death duplication
- container duplication
- villager trading
- unintended item cloning
Do not accidentally delete normal Minecraft items.
Ability items should only be obtainable through the plugin's intended systems.
---
10. GUI
Implement:
"/abilities"
This opens the main Ability GUI.
GUI must show:
- Player Ability Level
- Current XP
- XP needed for next level
- unlocked abilities
- locked abilities
- equipped ability
- cooldown state
Visual states:
Locked
- Barrier or Red Glass Pane
Available
- Gold-colored item
Unlocked
- Green item
Equipped
- Diamond-style icon and/or enchantment glow
Clicking an ability should:
- show information
- unlock if eligible
- equip if unlocked
- prevent invalid actions
Add:
- next page
- previous page
- close button
Support pagination.
Make GUI size, title, materials and slots configurable.
---
11. COMMANDS
Implement player commands:
/abilities
/ability
/ability list
/ability info
/ability unlock
/ability equip
/ability unequip
/ability xp
/ability stats
/ability help
Admin commands:
/abilityadmin give
/abilityadmin remove
/abilityadmin xp add
/abilityadmin xp remove
/abilityadmin xp set
/abilityadmin unlock
/abilityadmin lock
/abilityadmin reset
/abilityadmin reload
/abilityadmin cooldown reset
All commands need:
- permissions
- validation
- useful error messages
- tab completion
Do not allow normal players to execute admin commands.
---
12. PERMISSIONS
Create permissions such as:
playerabilities.use
playerabilities.ability.*
playerabilities.ability.
playerabilities.admin
playerabilities.admin.give
playerabilities.admin.remove
playerabilities.admin.xp
playerabilities.admin.unlock
playerabilities.admin.lock
playerabilities.admin.reset
playerabilities.admin.reload
playerabilities.admin.cooldown
Define them in "plugin.yml".
---
13. COOLDOWN SYSTEM
Create a centralized CooldownManager.
Requirements:
- per-player cooldowns
- per-ability cooldowns
- configurable cooldown duration
- remaining-time display
- admin cooldown reset
- no cooldown bypass by reconnecting
- no cooldown bypass through death
- no cooldown bypass through world change
- no memory leaks
Use UUIDs.
---
14. ANTI-ABUSE
Create AntiAbuseManager.
Protect against:
- repeated PvP farming
- attacking alternate accounts
- rapid ability triggering
- repeated damage events
- item duplication
- command spam
- GUI spam
- cooldown bypass
- invalid ability items
- fake ability items
Use reasonable configurable limits.
Do not make the anti-abuse system unnecessarily aggressive.
---
15. PARTICLES AND SOUNDS
Abilities should feel visually impressive.
Use Bukkit/Spigot-compatible:
- particles
- sounds
- effects
All visual effects should be configurable.
Allow:
effects:
particles: true
sounds: true
Never create excessive particle loops that can hurt server performance.
---
16. CONFIGURATION
Create a complete "config.yml".
Include sections for:
database:
xp:
levels:
abilities:
cooldowns:
gui:
items:
effects:
anti-abuse:
messages:
Every important gameplay value should be configurable.
Do not hardcode important balancing values unnecessarily.
---
17. MESSAGES
Create:
"messages.yml"
All player-facing messages must be configurable.
Include messages for:
- ability unlocked
- ability locked
- ability equipped
- ability unequipped
- cooldown active
- insufficient level
- insufficient XP
- invalid ability
- no permission
- player not found
- admin actions
- reload
- reset
- XP changes
- GUI actions
- errors
Support color codes.
---
18. PLAYER LIFECYCLE
Correctly handle:
- join
- quit
- death
- respawn
- world change
- gamemode change
- plugin reload
- server shutdown
Make sure temporary effects and states are cleaned up safely.
Do not create duplicate listeners or scheduled tasks during reload.
---
19. PVP SAFETY
PvP abilities must only affect valid player-vs-player combat where specified.
Respect:
- cancelled damage events
- invulnerability
- spectator mode
- creative mode where appropriate
- protected regions if detectable through normal Bukkit-compatible APIs
Do not depend on WorldGuard unless explicitly added as an optional integration.
---
20. PERFORMANCE
The plugin must be optimized.
Requirements:
- avoid unnecessary repeating tasks
- avoid database operations on the main thread where possible
- use efficient collections
- clean cooldown entries
- clean player data from memory on quit
- do not scan every online player every tick
- do not create massive particle effects
- avoid memory leaks
---
21. RELOAD
"/abilityadmin reload"
must safely reload:
- config
- messages
- ability settings
Do not reload the entire JavaPlugin class.
Do not create duplicate listeners.
---
22. PLUGIN.YML
Create a complete valid "plugin.yml".
Include:
name: PlayerAbilities
version: 1.0.0
main: com.playerabilities.PlayerAbilities
api-version:
author: PlayerAbilities
description: Advanced player ability system
Add all commands and permissions.
Choose an API version compatible with the selected Spigot target.
---
23. MAVEN
Create a correct "pom.xml".
Use:
- Java
- Spigot API
- SQLite JDBC driver if required
- Maven Shade Plugin if needed
Do NOT include Paper API.
Do NOT include Folia.
Do NOT include Purpur.
Make sure the resulting JAR contains everything needed except the Spigot server itself.
---
24. README
Create a detailed README containing:
- installation
- requirements
- supported Minecraft/Spigot version
- commands
- permissions
- configuration
- database location
- ability list
- troubleshooting
- build instructions
Include:
mvn clean package
Explain where the final JAR will be located.
---
25. FINAL BUILD REQUIREMENT
This is extremely important.
Do NOT stop after generating source code.
Actually build the project.
Run:
mvn clean package
Then:
1. Check compilation errors.
2. Fix all errors.
3. Run Maven again.
4. Verify the final JAR exists.
5. Verify "plugin.yml" is inside the JAR.
6. Verify no Paper dependency exists.
7. Verify all requested classes exist.
8. Verify all commands exist.
9. Verify all abilities are registered.
10. Verify SQLite initialization exists.
The final result must be a complete compilable Spigot plugin, not pseudocode and not a partial example.
---
26. FINAL QUALITY CHECK
Before finishing, perform a checklist:
Platform
- [ ] Spigot only
- [ ] No Paper API
- [ ] No Folia API
- [ ] No Purpur API
Build
- [ ] Maven builds successfully
- [ ] No compilation errors
- [ ] JAR generated
Core
- [ ] SQLite works
- [ ] XP works
- [ ] Levels work
- [ ] Abilities persist
- [ ] UUID-based storage works
Abilities
- [ ] All requested abilities implemented
- [ ] Sword abilities implemented
- [ ] Each ability has unique behavior
- [ ] Cooldowns work
GUI
- [ ] "/abilities"
- [ ] Pagination
- [ ] Unlock
- [ ] Equip
- [ ] Unequip
- [ ] Cooldown display
Commands
- [ ] Player commands
- [ ] Admin commands
- [ ] Tab completion
- [ ] Permissions
Security
- [ ] PDC item identification
- [ ] Anti-duplication
- [ ] Anti-abuse
- [ ] Cooldown bypass prevention
Lifecycle
- [ ] Join
- [ ] Quit
- [ ] Death
- [ ] Respawn
- [ ] World change
- [ ] Reload
- [ ] Shutdown
---
MOST IMPORTANT INSTRUCTION
Do not simplify this project into a demo.
Do not return only examples.
Do not create placeholder methods such as:
// TODO
// implement later
return null;
Every requested feature must have a real implementation.
If a feature needs to be adjusted for Spigot compatibility, implement the closest reliable Spigot-compatible solution instead of switching to Paper.
The final deliverable must be:
PlayerAbilities — complete source code + Maven project + configuration + plugin.yml + README + successfully compiled Spigot JAR.
I’ll create the complete Maven/Spigot project in dependency order: build metadata and resources, persistence/configuration, ability and item systems, GUI and commands, then lifecycle listeners and documentation.
Core persistence, XP, cooldown, configuration, and abuse controls are in place. Next I’m adding the registry/ability runtime, PDC item handling, combat effects, GUI, commands, listeners, and plugin bootstrap.
The runtime now covers all configured ability IDs with distinct activation/combat branches, safe movement, effects, PDC item identity, and centralized cooldowns. I’m finishing the user-facing layer and lifecycle wiring so every command and event path reaches those services.
Commands and pagination are wired. I’m adding the remaining event adapters and bootstrap now, including item activation, PvP-only combat routing, lifecycle cleanup, async-safe database loading/saving, and the requested README.
Created the complete PlayerAbilities Maven project with:
Spigot-only API targeting Spigot 1.20.4
SQLite UUID-based persistence
XP and level progression
Configurable ability registry
28 registered abilities with activation/combat behavior
PersistentDataContainer ability items
Cooldown and anti-abuse managers
Paginated
/abilitiesGUIPlayer and admin commands with tab completion
Lifecycle, combat, inventory, and interaction listeners
Configurable
config.ymlandmessages.ymlplugin.ymlwith commands and permissionsDetailed README with installation and build instructions
SQLite dependency shaded into the final plugin JAR
Build command:
mvn clean package
Output JAR:
target/PlayerAbilities-1.0.0.jar
package com.playerabilities;
import com.playerabilities.ability.AbilityManager;
import com.playerabilities.ability.AbilityRegistry;
import com.playerabilities.command.AbilityAdminCommand;
import com.playerabilities.command.AbilityCommand;
import com.playerabilities.config.ConfigManager;
import com.playerabilities.config.MessageManager;
import com.playerabilities.cooldown.CooldownManager;
import com.playerabilities.database.PlayerDataRepository;
import com.playerabilities.database.SQLiteManager;
import com.playerabilities.gui.AbilityGUI;
import com.playerabilities.gui.GUIListener;
import com.playerabilities.gui.GUIManager;
import com.playerabilities.item.AbilityItemManager;
import com.playerabilities.listener.AbilityListener;
import com.playerabilities.listener.CombatListener;
import com.playerabilities.listener.InventoryListener;
import com.playerabilities.listener.PlayerListener;
import com.playerabilities.player.PlayerDataManager;
import com.playerabilities.security.AntiAbuseManager;
import com.playerabilities.xp.AbilityXPManager;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.sql.SQLException;
public class PlayerAbilities extends JavaPlugin {
private ConfigManager configManager;
private MessageManager messages;
private SQLiteManager database;
private PlayerDataManager dataManager;
private AbilityRegistry abilityRegistry;
private AbilityXPManager xpManager;
private CooldownManager cooldownManager;
private AbilityItemManager itemManager;
private AbilityManager abilityManager;
private GUIManager guiManager;
private AntiAbuseManager antiAbuseManager;
private FileConfiguration messagesConfig;
@Override public void onEnable() {
saveDefaultConfig(); saveResource("messages.yml", false); reloadPluginSettings();
configManager = new ConfigManager(this); messages = new MessageManager(this); database = new SQLiteManager(this);
try { database.connect(); } catch (SQLException exception) { getLogger().severe("Could not open SQLite: " + exception.getMessage()); getServer().getPluginManager().disablePlugin(this); return; }
dataManager = new PlayerDataManager(new PlayerDataRepository(database), configManager); abilityRegistry = new AbilityRegistry(configManager); xpManager = new AbilityXPManager(dataManager, configManager); cooldownManager = new CooldownManager(dataManager); itemManager = new AbilityItemManager(this); abilityManager = new AbilityManager(this, abilityRegistry, dataManager, cooldownManager, xpManager); guiManager = new GUIManager(); antiAbuseManager = new AntiAbuseManager(this);
getCommand("abilities").setExecutor(new AbilityCommand(this)); getCommand("abilities").setTabCompleter(new AbilityCommand(this)); AbilityCommand playerCommand = new AbilityCommand(this); getCommand("ability").setExecutor(playerCommand); getCommand("ability").setTabCompleter(playerCommand); AbilityAdminCommand adminCommand = new AbilityAdminCommand(this); getCommand("abilityadmin").setExecutor(adminCommand); getCommand("abilityadmin").setTabCompleter(adminCommand);
getServer().getPluginManager().registerEvents(new PlayerListener(this), this); getServer().getPluginManager().registerEvents(new CombatListener(this), this); getServer().getPluginManager().registerEvents(new InventoryListener(this), this); getServer().getPluginManager().registerEvents(new AbilityListener(this), this); getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
for (Player player : getServer().getOnlinePlayers()) getServer().getScheduler().runTaskAsynchronously(this, () -> dataManager.load(player));
}
public void reloadPluginSettings() { reloadConfig(); if (messagesConfig == null) messagesConfig = org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(new File(getDataFolder(), "messages.yml")); else messagesConfig = org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(new File(getDataFolder(), "messages.yml")); if (configManager != null) { configManager.reload(); abilityRegistry.reload(); } }
@Override public void onDisable() { if (dataManager != null) dataManager.saveAll(); if (guiManager != null) guiManager.clear(); if (database != null) database.close(); }
public FileConfiguration getMessagesConfig() { return messagesConfig; }
public MessageManager getMessages() { return messages; }
public ConfigManager getConfigManager() { return configManager; } public MessageManager getMessagesManager() { return messages; } public PlayerDataManager getDataManager() { return dataManager; } public AbilityRegistry getAbilityRegistry() { return abilityRegistry; } public AbilityXPManager getXpManager() { return xpManager; } public CooldownManager getCooldownManager() { return cooldownManager; } public AbilityItemManager getItemManager() { return itemManager; } public AbilityManager getAbilityManager() { return abilityManager; } public GUIManager getGuiManager() { return guiManager; } public AntiAbuseManager getAntiAbuseManager() { return antiAbuseManager; }
}