📄
pasted-code-1786634622444.txt
txt
1676 lines
▶
# BOSSPOWERS — COMPLETE MINECRAFT PLUGIN DEVELOPMENT PROMPT
## IMPORTANT — READ THE ENTIRE PROMPT BEFORE CODING
I want you to develop a **complete, production-ready Minecraft plugin** called:
# BossPowers
This plugin is designed for a Minecraft SMP server and provides a unique **Anime Power system**.
The plugin must feel like a **real anime combat system / Minecraft mod**, while remaining primarily a **server-side plugin** for normal Minecraft 1.21.x clients.
Do not create a basic damage plugin.
The final plugin should have:
- Custom Powers
- Custom Abilities
- Custom Power Items/Potions
- Hard crafting recipes
- Power trading/exchange
- Power dropping on death
- Custom INVENTORY GUI
- Cooldowns
- G-key ability system/fallback
- Anime-style animations
- Particles
- Sounds
- Shockwaves
- Special effects
- WorldGuard protection
- World restrictions
- Permission system
- Persistent player data
- Full configuration
- Paper/Spigot/Bukkit/Folia compatibility
- Velocity/BungeeCord network architecture
The system must be modular and easy to expand.
---
# 1. VERY IMPORTANT: ONE POWER ONLY
This is the most important rule of BossPowers.
## ONE PLAYER = ONE POWER
A player can have **ONLY ONE Power at a time**.
There must be:
- No second Power slot
- No dual Power system
- No two Powers equipped simultaneously
- No combining Powers
- No secondary Power slot
Example:
```text
Player A
Current Power: Saitama
```
Player A cannot also have:
```text
Garou
Boros
Orochi
Cosmic Garou
```
at the same time.
If the player wants another Power, they must first:
- Exchange their current Power
- Remove their current Power
- Lose their Power through death
- Or otherwise obtain no Power
Only after having **no Power** can they obtain another one.
DO NOT accidentally implement a two-Power system.
---
# 2. PLUGIN NAME
The plugin name must be:
```text
BossPowers
```
Main command:
```text
/bp
```
Alias:
```text
/bosspowers
```
Minecraft target:
```text
Minecraft 1.21.x
```
Java:
```text
Java 21
```
---
# 3. INITIAL POWERS
The plugin must initially contain exactly **5 Powers**.
The five Powers are:
1. Saitama
2. Garou
3. Cosmic Garou
4. Boros
5. Orochi
Each Power must have:
- Unique ID
- Display name
- Description
- Unique abilities
- Unique visual effects
- Unique sounds
- Unique particles
- Individual cooldowns
- Individual permissions
- Individual crafting recipe
- Individual Power item
- Configurable behavior
The Power system must be modular so more Powers can be added later.
---
# 4. SAITAMA POWER
The first and most powerful Power should be based on Saitama.
## Main ability: ONE PUNCH
Saitama's One Punch must be extremely powerful.
If Saitama attacks a player wearing:
```text
Full Protection IV armor
```
the One Punch should still be able to kill them in one hit.
Do NOT simply rely on a normal Minecraft damage value that armor can reduce.
The intended behavior is:
```text
Saitama One Punch
↓
Target has Protection IV
↓
Target is still one-hit
```
However, Totem of Undying must be respected.
---
# 5. TOTEM OF UNDYING BEHAVIOR
If the target has a valid Totem of Undying available:
```text
Saitama One Punch
↓
Target has Totem
↓
Totem activates
↓
Totem pops
↓
Player survives
```
The Totem must work normally.
Do not permanently kill the player if the Totem should save them.
Do not remove the Totem incorrectly.
Allow the normal Minecraft Totem animation/effect to happen.
The One Punch should still count as a successful ability use and enter cooldown.
---
# 6. SAITAMA ANIMATIONS
Saitama should have the most impressive visual effects.
I want the ability to feel like a real anime attack.
Do NOT make the ability:
```text
Click → damage → nothing
```
Instead it should feel like:
```text
Charge
↓
Animation
↓
Punch
↓
Shockwave
↓
Impact
↓
Damage
↓
Cooldown
```
## Charge animation
Before the punch:
- Small particle buildup
- Aura around player
- Hand/fist particles
- Short charging sound
- Optional ActionBar
- Very short charge time
Example:
```text
⚡ CHARGING ONE PUNCH ⚡
```
---
# 7. PUNCH ANIMATION
When the punch is released:
Create a forward-moving visual effect.
The effect should follow the direction the player is facing.
Use:
- Particle trail
- Sweep particles
- Cloud/dust
- Critical particles
- Shockwave
- Impact particles
The attack should feel fast.
---
# 8. SHOCKWAVE
Create an expanding shockwave after the punch.
The shockwave should move forward and/or expand around the impact point.
It should not simply spawn random particles around the player.
Make:
- Size configurable
- Speed configurable
- Particle type configurable
- Duration configurable
- Amount configurable
---
# 9. IMPACT EFFECT
When One Punch reaches the target:
Create a strong impact effect.
Possible effects:
- Explosion particles
- Dust particles
- Critical particles
- Shockwave
- Knockback
- Strong attack sound
- Screen/title effect where technically possible
The effect should be short and dramatic.
---
# 10. SERIOUS PUNCH
If a Serious Punch ability is included, it should be significantly stronger visually than One Punch.
Animation:
```text
Player
↓
Energy charge
↓
Large aura
↓
Power buildup
↓
Punch
↓
Huge shockwave
↓
Impact
↓
Large particle burst
```
Make all values configurable.
---
# 11. OTHER POWERS
The remaining four Powers must have their own unique abilities.
Do not make all five Powers identical with different damage values.
Each Power should have its own gameplay identity.
---
# 12. GAROU
Garou should focus on:
- Martial arts
- Fast attacks
- Combat movement
- Combo-like attacks
- Strong melee abilities
Possible abilities:
### Monster Strike
A fast melee ability that deals increased damage and produces martial-art style particle trails.
### Water Stream
A defensive/counter-style ability that can react to incoming attacks or produce a powerful counterattack.
All abilities must have:
- Cooldown
- Range
- Damage
- Effects
- Sounds
- Config options
---
# 13. COSMIC GAROU
Cosmic Garou should feel like a high-tier cosmic Power.
Possible abilities:
### Cosmic Blast
A powerful ranged energy attack.
### Cosmic Barrage
Multiple energy projectiles or attacks.
Visual effects:
- Star-like particles
- Purple/cosmic particles
- Energy spheres
- Explosions
- Projectile trails
Everything configurable.
---
# 14. BOROS
Boros should have powerful energy-based abilities.
Possible abilities:
### Energy Blast
A powerful ranged attack.
### Meteoric Burst
A high-power temporary ability with:
- Speed
- Strength
- Particles
- Aura
- Sound
All configurable.
---
# 15. OROCHI
Orochi should focus on area attacks.
Possible abilities:
### Earth/Dragon Burst
Area-based damage around the target.
### Dragon Energy
A powerful energy attack with large particles and sound effects.
Again, everything must be configurable.
---
# 16. ABILITY SYSTEM
Each Power must have its own abilities.
Example:
```text
Saitama
├── One Punch
└── Serious Punch
Garou
├── Monster Strike
└── Water Stream
Cosmic Garou
├── Cosmic Blast
└── Cosmic Barrage
Boros
├── Energy Blast
└── Meteoric Burst
Orochi
├── Dragon Burst
└── Dragon Energy
```
These are example abilities.
The implementation can improve them if needed, but every Power must feel unique.
The ability system must be modular.
Adding a new ability should not require rewriting the entire plugin.
---
# 17. G KEY
The intended primary ability key is:
```text
G
```
Important technical limitation:
A normal Bukkit/Paper server plugin cannot directly read physical keyboard keys from a vanilla Minecraft client.
Therefore:
- Do not pretend that Bukkit can directly detect G.
- Implement the best possible server-side system.
- Provide a configurable fallback.
- If client-side integration is supported, make it optional.
Possible fallback methods:
- Configurable command
- Swap-hand interaction
- Item interaction
- Plugin/client integration
The default configuration should be designed around the intended:
```text
G = Ability
```
behavior where technically possible.
---
# 18. POWER POTION / POWER ITEM
Every Power must have a unique Power Potion/Item.
Example:
```text
Saitama Power
Garou Power
Cosmic Garou Power
Boros Power
Orochi Power
```
The item must contain:
- Custom name
- Lore
- Power ID
- Optional CustomModelData
- Optional enchantment glow
- Custom PersistentDataContainer data
Do NOT identify Powers only by display name.
Use:
```text
PersistentDataContainer
```
to securely identify Power items.
---
# 19. OBTAINING A POWER
If a player has no Power:
```text
Player
Current Power: NONE
```
and consumes a:
```text
Saitama Power Potion
```
the player receives:
```text
Saitama Power
```
The Power item should be consumed only if the Power is successfully obtained.
---
# 20. ALREADY HAS POWER
If a player already has a Power:
```text
Player
Current Power: Garou
```
and tries to consume:
```text
Saitama Power Potion
```
the plugin must:
- Prevent consumption
- Keep the Power Potion
- Do not replace Garou
- Do not give Saitama
Show:
```text
&cYou already have a Power!
&7Exchange your current Power first.
```
This rule must work everywhere.
---
# 21. POWER DROP ON DEATH
If a player dies while having a Power:
```text
Player has Saitama
↓
Player dies
↓
Saitama Power removed
↓
Saitama Power Potion drops
```
The dropped item can then be picked up by another player.
If another player has no Power:
```text
Pick up
↓
Consume
↓
Receive Saitama
```
If the other player already has a Power:
```text
Cannot consume
```
This creates a natural Power economy and trading system.
---
# 22. POWER EXCHANGE
Players must be able to exchange their current Power.
Example:
```text
Player has:
Saitama
Exchange Power
Result:
Saitama Power Potion
Player has:
NONE
```
The player can now obtain another Power.
Possible command:
```text
/bp exchange
```
Also provide a INVENTORY GUI exchange option.
Do not allow exchange to accidentally give two Powers.
---
# 23. POWER CRAFTING
Every Power must be craftable.
The recipes should be **hard and expensive**.
The goal is to make Powers feel rare and valuable in an SMP.
Use difficult recipes involving rare resources.
Possible ingredients:
- Nether Star
- Dragon Breath
- End Crystal
- Diamond Blocks
- Rare End items
- Other configurable materials
Do not make recipes too easy.
Every recipe must be configurable.
Example:
```yaml
recipes:
saitama:
enabled: true
shape:
- "ABA"
- "CDC"
- "AEA"
ingredients:
A: NETHER_STAR
B: DIAMOND_BLOCK
C: DRAGON_BREATH
D: HEART_OF_THE_SEA
E: END_CRYSTAL
```
The exact recipe must be editable.
---
# 24. INVENTORY GUI SYSTEM
Create a professional custom BossPowers INVENTORY GUI.
Command:
```text
/bp menu
```
The INVENTORY GUI should contain:
- All Powers
- Current Power
- Power information
- Abilities
- Ability descriptions
- Cooldowns
- Crafting information
- Exchange option
Example:
```text
╔══════════════════════╗
BOSS POWERS
╠══════════════════════╣
[Saitama]
[Garou]
[Cosmic Garou]
[Boros]
[Orochi]
[My Power]
[Abilities]
[Exchange Power]
╚══════════════════════╝
```
The actual INVENTORY GUI design should be much more polished.
---
# 25. INVENTORY GUI POWER RESTRICTION
The INVENTORY GUI must respect the One-Power rule.
If the player already has Garou:
```text
Saitama
```
should not be obtainable.
The INVENTORY GUI can show it as:
```text
🔒 Already Have a Power
```
or:
```text
You already have a Power!
```
Do not allow INVENTORY GUI clicking to bypass restrictions.
---
# 26. `/bp abilities`
Command:
```text
/bp abilities
```
Show the player's current Power and its abilities.
Example:
```text
Your Power: Saitama
Abilities:
⚡ One Punch
⚡ Serious Punch
```
If they have no Power:
```text
You don't have a Power.
```
---
# 27. COMMANDS
Main commands:
```text
/bp
/bosspowers
```
Subcommands:
```text
/bp menu
/bp reload
/bp help
/bp give
/bp abilities
/bp info
/bp remove
/bp set
/bp exchange
```
Add proper tab completion.
---
# 28. PERMISSION SYSTEM
Every restricted command must have a permission check.
Permissions:
```text
bosspowers.admin
bosspowers.reload
bosspowers.give
bosspowers.remove
bosspowers.set
bosspowers.exchange
bosspowers.menu
bosspowers.abilities
```
Power-specific permissions:
```text
bosspowers.power.saitama
bosspowers.power.garou
bosspowers.power.cosmicgarou
bosspowers.power.boros
bosspowers.power.orochi
```
---
# 29. NO-PERMISSION MESSAGE
If a normal player types:
```text
/bp give Player Saitama
```
without permission, it must NOT execute.
Show:
```text
&cYou don't have permission to use this command.
```
Make the message configurable.
Example:
```yaml
messages:
no-permission: "&cYou don't have permission to use this command."
```
Permission checks must happen server-side.
---
# 30. ADMIN PERMISSION
If a player has:
```text
bosspowers.admin
```
they should have access to all administrative BossPowers commands.
Do not give normal players administrative permissions by default.
Suggested defaults:
```text
bosspowers.menu → true
bosspowers.abilities → true
bosspowers.help → true
bosspowers.give → op
bosspowers.reload → op
bosspowers.remove → op
bosspowers.set → op
bosspowers.admin → op
```
---
# 31. WORLDGUARD
WorldGuard integration is required.
If a player or target is inside a protected/disabled region, Powers should not work according to configuration.
Example regions:
```text
spawn
lobby
kothspawn
safezone
```
If the target is protected:
- No Power damage
- No Power effects
- No knockback
- No ability effect
Example:
```yaml
worldguard:
enabled: true
block-powers-in-regions: true
disabled-regions:
- spawn
- lobby
- kothspawn
```
WorldGuard must be optional.
BossPowers must still load if WorldGuard is not installed.
---
# 32. WORLD BLACKLIST
Allow Powers to be disabled in specific worlds.
Example:
```yaml
disabled-worlds:
- spawn
- lobby
```
Also allow per-Power world restrictions.
---
# 33. COOLDOWN SYSTEM
Every ability has its own cooldown.
Example:
```yaml
abilities:
one-punch:
cooldown: 30
serious-punch:
cooldown: 60
```
Cooldown must:
- Start after successful activation
- Prevent spam
- Show remaining time
- Be configurable
- Work correctly after reload
- Handle player disconnects safely
Example message:
```text
&cAbility cooldown: &e{time}s
```
---
# 34. ANIMATION SYSTEM
The animation system is extremely important.
The plugin should feel like a **Minecraft anime combat mod**.
Use server-side effects such as:
- Particles
- Display Entities
- Item Displays
- Block Displays
- Text Displays
- Sounds
- Entity movement
- Shockwaves
- Dust
- Explosion particles
- Aura effects
- Trails
- Titles
- ActionBars
- BossBars
Do not use ripped anime assets.
---
# 35. SAITAMA ANIMATION SEQUENCE
For One Punch:
```text
Player activates
↓
Short charge
↓
Aura appears
↓
Particles gather
↓
Punch animation
↓
Fast trail
↓
Shockwave
↓
Target impact
↓
Damage
↓
Cooldown
```
The animation should be short enough to remain practical.
---
# 36. PERFORMANCE OF ANIMATIONS
Animations must NOT destroy server performance.
Avoid:
- Thousands of entities
- Permanent display entities
- Huge repeating particle loops
- Heavy per-tick scans
Use efficient short-lived effects.
Clean up temporary entities/tasks after the animation ends.
Allow:
```yaml
animations:
enabled: true
```
to completely disable visual effects.
---
# 37. POWER-SPECIFIC VISUAL IDENTITY
### Saitama
- Punch shockwave
- White/cloud/dust effects
- Fast punch trail
- Large impact
### Garou
- Martial-art trails
- Fast combat effects
- Dark energy
- Combo particles
### Cosmic Garou
- Cosmic/star particles
- Energy spheres
- Purple/space-like effects
- Energy projectiles
### Boros
- Powerful energy aura
- Beam effects
- Explosion effects
- Speed effects
### Orochi
- Dragon-like energy
- Ground effects
- Area attacks
- Large particle bursts
Everything should be configurable.
---
# 38. FULL CONFIGURATION
Almost everything must be configurable.
Configurable:
- Power names
- Power descriptions
- Abilities
- Damage
- Cooldowns
- Range
- Recipes
- INVENTORY GUI
- Item appearance
- Item lore
- Sounds
- Particles
- Animation duration
- Animation size
- Worlds
- Regions
- Permissions
- Messages
- Death drops
- Exchange
- Power restrictions
Do not hard-code values that should reasonably be configurable.
---
# 39. CONFIG EXAMPLE
Create a professional config structure such as:
```yaml
plugin:
enabled: true
debug: false
power-system:
max-powers-per-player: 1
allow-power-exchange: true
drop-power-on-death: true
powers:
saitama:
enabled: true
display-name: "&fSaitama"
permission: "bosspowers.power.saitama"
abilities:
one-punch:
enabled: true
cooldown: 30
damage: 1000000
range: 5.0
ignore-armor: true
respect-totem: true
serious-punch:
enabled: true
cooldown: 60
damage: 1000000
range: 10.0
recipe:
enabled: true
animations:
enabled: true
worldguard:
enabled: true
block-powers-in-regions: true
disabled-worlds: []
messages:
prefix: "&8[&5BossPowers&8] "
no-permission: "&cYou don't have permission to use this command."
already-have-power: "&cYou already have a Power!"
no-power: "&cYou don't have a Power."
power-obtained: "&aYou obtained &e{power}&a!"
power-dropped: "&eYour &6{power} &ePower dropped!"
cooldown: "&cCooldown: &e{time}s"
region-blocked: "&cPowers cannot be used in this region."
world-blocked: "&cPowers are disabled in this world."
```
Expand this configuration wherever necessary.
---
# 40. STORAGE
Player data must survive:
- Server restart
- Server shutdown
- Plugin reload
Use SQLite or another reliable lightweight storage system.
Store by UUID, not username.
Store:
```text
UUID
Current Power
Power state
Relevant ability data
```
---
# 41. PERSISTENT POWER ITEMS
Use Bukkit/Paper:
```text
PersistentDataContainer
```
to store Power IDs.
Example:
```text
bosspowers_power = saitama
```
Do not rely only on item name or lore.
---
# 42. FOLIA
The plugin must genuinely support Folia.
Do not simply put Folia in the supported platforms list.
Use Folia-compatible scheduling for:
- Player effects
- Cooldowns
- Ability animations
- Entity operations
- Region operations
Avoid unsafe Bukkit scheduler usage.
---
# 43. PROXY
For Velocity/BungeeCord:
The plugin should be designed so multiple backend servers can participate in the same BossPowers network.
If proxy communication is implemented:
- Use a clean messaging layer.
- Do not make Velocity/BungeeCord a hard dependency for standalone servers.
- BossPowers must work perfectly on a single Paper/Spigot server without a proxy.
---
# 44. PERFORMANCE
BossPowers must be lightweight.
Do not:
- Scan every player every tick
- Run unnecessary repeating tasks
- Perform synchronous heavy database queries
- Spawn excessive particles
- Create unnecessary entities
Abilities should be event-driven.
The plugin should be suitable for a serious SMP server.
---
# 45. RELOAD
Implement:
```text
/bp reload
```
Only BossPowers configuration should reload.
Do NOT use the server's:
```text
/reload
```
command.
Safely reload:
- Config
- Power settings
- Ability settings
- Recipes
- Messages
- INVENTORY GUI settings
---
# 46. ERROR HANDLING
Handle:
- Invalid Power
- Invalid player
- Offline player
- Missing WorldGuard
- Invalid recipe
- Invalid particle
- Invalid sound
- Invalid material
- Player disconnecting
- Player dying during ability
- World unloading
- Server restart
Never crash the entire server because of a bad BossPowers configuration.
Log clear errors.
---
# 47. BUILD PROJECT
Provide a complete buildable project.
Include:
```text
src/
plugin.yml
config.yml
pom.xml OR build.gradle
README.md
```
Use a clean package structure:
```text
com.bosspowers
│
├── BossPowers.java
│
├── power/
├── ability/
├── command/
├── INVENTORY GUI/
├── item/
├── recipe/
├── cooldown/
├── region/
├── storage/
├── listener/
├── animation/
├── scheduler/
└── util/
```
The project must compile successfully.
---
# 48. DO NOT PROVIDE PSEUDOCODE
I want the actual implementation.
Do NOT leave:
```text
TODO
implement later
your code here
...
```
in important functionality.
Do not create fake APIs.
Use real Minecraft 1.21.x APIs.
---
# 49. FINAL TESTING
Before giving me the final project, test the logic for:
## Power
- One Power maximum
- Power saving
- Power loading
- Power exchange
- Power removal
## Potion
- Correct Power obtained
- Item consumed correctly
- Existing Power blocks consumption
## Death
- Power drops
- Power removed
- Another player can obtain it
## Saitama
- One Punch
- Protection IV
- Totem activation
- Cooldown
- Animation
## INVENTORY GUI
- Opens
- Shows Powers
- Shows abilities
- Shows current Power
- Cannot bypass restrictions
## Commands
- `/bp`
- `/bp menu`
- `/bp reload`
- `/bp help`
- `/bp give`
- `/bp abilities`
- `/bp info`
- `/bp remove`
- `/bp set`
- `/bp exchange`
## Permissions
Test a normal player:
```text
/bp give Player Saitama
```
Result:
```text
You don't have permission to use this command.
```
Test an admin:
```text
/bp give Player Saitama
```
Result:
```text
Power successfully given.
```
## Protection
Test:
- WorldGuard region
- Disabled region
- Disabled world
Powers must respect all restrictions.
---
# 50. FINAL GAMEPLAY LOOP
The final gameplay should work like this:
```text
┌─────────────────┐
│ NO POWER │
└────────┬────────┘
│
▼
┌───────────────────┐
│ Craft Power │
│ OR obtain Potion │
│ OR INVENTORY GUI │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ ONE POWER │
│ EQUIPPED │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ Use Abilities │
│ G / configured │
│ activation method │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ Cooldown │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ Player Dies │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ Power Drops │
│ as Power Potion │
└────────┬──────────┘
│
▼
┌───────────────────┐
│ Another Player │
│ Obtains Power │
└───────────────────┘
```
Players can also:
```text
Current Power
↓
Exchange
↓
Power Potion
↓
No Power
↓
Obtain another Power
```
---
# FINAL IMPORTANT INSTRUCTION
The final plugin must feel like a **premium Anime SMP Power plugin**.
The gameplay should feel:
- Powerful
- Rare
- Rewarding
- Visual
- Fast
- Anime-inspired
- Competitive
- SMP-friendly
The most important rules are:
### RULE 1
**ONE PLAYER = ONE POWER**
### RULE 2
**Power can be crafted, obtained, exchanged, dropped and consumed.**
### RULE 3
**If a player already has a Power, they cannot consume another Power.**
### RULE 4
**If a player dies, their Power drops as a Power Potion/Item by default.**
### RULE 5
**Powers must respect WorldGuard and configured protected regions/worlds.**
### RULE 6
**Every Power must have unique abilities and animations.**
### RULE 7
**Saitama One Punch must be able to one-hit Protection IV players, while a Totem of Undying can save them normally.**
### RULE 8
**All major settings must be customizable through configuration.**
### RULE 9
**All restricted commands must have proper permission checks.**
### RULE 10
**Do not create a two-Power or dual-slot system.**
Build the complete **BossPowers** plugin according to all requirements above.
Create the Paper/Spigot/Folia-compatible Gradle project and plugin manifest.
Implement persistent one-power ownership, secure power items, recipes, cooldowns, restrictions, and all five ability identities.
Add listeners, command/tab completion, and a protected inventory menu.
Provide complete default configuration and usage documentation.
Foundation complete: Gradle, manifest, persistence, secure power-item identity, cooldowns, restrictions, and Folia-aware delayed execution are in place.
Implement the event-driven ability system, including armor-bypassing Saitama damage that preserves vanilla Totem handling.
Ability system complete: right-click and configurable swap-hand fallback activate primary/secondary abilities; each power has a distinct melee, ranged, burst, or area pattern with configurable visuals and cooldowns.
Add crafting, the menu, and command surface.
Recipe registration, the one-power-safe menu, exchange flow, administrative/player commands, and tab completion are complete.
Add the configurable five-power catalog, recipes, messages, and setup documentation.
Created the complete BossPowers Gradle project with:
Five configurable, distinct powers: Saitama, Garou, Cosmic Garou, Boros, and Orochi.
Strict UUID-backed one-power ownership, exchange, death drops, secure PDC power potions, and expensive configurable recipes.
Ability cooldown persistence, right-click activation, swap-hand/G-key fallback, sneak secondary abilities, effects, sounds, trails, shockwaves, and area/ranged combat.
Saitama armor-overwhelming One/Serious Punch damage through normal Bukkit damage handling so Totems remain functional.
/bpcommands, permissions, tab completion, protected inventory menu, world blacklist, optional WorldGuard region integration, and Folia-aware delayed scheduling.Full
config.yml, plugin manifest, Gradle build files, and README.
package com.bosspowers;
import com.bosspowers.ability.AbilityService;
import com.bosspowers.command.BossPowersCommand;
import com.bosspowers.cooldown.CooldownManager;
import com.bosspowers.gui.MenuListener;
import com.bosspowers.gui.PowerMenu;
import com.bosspowers.item.PowerItemFactory;
import com.bosspowers.listener.PowerListener;
import com.bosspowers.recipe.RecipeService;
import com.bosspowers.region.RestrictionService;
import com.bosspowers.scheduler.PlatformScheduler;
import com.bosspowers.storage.PowerStorage;
import com.bosspowers.util.ConfigService;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class BossPowers extends JavaPlugin {
private ConfigService configService;
private PowerStorage powerStorage;
private CooldownManager cooldownManager;
private PowerItemFactory powerItemFactory;
private RestrictionService restrictionService;
private AbilityService abilityService;
private RecipeService recipeService;
private PowerMenu powerMenu;
@Override
public void onEnable() {
saveDefaultConfig();
this.configService = new ConfigService(this);
this.powerStorage = new PowerStorage(this);
this.cooldownManager = new CooldownManager(powerStorage);
this.powerItemFactory = new PowerItemFactory(this, configService);
this.restrictionService = new RestrictionService(this, configService);
this.abilityService = new AbilityService(this, configService, cooldownManager, restrictionService, new PlatformScheduler(this));
this.recipeService = new RecipeService(this, configService, powerItemFactory);
this.powerMenu = new PowerMenu(this, configService, powerStorage, powerItemFactory, abilityService);
recipeService.registerRecipes();
getServer().getPluginManager().registerEvents(new PowerListener(this, configService, powerStorage, powerItemFactory, abilityService), this);
getServer().getPluginManager().registerEvents(new MenuListener(powerMenu), this);
BossPowersCommand command = new BossPowersCommand(this);
PluginCommand bp = getCommand("bp");
if (bp != null) {
bp.setExecutor(command);
bp.setTabCompleter(command);
}
}
@Override
public void onDisable() {
if (powerStorage != null) {
powerStorage.save();
}
}
public void reloadBossPowers() {
reloadConfig();
configService.reload();
restrictionService.reload();
recipeService.registerRecipes();
}
public ConfigService configService() { return configService; }
public PowerStorage powerStorage() { return powerStorage; }
public CooldownManager cooldownManager() { return cooldownManager; }
public PowerItemFactory powerItemFactory() { return powerItemFactory; }
public AbilityService abilityService() { return abilityService; }
public PowerMenu powerMenu() { return powerMenu; }
}