9ashminder Singh
๐Ÿ“Ž 1 file 24,660 chars
๐Ÿ“„
pasted-code-1788883946157.txt
txt 1608 lines
โ–ถ
Create a complete Minecraft Paper 1.21.11 plugin 

PLUGIN NAME:
SecretAbilities

# ================================================== CORE SMP CONCEPT

Create a team-based Minecraft SMP focused on:

- Secret random abilities
- Team strategy
- Deception
- Scouting
- Territory control
- PvP
- Ability evolution
- Secret challenges
- Important deaths
- Protecting valuable teammates

There are EXACTLY TWO TEAMS:

TEAM RED
TEAM BLUE

Players freely choose which team they want to join.

Once a player joins a team, they are permanently locked to that team.

Players cannot leave or switch teams themselves.

Every player receives exactly ONE RANDOM SECRET ABILITY when the SMP starts.

Abilities are independent of teams.

Duplicate abilities are allowed.

Example:

TEAM RED:
Player A โ†’ Blink
Player B โ†’ Healer
Player C โ†’ Tracker
Player D โ†’ Blink

TEAM BLUE:
Player E โ†’ Shield
Player F โ†’ Scout
Player G โ†’ Blink
Player H โ†’ Berserker

Team Red may know that Team Blue has a Blink player, but they do not know WHICH Blue player has Blink.

This should create deception, scouting, protection, traps and strategy instead of simply giving every team the same powers.

\==================================================

1. SMP STATES
   \==================================================

The plugin has two main states:

PRE-SMP
ACTIVE

Default state:

PRE-SMP

The SMP must NOT automatically start when the server starts.

The SMP only becomes ACTIVE when an administrator uses:

/sa start

or starts it through the admin GUI.

# ================================================== 2. PRE-SMP MODE

Before the SMP starts:

Players can choose Team Red or Team Blue.

Players become permanently locked to their chosen team.

Abilities are NOT assigned yet.

Abilities cannot be used.

Ability energy does not regenerate.

Death penalties are disabled.

Secret challenges do not progress.

Team territories are not active yet.

Display a BossBar:

SECRET SMP
Waiting for the SMP to start...

Create:

/sa status

Example:

SMP Status: PRE-SMP

Team Red: 8 players
Team Blue: 7 players

# ================================================== 3. TEAM SYSTEM

There must ONLY be two teams:

RED
BLUE

Do NOT allow admins or players to create additional teams.

Commands:

/sa team

/sa team join red

/sa team join blue

/sa team info

When a player uses:

/sa team

open a GUI.

GUI:

# ================================ CHOOSE YOUR TEAM

[ RED TEAM ]

Members: 8

Click to join Team Red

[ BLUE TEAM ]

Members: 7

Click to join Team Blue

Once the player chooses a team:

Ask for confirmation.

Example:

"Are you sure you want to join Team Red?"

[CONFIRM] [CANCEL]

After confirmation:

"You joined Team Red."

# ================================================== 4. PERMANENT TEAM LOCK

After joining a team, the player is permanently assigned to that team.

Players CANNOT:

/sa team leave

/sa team join blue

/sa team join red

or use any other method to switch teams.

If a Red player tries to join Blue:

"You are permanently assigned to Team Red."

If they try to leave:

"You cannot leave your team."

Only administrators can manually change a player's team.

# ================================================== 5. ADMIN TEAM COMMANDS

Permission:

secretabilities.admin

Commands:

/sa admin team set red

/sa admin team set blue

/sa admin team info

Admins can manually change a player's team if necessary.

Normal players cannot use these commands.

# ================================================== 6. SMP START COMMAND

Create:

/sa start

Permission:

secretabilities.admin

The command starts the SMP.

Before starting, check:

1. SMP is not already active.
2. Team Red has at least one player.
3. Team Blue has at least one player.
4. The world is available.
5. Suitable villages can be found.

If a requirement fails, give the admin a clear error message.

Example:

"Cannot start SMP. Team Blue has no players."

# ================================================== 7. START COUNTDOWN

When `/sa start` is executed, start a configurable countdown.

Default:

10 seconds.

Messages:

"SMP starting in 10 seconds..."

"SMP starting in 5..."

"SMP starting in 4..."

"SMP starting in 3..."

"SMP starting in 2..."

"SMP starting in 1..."

Then:

"THE SMP HAS STARTED!"

Make countdown configurable:

start:
countdown: 10

# ================================================== 8. RANDOM VILLAGE BASE SYSTEM

When the SMP starts, automatically find TWO naturally generated villages.

One village becomes:

TEAM RED TERRITORY

The other becomes:

TEAM BLUE TERRITORY

The villages MUST be different.

Do NOT create artificial villages.

Use naturally generated Minecraft villages.

# ================================================== 9. VILLAGE DISTANCE

The two villages must be far enough apart to create meaningful territories.

Default:

minimum\_distance\_between\_bases: 2000

Allow this to be changed in config.yml.

Example:

minimum\_distance\_between\_bases: 2000

The plugin should search for suitable villages until it finds two villages that satisfy the distance requirement.

Do not use the same village for both teams.

# ================================================== 10. RANDOM VILLAGE ASSIGNMENT

The village assignment must be random.

For example:

Village A โ†’ Red
Village B โ†’ Blue

Another SMP:

Village C โ†’ Blue
Village D โ†’ Red

Do not always assign the closest village to Red.

Randomly determine which suitable village becomes Red's territory.

The other village becomes Blue's territory.

Once selected, save them permanently.

Server restarts must NOT select new villages.

# ================================================== 11. SAFE BASE TELEPORT LOCATION

Calculate a safe teleport location inside or near the center of each village.

Never teleport players:

- Inside blocks
- On roofs
- Inside houses
- In lava
- Over the void
- On dangerous blocks
- In unsafe locations

Store:

World
X
Y
Z
Yaw
Pitch

# ================================================== 12. TEAM TERRITORIES

Each village becomes that team's territory.

Default:

territory\_radius: 250

Example:

Red Territory:
Village center + 250 block radius

Blue Territory:
Village center + 250 block radius

The territory is NOT a protected safe zone.

Enemy players CAN enter enemy territory.

Enemy players CAN fight there.

Enemy players CAN scout the territory.

Enemy players CAN potentially raid the base.

The territory exists mainly for strategic gameplay.

# ================================================== 13. TERRITORY COMMAND

Create:

/sa territory

Shows:

Current Territory:
Team Red

or:

Current Territory:
Team Blue

or:

You are outside all team territories.

When entering a territory:

"You have entered Team Red Territory."

When leaving:

"You have left Team Red Territory."

Add a message cooldown to prevent spam.

# ================================================== 14. BASE COMMAND

Create:

/sa base

Shows the player's team base.

Example:

Your Team:
Red

Base:
Red Village

Coordinates can optionally be shown.

Config:

announce\_base\_coordinates: false

If true:

"Red Base: X Y Z"

If false:

"Your team base is located in the Red Territory."

# ================================================== 15. START TELEPORTATION

When the countdown reaches zero:

Teleport all online Red players to the Red village.

Teleport all online Blue players to the Blue village.

Then display:

"Welcome to your new territory."

Players should receive their random abilities after being teleported.

# ================================================== 16. OFFLINE PLAYERS

If a team member is offline when `/sa start` is executed:

Do NOT remove them.

Their team remains permanent.

Their team base remains saved.

When they next join, show:

"Your team is Red."

"Your team base is located in Red Territory."

If enabled in config, teleport them to their team's territory.

Config:

teleport\_late\_joiners: true

# ================================================== 17. RANDOM SECRET ABILITY SYSTEM

Every player receives exactly ONE random ability.

Abilities are randomly selected from the available ability pool.

Randomization must be independent of:

- Team
- Player name
- UUID
- Join order
- Kills
- Rank

Each ability should have an equal chance by default.

Duplicate abilities ARE allowed.

Example:

Red:
Player A โ†’ Blink
Player B โ†’ Blink
Player C โ†’ Healer

This is completely valid.

Config:

ability:
allow\_duplicate\_abilities: true

# ================================================== 18. ABILITY ASSIGNMENT

Abilities are assigned during the `/sa start` sequence.

Before SMP starts:

"Secret ability: Not assigned."

After SMP starts:

"Your secret ability has been revealed."

"Ability: BLINK"

Only that player receives this message.

Never announce abilities publicly.

Save the ability permanently.

Server restart must NOT reroll abilities.

Player reconnecting must receive the same ability.

Player dying must NOT reroll their ability.

# ================================================== 19. SECRET ABILITY SYSTEM

Create a modular Ability interface.

Each ability should contain:

- ID
- Display name
- Description
- Cooldown
- Energy cost
- Current level
- Maximum level
- Activation method
- Effect
- Upgrade behavior

Make it easy to add future abilities.

# ================================================== 20. INITIAL ABILITIES

Add at least these abilities:

---

## BLINK

Activation:

Sneak + Right Click

Teleport forward.

Level I:
6 blocks

Level II:
9 blocks

Level III:
12 blocks

Must check safe teleport locations.

Cannot teleport into:

- Solid blocks
- Lava
- Void
- Unsafe locations

Uses energy and cooldown.

---

## SHADOW STEP

Activation:

Sneak + Left Click

Provides a short movement burst.

Temporarily provides a stealth effect.

Uses energy and cooldown.

---

## SCOUT

Activation:

Sneak + Right Click

Temporarily detects nearby enemy players.

Should provide useful information without automatically exposing exact coordinates unless configured.

---

## SHIELD

Activation:

Sneak + Right Click

Temporarily provides defensive protection.

Uses energy and cooldown.

---

## HEALER

Activation:

Sneak + Right Click

Heal yourself or a nearby teammate.

Cannot heal endlessly.

---

## TRAPMASTER

Activation:

Sneak + Right Click

Place a temporary special trap.

Trap activates when an enemy enters it.

---

## TRACKER

Activation:

Sneak + Right Click

Temporarily tracks the approximate direction of a selected enemy.

Do not permanently reveal exact coordinates.

---

## BERSERKER

Activation:

Sneak + Right Click

Temporarily provides combat bonuses.

Has a significant cooldown.

# ================================================== 21. SECRET ABILITY INFORMATION

Abilities are SECRET.

Never display an ability:

- Above the player's head
- In their nametag
- In the normal scoreboard
- In tab
- In public chat
- In team information
- To enemy players

Only:

1. The ability owner
2. Administrators

can directly see the ability.

Command:

/sa ability

Example:

SECRET ABILITY

Ability: Blink
Level: I
Energy: 80 / 100

Admin:

/sa admin ability info

# ================================================== 22. ABILITY DISCOVERY / INTEL

Add optional clues that allow players to discover enemy abilities through gameplay.

Example:

A player sees another player use Blink.

Instead of revealing:

"Player123 has Blink."

give vague information:

"You noticed a strange movement ability."

Optional config:

intel:
enabled: true

The system should support future ability-discovery mechanics.

# ================================================== 23. ABILITY ENERGY

Every player has:

100 maximum energy.

Energy regenerates automatically.

Default:

5 energy every 10 seconds.

Configurable:

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10

Example ability costs:

Blink:
20

Scout:
25

Healer:
30

Shield:
25

Trapmaster:
20

# ================================================== 24. COOLDOWN SYSTEM

Every ability has a cooldown.

Cooldowns must be tracked individually per player.

Do not allow activation if:

- Player lacks energy
- Ability is on cooldown
- Player is dead
- Player is spectating
- Ability is disabled

Display cooldown privately.

Example:

"Blink is on cooldown: 18 seconds."

Never publicly reveal cooldown information.

# ================================================== 25. DEATH SYSTEM

Death should matter.

However, players are NEVER permanently eliminated.

Track player deaths.

Death 1:

Lose some maximum ability energy.

Default:
20%

Death 2:

Ability cooldowns increase.

Default:
15%

Death 3:

Ability becomes temporarily weakened.

Example:
20% effectiveness reduction.

Additional deaths may increase penalties.

Set a configurable maximum.

Example:

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

Show the affected player a private message.

Example:

"Your ability has weakened after your third death."

# ================================================== 26. DEATH RESET

Admin command:

/sa admin reset

Reset:

- Death count
- Ability penalties
- Energy penalties

Do NOT change the player's ability unless specifically requested.

# ================================================== 27. ABILITY EVOLUTION

Every ability has:

Level I
Level II
Level III

Players evolve abilities through SECRET CHALLENGES.

Players do NOT level up simply by getting kills.

Example:

Blink I โ†’ Blink II

Challenge:

"Travel 5,000 blocks without using a Nether Portal."

After completion:

"SECRET CHALLENGE COMPLETED!"

Then:

"Your Blink ability evolved to Level II."

# ================================================== 28. SECRET CHALLENGES

Create a modular challenge system.

Example challenges:

TRAVELER:
Travel 5,000 blocks without using a Nether Portal.

EXPLORER:
Visit 5 different biomes.

SURVIVOR:
Survive for 2 Minecraft days without dying.

HUNTER:
Defeat 10 hostile mobs.

SCOUT:
Discover an enemy player.

PROTECTOR:
Prevent a teammate from dying during a PvP encounter.

SURVIVOR II:
Survive for 5 Minecraft days.

Challenges should track progress automatically.

# ================================================== 29. CHALLENGE GUI

Create:

/sa challenges

Open a GUI displaying the player's secret challenges.

Example:

SECRET CHALLENGES

Traveler
3,200 / 5,000 blocks

Explorer
3 / 5 biomes

Survivor
COMPLETED

Only the player can see their challenges.

Other players cannot inspect them.

# ================================================== 30. ABILITY GUI

Create:

/sa menu

Show:

- Secret ability
- Ability level
- Energy
- Death count
- Cooldowns
- Evolution progress
- Secret challenges

Only the player can see their own information.

# ================================================== 31. ANNOUNCEMENT COMMAND

Create an easy server announcement command:

/sa tell

and:

/sa announce

Both commands should broadcast the message to everyone.

Permission:

secretabilities.admin

Example:

/sa tell &cThe Final War begins tomorrow!

Output:

[SERVER] The Final War begins tomorrow!

Support Minecraft color codes.

Make announcement format configurable.

# ================================================== 32. START ANNOUNCEMENT

When the SMP starts, broadcast:

# ================================ SECRET SMP STARTED

Team Red has received its territory.

Team Blue has received its territory.

Your secret abilities have been activated.

Good luck.

\================================

Optionally show a title:

SECRET SMP
HAS STARTED

and a subtitle:

Discover. Survive. Conquer.

# ================================================== 33. ADMIN GUI

Create:

/sa admin

Open an admin control GUI.

Buttons:

START SMP
STOP SMP
ANNOUNCE
TEAM INFORMATION
ABILITY INFORMATION
TERRITORY INFORMATION
RESET PLAYER
REROLL ABILITY

When clicking START SMP:

Ask for confirmation.

"Are you sure you want to start the SMP?"

[CONFIRM]
[CANCEL]

Prevent accidental starts.

# ================================================== 34. ADMIN COMMANDS

Main commands:

/sa start
/sa stop
/sa status
/sa team
/sa territory
/sa base
/sa ability
/sa challenges
/sa menu
/sa tell
/sa announce
/sa reload

Admin:

/sa admin

/sa admin team set red

/sa admin team set blue

/sa admin team info

/sa admin ability info

/sa admin ability give

/sa admin reroll

/sa admin reset

/sa admin start

/sa admin stop

/sa admin debug

/sa reset

/sa reset confirm

# ================================================== 35. ADMIN ABILITY REROLL

Only admins can reroll abilities.

Command:

/sa admin reroll

The player receives a new random ability.

Reset the ability level to:

Level I

Reset evolution progress for the old ability.

Do NOT publicly announce the new ability.

# ================================================== 36. LATE JOINING

Add:

late\_join:
enabled: true

If disabled:

Players cannot join teams after the SMP starts.

Message:

"Team selection is closed because the SMP has already started."

If enabled:

A new player can choose Red or Blue.

Their team becomes permanent.

They receive one random ability.

They are teleported to their team's territory.

# ================================================== 37. TEAM BALANCE

Players can freely choose either team.

Do NOT automatically balance teams by default.

Default:

team\_balance:
enabled: false
max\_difference: 2

If enabled:

Do not allow a team to become more than the configured number of players larger than the other.

# ================================================== 38. SCOREBOARD / TAB

Optionally display:

Team: Red
SMP Status: ACTIVE

Never display:

Ability: Blink

The secret ability must remain hidden.

# ================================================== 39. DATA STORAGE

Use YAML.

Files:

players.yml
teams.yml
territories.yml
config.yml

Player data:

UUID
Name
Team
Ability
Ability Level
Energy
Deaths
Death Penalties
Challenge Progress
Completed Challenges

Always identify players using UUID.

Data must survive:

- Server restart
- Player disconnect
- Player reconnect

# ================================================== 40. TERRITORY DATA

Example:

territories.yml

red:
world: world
x: 1234.5
y: 72
z: -842.5
radius: 250

blue:
world: world
x: -2345.5
y: 68
z: 921.5
radius: 250

Once territories are selected, NEVER randomly select new villages after a server restart.

# ================================================== 41. CONFIGURATION

Create a detailed config.yml.

Example:

smp:
started: false

start:
countdown: 10

teams:
red:
display\_name: "Team Red"
color: RED

blue:
display\_name: "Team Blue"
color: BLUE

team\_selection:
permanent: true

team\_balance:
enabled: false
max\_difference: 2

territories:
minimum\_distance\_between\_bases: 2000
radius: 250

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10
allow\_duplicate\_abilities: true

evolution:
maximum\_level: 3

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

late\_join:
enabled: true
teleport\_late\_joiners: true

intel:
enabled: true

announce\_base\_coordinates: false

messages:
team\_joined: "You joined %team%."
team\_locked: "You cannot leave or switch teams."
ability\_assigned: "Your secret ability is %ability%."
smp\_started: "The Secret SMP has started!"

# ================================================== 42. EXPLOIT PROTECTION

Prevent ability exploits.

Validate:

- Cooldowns
- Energy
- Player state
- Permissions
- World
- Teleport destination
- Block collision

Prevent Blink from teleporting into:

- Solid blocks
- Lava
- Void
- Dangerous locations
- Unloaded chunks

Prevent abilities from being activated while:

- Dead
- Spectating
- Offline
- Ability is on cooldown
- Player lacks energy

# ================================================== 43. PERFORMANCE

Optimize the plugin.

DO NOT run expensive operations every tick.

Use scheduled tasks for:

- Energy regeneration
- Cooldowns
- Challenge tracking

Do not constantly scan every player against every other player.

Clean up temporary data when players disconnect.

# ================================================== 44. PROJECT STRUCTURE

Use clean modular Java architecture.

Package:

com.yourname.secretabilities

Main:

SecretAbilities.java

teams/
Team.java
TeamManager.java
TeamSelectionGUI.java

territories/
Territory.java
TerritoryManager.java
VillageFinder.java

abilities/
Ability.java
AbilityManager.java
BlinkAbility.java
ShadowStepAbility.java
ScoutAbility.java
ShieldAbility.java
HealerAbility.java
TrapmasterAbility.java
TrackerAbility.java
BerserkerAbility.java

players/
PlayerData.java
PlayerDataManager.java

challenges/
Challenge.java
ChallengeManager.java
ChallengeType.java

gui/
MainGUI.java
AbilityGUI.java
ChallengeGUI.java
AdminGUI.java

commands/
SACommand.java
TeamCommand.java
AdminCommand.java

listeners/
PlayerJoinListener.java
PlayerDeathListener.java
PlayerInteractListener.java
PlayerMoveListener.java
EntityDamageListener.java

utils/
CooldownManager.java
EnergyManager.java
MessageUtils.java
RandomAbilityManager.java

# ================================================== 45. MAVEN / PAPER

Minecraft version:

Paper 1.21.1

Java:

Java 21

Build system:

Maven

Create:

pom.xml

plugin.yml

config.yml

The project must compile successfully.

# ================================================== 46. FINAL START FLOW

The complete gameplay flow must be:

STEP 1:

Server starts.

SMP is PRE-SMP.

STEP 2:

Players join.

STEP 3:

Players use:

/sa team

STEP 4:

They choose:

Red

or

Blue

STEP 5:

Their team becomes permanent.

STEP 6:

Players wait for the admin.

STEP 7:

Admin uses:

/sa start

STEP 8:

Plugin checks both teams.

STEP 9:

Plugin finds two naturally generated villages.

STEP 10:

Plugin randomly assigns one village to Red.

STEP 11:

Plugin assigns the other village to Blue.

STEP 12:

Plugin saves both territories permanently.

STEP 13:

Plugin randomly assigns ONE secret ability to every player.

STEP 14:

10-second countdown begins.

STEP 15:

Countdown reaches zero.

STEP 16:

Red players are teleported to Red village.

Blue players are teleported to Blue village.

STEP 17:

Players privately receive their random secret abilities.

STEP 18:

Abilities become active.

STEP 19:

Energy regeneration starts.

STEP 20:

Death penalties become active.

STEP 21:

Secret challenges begin tracking.

STEP 22:

SMP status changes to ACTIVE.

STEP 23:

Everyone receives the start announcement.

The SMP has officially begun.

# ================================================== 47. FINAL GAMEPLAY GOAL

The plugin should create gameplay where players must think:

"Who on the enemy team has Blink?"

"Who is their Healer?"

"Which player should we protect?"

"Can we bait their strongest ability?"

"Did that player just reveal their secret ability?"

"Can we discover their ability before the next fight?"

The plugin should reward:

- Teamwork
- Strategy
- Deception
- Scouting
- Exploration
- Protecting teammates
- Tactical PvP
- Smart ability usage

The plugin should NOT simply become a normal kit-PvP plugin.

The secret ability system must remain the core of the SMP.

# ================================================== 48. FINAL DEVELOPMENT REQUIREMENT

Provide the COMPLETE working source code.

Do NOT provide pseudocode.

Do NOT leave TODO comments.

Do NOT omit required classes.

Every class required for the plugin to compile must be included.

Provide:

1. Complete Maven project
2. pom.xml
3. plugin.yml
4. config.yml
5. All Java classes
6. All required managers
7. All listeners
8. All commands
9. All GUIs
10. Ability system
11. Random ability system
12. Team system
13. Permanent team locking
14. Village finder
15. Territory system
16. SMP start system
17. Countdown
18. Teleportation
19. Energy system
20. Cooldown system
21. Death penalty system
22. Ability evolution
23. Secret challenges
24. Announcement system
25. Data saving/loading

The final project must be ready to import into IntelliJ IDEA, compile with Maven, and test on a Paper 1.21.1 Minecraft server using Java 21.

Also explain exactly how to:

- Import into IntelliJ IDEA
- Configure Java 21
- Build with Maven
- Find the generated JAR
- Install the JAR on Paper 1.21.1
- Start the server
- Create teams
- Start the SMP
- Test random abilities
- Test village territories
- Test death penalties
- Test ability evolution
- Create new abilities
- Create new secret challenges
- Configure the SMP
Kodari AI
KodariSep 8 at 4:12 pm 1
SecretAbilitiesSMP
A team-based SMP plugin for Paper 1.21.1 where players permanently join Team Red or Blue, then receive one random secret ability. The plugin manages team selection, territory assignment via natural villages, energy/cooldown systems, death penalties, secret challenges for ability evolution, and a full admin GUI. It features a modular ability framework, YAML data persistence, and a countdown-based SMP start sequence with safe teleportation.

[Generation stopped]

9ashminder Singh

no 1.21.11

Kodari AI
KodariSep 8 at 4:13 pm 1

What plugin should I build, and should the target Minecraft version be 1.21.11? Please describe the main features you want.

9ashminder Singh

this

๐Ÿ“Ž 1 file 24,660 chars
๐Ÿ“„
pasted-code-1788883996704.txt
txt 1608 lines
โ–ถ
Create a complete Minecraft Paper 1.21.11 plugin 

PLUGIN NAME:
SecretAbilities

# ================================================== CORE SMP CONCEPT

Create a team-based Minecraft SMP focused on:

- Secret random abilities
- Team strategy
- Deception
- Scouting
- Territory control
- PvP
- Ability evolution
- Secret challenges
- Important deaths
- Protecting valuable teammates

There are EXACTLY TWO TEAMS:

TEAM RED
TEAM BLUE

Players freely choose which team they want to join.

Once a player joins a team, they are permanently locked to that team.

Players cannot leave or switch teams themselves.

Every player receives exactly ONE RANDOM SECRET ABILITY when the SMP starts.

Abilities are independent of teams.

Duplicate abilities are allowed.

Example:

TEAM RED:
Player A โ†’ Blink
Player B โ†’ Healer
Player C โ†’ Tracker
Player D โ†’ Blink

TEAM BLUE:
Player E โ†’ Shield
Player F โ†’ Scout
Player G โ†’ Blink
Player H โ†’ Berserker

Team Red may know that Team Blue has a Blink player, but they do not know WHICH Blue player has Blink.

This should create deception, scouting, protection, traps and strategy instead of simply giving every team the same powers.

\==================================================

1. SMP STATES
   \==================================================

The plugin has two main states:

PRE-SMP
ACTIVE

Default state:

PRE-SMP

The SMP must NOT automatically start when the server starts.

The SMP only becomes ACTIVE when an administrator uses:

/sa start

or starts it through the admin GUI.

# ================================================== 2. PRE-SMP MODE

Before the SMP starts:

Players can choose Team Red or Team Blue.

Players become permanently locked to their chosen team.

Abilities are NOT assigned yet.

Abilities cannot be used.

Ability energy does not regenerate.

Death penalties are disabled.

Secret challenges do not progress.

Team territories are not active yet.

Display a BossBar:

SECRET SMP
Waiting for the SMP to start...

Create:

/sa status

Example:

SMP Status: PRE-SMP

Team Red: 8 players
Team Blue: 7 players

# ================================================== 3. TEAM SYSTEM

There must ONLY be two teams:

RED
BLUE

Do NOT allow admins or players to create additional teams.

Commands:

/sa team

/sa team join red

/sa team join blue

/sa team info

When a player uses:

/sa team

open a GUI.

GUI:

# ================================ CHOOSE YOUR TEAM

[ RED TEAM ]

Members: 8

Click to join Team Red

[ BLUE TEAM ]

Members: 7

Click to join Team Blue

Once the player chooses a team:

Ask for confirmation.

Example:

"Are you sure you want to join Team Red?"

[CONFIRM] [CANCEL]

After confirmation:

"You joined Team Red."

# ================================================== 4. PERMANENT TEAM LOCK

After joining a team, the player is permanently assigned to that team.

Players CANNOT:

/sa team leave

/sa team join blue

/sa team join red

or use any other method to switch teams.

If a Red player tries to join Blue:

"You are permanently assigned to Team Red."

If they try to leave:

"You cannot leave your team."

Only administrators can manually change a player's team.

# ================================================== 5. ADMIN TEAM COMMANDS

Permission:

secretabilities.admin

Commands:

/sa admin team set red

/sa admin team set blue

/sa admin team info

Admins can manually change a player's team if necessary.

Normal players cannot use these commands.

# ================================================== 6. SMP START COMMAND

Create:

/sa start

Permission:

secretabilities.admin

The command starts the SMP.

Before starting, check:

1. SMP is not already active.
2. Team Red has at least one player.
3. Team Blue has at least one player.
4. The world is available.
5. Suitable villages can be found.

If a requirement fails, give the admin a clear error message.

Example:

"Cannot start SMP. Team Blue has no players."

# ================================================== 7. START COUNTDOWN

When `/sa start` is executed, start a configurable countdown.

Default:

10 seconds.

Messages:

"SMP starting in 10 seconds..."

"SMP starting in 5..."

"SMP starting in 4..."

"SMP starting in 3..."

"SMP starting in 2..."

"SMP starting in 1..."

Then:

"THE SMP HAS STARTED!"

Make countdown configurable:

start:
countdown: 10

# ================================================== 8. RANDOM VILLAGE BASE SYSTEM

When the SMP starts, automatically find TWO naturally generated villages.

One village becomes:

TEAM RED TERRITORY

The other becomes:

TEAM BLUE TERRITORY

The villages MUST be different.

Do NOT create artificial villages.

Use naturally generated Minecraft villages.

# ================================================== 9. VILLAGE DISTANCE

The two villages must be far enough apart to create meaningful territories.

Default:

minimum\_distance\_between\_bases: 2000

Allow this to be changed in config.yml.

Example:

minimum\_distance\_between\_bases: 2000

The plugin should search for suitable villages until it finds two villages that satisfy the distance requirement.

Do not use the same village for both teams.

# ================================================== 10. RANDOM VILLAGE ASSIGNMENT

The village assignment must be random.

For example:

Village A โ†’ Red
Village B โ†’ Blue

Another SMP:

Village C โ†’ Blue
Village D โ†’ Red

Do not always assign the closest village to Red.

Randomly determine which suitable village becomes Red's territory.

The other village becomes Blue's territory.

Once selected, save them permanently.

Server restarts must NOT select new villages.

# ================================================== 11. SAFE BASE TELEPORT LOCATION

Calculate a safe teleport location inside or near the center of each village.

Never teleport players:

- Inside blocks
- On roofs
- Inside houses
- In lava
- Over the void
- On dangerous blocks
- In unsafe locations

Store:

World
X
Y
Z
Yaw
Pitch

# ================================================== 12. TEAM TERRITORIES

Each village becomes that team's territory.

Default:

territory\_radius: 250

Example:

Red Territory:
Village center + 250 block radius

Blue Territory:
Village center + 250 block radius

The territory is NOT a protected safe zone.

Enemy players CAN enter enemy territory.

Enemy players CAN fight there.

Enemy players CAN scout the territory.

Enemy players CAN potentially raid the base.

The territory exists mainly for strategic gameplay.

# ================================================== 13. TERRITORY COMMAND

Create:

/sa territory

Shows:

Current Territory:
Team Red

or:

Current Territory:
Team Blue

or:

You are outside all team territories.

When entering a territory:

"You have entered Team Red Territory."

When leaving:

"You have left Team Red Territory."

Add a message cooldown to prevent spam.

# ================================================== 14. BASE COMMAND

Create:

/sa base

Shows the player's team base.

Example:

Your Team:
Red

Base:
Red Village

Coordinates can optionally be shown.

Config:

announce\_base\_coordinates: false

If true:

"Red Base: X Y Z"

If false:

"Your team base is located in the Red Territory."

# ================================================== 15. START TELEPORTATION

When the countdown reaches zero:

Teleport all online Red players to the Red village.

Teleport all online Blue players to the Blue village.

Then display:

"Welcome to your new territory."

Players should receive their random abilities after being teleported.

# ================================================== 16. OFFLINE PLAYERS

If a team member is offline when `/sa start` is executed:

Do NOT remove them.

Their team remains permanent.

Their team base remains saved.

When they next join, show:

"Your team is Red."

"Your team base is located in Red Territory."

If enabled in config, teleport them to their team's territory.

Config:

teleport\_late\_joiners: true

# ================================================== 17. RANDOM SECRET ABILITY SYSTEM

Every player receives exactly ONE random ability.

Abilities are randomly selected from the available ability pool.

Randomization must be independent of:

- Team
- Player name
- UUID
- Join order
- Kills
- Rank

Each ability should have an equal chance by default.

Duplicate abilities ARE allowed.

Example:

Red:
Player A โ†’ Blink
Player B โ†’ Blink
Player C โ†’ Healer

This is completely valid.

Config:

ability:
allow\_duplicate\_abilities: true

# ================================================== 18. ABILITY ASSIGNMENT

Abilities are assigned during the `/sa start` sequence.

Before SMP starts:

"Secret ability: Not assigned."

After SMP starts:

"Your secret ability has been revealed."

"Ability: BLINK"

Only that player receives this message.

Never announce abilities publicly.

Save the ability permanently.

Server restart must NOT reroll abilities.

Player reconnecting must receive the same ability.

Player dying must NOT reroll their ability.

# ================================================== 19. SECRET ABILITY SYSTEM

Create a modular Ability interface.

Each ability should contain:

- ID
- Display name
- Description
- Cooldown
- Energy cost
- Current level
- Maximum level
- Activation method
- Effect
- Upgrade behavior

Make it easy to add future abilities.

# ================================================== 20. INITIAL ABILITIES

Add at least these abilities:

---

## BLINK

Activation:

Sneak + Right Click

Teleport forward.

Level I:
6 blocks

Level II:
9 blocks

Level III:
12 blocks

Must check safe teleport locations.

Cannot teleport into:

- Solid blocks
- Lava
- Void
- Unsafe locations

Uses energy and cooldown.

---

## SHADOW STEP

Activation:

Sneak + Left Click

Provides a short movement burst.

Temporarily provides a stealth effect.

Uses energy and cooldown.

---

## SCOUT

Activation:

Sneak + Right Click

Temporarily detects nearby enemy players.

Should provide useful information without automatically exposing exact coordinates unless configured.

---

## SHIELD

Activation:

Sneak + Right Click

Temporarily provides defensive protection.

Uses energy and cooldown.

---

## HEALER

Activation:

Sneak + Right Click

Heal yourself or a nearby teammate.

Cannot heal endlessly.

---

## TRAPMASTER

Activation:

Sneak + Right Click

Place a temporary special trap.

Trap activates when an enemy enters it.

---

## TRACKER

Activation:

Sneak + Right Click

Temporarily tracks the approximate direction of a selected enemy.

Do not permanently reveal exact coordinates.

---

## BERSERKER

Activation:

Sneak + Right Click

Temporarily provides combat bonuses.

Has a significant cooldown.

# ================================================== 21. SECRET ABILITY INFORMATION

Abilities are SECRET.

Never display an ability:

- Above the player's head
- In their nametag
- In the normal scoreboard
- In tab
- In public chat
- In team information
- To enemy players

Only:

1. The ability owner
2. Administrators

can directly see the ability.

Command:

/sa ability

Example:

SECRET ABILITY

Ability: Blink
Level: I
Energy: 80 / 100

Admin:

/sa admin ability info

# ================================================== 22. ABILITY DISCOVERY / INTEL

Add optional clues that allow players to discover enemy abilities through gameplay.

Example:

A player sees another player use Blink.

Instead of revealing:

"Player123 has Blink."

give vague information:

"You noticed a strange movement ability."

Optional config:

intel:
enabled: true

The system should support future ability-discovery mechanics.

# ================================================== 23. ABILITY ENERGY

Every player has:

100 maximum energy.

Energy regenerates automatically.

Default:

5 energy every 10 seconds.

Configurable:

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10

Example ability costs:

Blink:
20

Scout:
25

Healer:
30

Shield:
25

Trapmaster:
20

# ================================================== 24. COOLDOWN SYSTEM

Every ability has a cooldown.

Cooldowns must be tracked individually per player.

Do not allow activation if:

- Player lacks energy
- Ability is on cooldown
- Player is dead
- Player is spectating
- Ability is disabled

Display cooldown privately.

Example:

"Blink is on cooldown: 18 seconds."

Never publicly reveal cooldown information.

# ================================================== 25. DEATH SYSTEM

Death should matter.

However, players are NEVER permanently eliminated.

Track player deaths.

Death 1:

Lose some maximum ability energy.

Default:
20%

Death 2:

Ability cooldowns increase.

Default:
15%

Death 3:

Ability becomes temporarily weakened.

Example:
20% effectiveness reduction.

Additional deaths may increase penalties.

Set a configurable maximum.

Example:

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

Show the affected player a private message.

Example:

"Your ability has weakened after your third death."

# ================================================== 26. DEATH RESET

Admin command:

/sa admin reset

Reset:

- Death count
- Ability penalties
- Energy penalties

Do NOT change the player's ability unless specifically requested.

# ================================================== 27. ABILITY EVOLUTION

Every ability has:

Level I
Level II
Level III

Players evolve abilities through SECRET CHALLENGES.

Players do NOT level up simply by getting kills.

Example:

Blink I โ†’ Blink II

Challenge:

"Travel 5,000 blocks without using a Nether Portal."

After completion:

"SECRET CHALLENGE COMPLETED!"

Then:

"Your Blink ability evolved to Level II."

# ================================================== 28. SECRET CHALLENGES

Create a modular challenge system.

Example challenges:

TRAVELER:
Travel 5,000 blocks without using a Nether Portal.

EXPLORER:
Visit 5 different biomes.

SURVIVOR:
Survive for 2 Minecraft days without dying.

HUNTER:
Defeat 10 hostile mobs.

SCOUT:
Discover an enemy player.

PROTECTOR:
Prevent a teammate from dying during a PvP encounter.

SURVIVOR II:
Survive for 5 Minecraft days.

Challenges should track progress automatically.

# ================================================== 29. CHALLENGE GUI

Create:

/sa challenges

Open a GUI displaying the player's secret challenges.

Example:

SECRET CHALLENGES

Traveler
3,200 / 5,000 blocks

Explorer
3 / 5 biomes

Survivor
COMPLETED

Only the player can see their challenges.

Other players cannot inspect them.

# ================================================== 30. ABILITY GUI

Create:

/sa menu

Show:

- Secret ability
- Ability level
- Energy
- Death count
- Cooldowns
- Evolution progress
- Secret challenges

Only the player can see their own information.

# ================================================== 31. ANNOUNCEMENT COMMAND

Create an easy server announcement command:

/sa tell

and:

/sa announce

Both commands should broadcast the message to everyone.

Permission:

secretabilities.admin

Example:

/sa tell &cThe Final War begins tomorrow!

Output:

[SERVER] The Final War begins tomorrow!

Support Minecraft color codes.

Make announcement format configurable.

# ================================================== 32. START ANNOUNCEMENT

When the SMP starts, broadcast:

# ================================ SECRET SMP STARTED

Team Red has received its territory.

Team Blue has received its territory.

Your secret abilities have been activated.

Good luck.

\================================

Optionally show a title:

SECRET SMP
HAS STARTED

and a subtitle:

Discover. Survive. Conquer.

# ================================================== 33. ADMIN GUI

Create:

/sa admin

Open an admin control GUI.

Buttons:

START SMP
STOP SMP
ANNOUNCE
TEAM INFORMATION
ABILITY INFORMATION
TERRITORY INFORMATION
RESET PLAYER
REROLL ABILITY

When clicking START SMP:

Ask for confirmation.

"Are you sure you want to start the SMP?"

[CONFIRM]
[CANCEL]

Prevent accidental starts.

# ================================================== 34. ADMIN COMMANDS

Main commands:

/sa start
/sa stop
/sa status
/sa team
/sa territory
/sa base
/sa ability
/sa challenges
/sa menu
/sa tell
/sa announce
/sa reload

Admin:

/sa admin

/sa admin team set red

/sa admin team set blue

/sa admin team info

/sa admin ability info

/sa admin ability give

/sa admin reroll

/sa admin reset

/sa admin start

/sa admin stop

/sa admin debug

/sa reset

/sa reset confirm

# ================================================== 35. ADMIN ABILITY REROLL

Only admins can reroll abilities.

Command:

/sa admin reroll

The player receives a new random ability.

Reset the ability level to:

Level I

Reset evolution progress for the old ability.

Do NOT publicly announce the new ability.

# ================================================== 36. LATE JOINING

Add:

late\_join:
enabled: true

If disabled:

Players cannot join teams after the SMP starts.

Message:

"Team selection is closed because the SMP has already started."

If enabled:

A new player can choose Red or Blue.

Their team becomes permanent.

They receive one random ability.

They are teleported to their team's territory.

# ================================================== 37. TEAM BALANCE

Players can freely choose either team.

Do NOT automatically balance teams by default.

Default:

team\_balance:
enabled: false
max\_difference: 2

If enabled:

Do not allow a team to become more than the configured number of players larger than the other.

# ================================================== 38. SCOREBOARD / TAB

Optionally display:

Team: Red
SMP Status: ACTIVE

Never display:

Ability: Blink

The secret ability must remain hidden.

# ================================================== 39. DATA STORAGE

Use YAML.

Files:

players.yml
teams.yml
territories.yml
config.yml

Player data:

UUID
Name
Team
Ability
Ability Level
Energy
Deaths
Death Penalties
Challenge Progress
Completed Challenges

Always identify players using UUID.

Data must survive:

- Server restart
- Player disconnect
- Player reconnect

# ================================================== 40. TERRITORY DATA

Example:

territories.yml

red:
world: world
x: 1234.5
y: 72
z: -842.5
radius: 250

blue:
world: world
x: -2345.5
y: 68
z: 921.5
radius: 250

Once territories are selected, NEVER randomly select new villages after a server restart.

# ================================================== 41. CONFIGURATION

Create a detailed config.yml.

Example:

smp:
started: false

start:
countdown: 10

teams:
red:
display\_name: "Team Red"
color: RED

blue:
display\_name: "Team Blue"
color: BLUE

team\_selection:
permanent: true

team\_balance:
enabled: false
max\_difference: 2

territories:
minimum\_distance\_between\_bases: 2000
radius: 250

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10
allow\_duplicate\_abilities: true

evolution:
maximum\_level: 3

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

late\_join:
enabled: true
teleport\_late\_joiners: true

intel:
enabled: true

announce\_base\_coordinates: false

messages:
team\_joined: "You joined %team%."
team\_locked: "You cannot leave or switch teams."
ability\_assigned: "Your secret ability is %ability%."
smp\_started: "The Secret SMP has started!"

# ================================================== 42. EXPLOIT PROTECTION

Prevent ability exploits.

Validate:

- Cooldowns
- Energy
- Player state
- Permissions
- World
- Teleport destination
- Block collision

Prevent Blink from teleporting into:

- Solid blocks
- Lava
- Void
- Dangerous locations
- Unloaded chunks

Prevent abilities from being activated while:

- Dead
- Spectating
- Offline
- Ability is on cooldown
- Player lacks energy

# ================================================== 43. PERFORMANCE

Optimize the plugin.

DO NOT run expensive operations every tick.

Use scheduled tasks for:

- Energy regeneration
- Cooldowns
- Challenge tracking

Do not constantly scan every player against every other player.

Clean up temporary data when players disconnect.

# ================================================== 44. PROJECT STRUCTURE

Use clean modular Java architecture.

Package:

com.yourname.secretabilities

Main:

SecretAbilities.java

teams/
Team.java
TeamManager.java
TeamSelectionGUI.java

territories/
Territory.java
TerritoryManager.java
VillageFinder.java

abilities/
Ability.java
AbilityManager.java
BlinkAbility.java
ShadowStepAbility.java
ScoutAbility.java
ShieldAbility.java
HealerAbility.java
TrapmasterAbility.java
TrackerAbility.java
BerserkerAbility.java

players/
PlayerData.java
PlayerDataManager.java

challenges/
Challenge.java
ChallengeManager.java
ChallengeType.java

gui/
MainGUI.java
AbilityGUI.java
ChallengeGUI.java
AdminGUI.java

commands/
SACommand.java
TeamCommand.java
AdminCommand.java

listeners/
PlayerJoinListener.java
PlayerDeathListener.java
PlayerInteractListener.java
PlayerMoveListener.java
EntityDamageListener.java

utils/
CooldownManager.java
EnergyManager.java
MessageUtils.java
RandomAbilityManager.java

# ================================================== 45. MAVEN / PAPER

Minecraft version:

Paper 1.21.1

Java:

Java 21

Build system:

Maven

Create:

pom.xml

plugin.yml

config.yml

The project must compile successfully.

# ================================================== 46. FINAL START FLOW

The complete gameplay flow must be:

STEP 1:

Server starts.

SMP is PRE-SMP.

STEP 2:

Players join.

STEP 3:

Players use:

/sa team

STEP 4:

They choose:

Red

or

Blue

STEP 5:

Their team becomes permanent.

STEP 6:

Players wait for the admin.

STEP 7:

Admin uses:

/sa start

STEP 8:

Plugin checks both teams.

STEP 9:

Plugin finds two naturally generated villages.

STEP 10:

Plugin randomly assigns one village to Red.

STEP 11:

Plugin assigns the other village to Blue.

STEP 12:

Plugin saves both territories permanently.

STEP 13:

Plugin randomly assigns ONE secret ability to every player.

STEP 14:

10-second countdown begins.

STEP 15:

Countdown reaches zero.

STEP 16:

Red players are teleported to Red village.

Blue players are teleported to Blue village.

STEP 17:

Players privately receive their random secret abilities.

STEP 18:

Abilities become active.

STEP 19:

Energy regeneration starts.

STEP 20:

Death penalties become active.

STEP 21:

Secret challenges begin tracking.

STEP 22:

SMP status changes to ACTIVE.

STEP 23:

Everyone receives the start announcement.

The SMP has officially begun.

# ================================================== 47. FINAL GAMEPLAY GOAL

The plugin should create gameplay where players must think:

"Who on the enemy team has Blink?"

"Who is their Healer?"

"Which player should we protect?"

"Can we bait their strongest ability?"

"Did that player just reveal their secret ability?"

"Can we discover their ability before the next fight?"

The plugin should reward:

- Teamwork
- Strategy
- Deception
- Scouting
- Exploration
- Protecting teammates
- Tactical PvP
- Smart ability usage

The plugin should NOT simply become a normal kit-PvP plugin.

The secret ability system must remain the core of the SMP.

# ================================================== 48. FINAL DEVELOPMENT REQUIREMENT

Provide the COMPLETE working source code.

Do NOT provide pseudocode.

Do NOT leave TODO comments.

Do NOT omit required classes.

Every class required for the plugin to compile must be included.

Provide:

1. Complete Maven project
2. pom.xml
3. plugin.yml
4. config.yml
5. All Java classes
6. All required managers
7. All listeners
8. All commands
9. All GUIs
10. Ability system
11. Random ability system
12. Team system
13. Permanent team locking
14. Village finder
15. Territory system
16. SMP start system
17. Countdown
18. Teleportation
19. Energy system
20. Cooldown system
21. Death penalty system
22. Ability evolution
23. Secret challenges
24. Announcement system
25. Data saving/loading

The final project must be ready to import into IntelliJ IDEA, compile with Maven, and test on a Paper 1.21.1 Minecraft server using Java 21.

Also explain exactly how to:

- Import into IntelliJ IDEA
- Configure Java 21
- Build with Maven
- Find the generated JAR
- Install the JAR on Paper 1.21.1
- Start the server
- Create teams
- Start the SMP
- Test random abilities
- Test village territories
- Test death penalties
- Test ability evolution
- Create new abilities
- Create new secret challenges
- Configure the SMP
Kodari AI
KodariSep 8 at 4:16 pm 1
  1. Create the Maven/Paper project and configuration.

  2. Add persistent player, team, territory, ability, and challenge systems.

  3. Add commands, GUIs, listeners, countdown/start flow, energy, cooldowns, and death penalties.

  4. Add all eight initial secret abilities and operational setup documentation.

[Generation stopped]

9ashminder Singh

and add a bar on top of hotbar of enrgy

Kodari AI
KodariSep 8 at 4:18 pm 1

Iโ€™ll create a standalone EnergyBar plugin that uses the XP bar above the hotbar, drains energy while sprinting, regenerates it while resting, and exposes /energy plus an admin set command.

Created the EnergyBar plugin with:

  • XP bar energy display above the hotbar

  • Energy drain while sprinting

  • Automatic regeneration while not sprinting

  • Exhaustion stops sprinting and sends a message

  • /energy to view current energy

  • /energy set <player> <amount> for admins

  • Configurable maximum, drain, regeneration, display text, and messages

  • Join/quit handling and tab completion

9ashminder Singh

make this for 1.21.11 and add a Enrgy bar on top of the Hotbar

๐Ÿ“Ž 1 file 24,660 chars
๐Ÿ“„
pasted-code-1788884462222.txt
txt 1608 lines
โ–ถ
Create a complete Minecraft Paper 1.21.11 plugin 

PLUGIN NAME:
SecretAbilities

# ================================================== CORE SMP CONCEPT

Create a team-based Minecraft SMP focused on:

- Secret random abilities
- Team strategy
- Deception
- Scouting
- Territory control
- PvP
- Ability evolution
- Secret challenges
- Important deaths
- Protecting valuable teammates

There are EXACTLY TWO TEAMS:

TEAM RED
TEAM BLUE

Players freely choose which team they want to join.

Once a player joins a team, they are permanently locked to that team.

Players cannot leave or switch teams themselves.

Every player receives exactly ONE RANDOM SECRET ABILITY when the SMP starts.

Abilities are independent of teams.

Duplicate abilities are allowed.

Example:

TEAM RED:
Player A โ†’ Blink
Player B โ†’ Healer
Player C โ†’ Tracker
Player D โ†’ Blink

TEAM BLUE:
Player E โ†’ Shield
Player F โ†’ Scout
Player G โ†’ Blink
Player H โ†’ Berserker

Team Red may know that Team Blue has a Blink player, but they do not know WHICH Blue player has Blink.

This should create deception, scouting, protection, traps and strategy instead of simply giving every team the same powers.

\==================================================

1. SMP STATES
   \==================================================

The plugin has two main states:

PRE-SMP
ACTIVE

Default state:

PRE-SMP

The SMP must NOT automatically start when the server starts.

The SMP only becomes ACTIVE when an administrator uses:

/sa start

or starts it through the admin GUI.

# ================================================== 2. PRE-SMP MODE

Before the SMP starts:

Players can choose Team Red or Team Blue.

Players become permanently locked to their chosen team.

Abilities are NOT assigned yet.

Abilities cannot be used.

Ability energy does not regenerate.

Death penalties are disabled.

Secret challenges do not progress.

Team territories are not active yet.

Display a BossBar:

SECRET SMP
Waiting for the SMP to start...

Create:

/sa status

Example:

SMP Status: PRE-SMP

Team Red: 8 players
Team Blue: 7 players

# ================================================== 3. TEAM SYSTEM

There must ONLY be two teams:

RED
BLUE

Do NOT allow admins or players to create additional teams.

Commands:

/sa team

/sa team join red

/sa team join blue

/sa team info

When a player uses:

/sa team

open a GUI.

GUI:

# ================================ CHOOSE YOUR TEAM

[ RED TEAM ]

Members: 8

Click to join Team Red

[ BLUE TEAM ]

Members: 7

Click to join Team Blue

Once the player chooses a team:

Ask for confirmation.

Example:

"Are you sure you want to join Team Red?"

[CONFIRM] [CANCEL]

After confirmation:

"You joined Team Red."

# ================================================== 4. PERMANENT TEAM LOCK

After joining a team, the player is permanently assigned to that team.

Players CANNOT:

/sa team leave

/sa team join blue

/sa team join red

or use any other method to switch teams.

If a Red player tries to join Blue:

"You are permanently assigned to Team Red."

If they try to leave:

"You cannot leave your team."

Only administrators can manually change a player's team.

# ================================================== 5. ADMIN TEAM COMMANDS

Permission:

secretabilities.admin

Commands:

/sa admin team set red

/sa admin team set blue

/sa admin team info

Admins can manually change a player's team if necessary.

Normal players cannot use these commands.

# ================================================== 6. SMP START COMMAND

Create:

/sa start

Permission:

secretabilities.admin

The command starts the SMP.

Before starting, check:

1. SMP is not already active.
2. Team Red has at least one player.
3. Team Blue has at least one player.
4. The world is available.
5. Suitable villages can be found.

If a requirement fails, give the admin a clear error message.

Example:

"Cannot start SMP. Team Blue has no players."

# ================================================== 7. START COUNTDOWN

When `/sa start` is executed, start a configurable countdown.

Default:

10 seconds.

Messages:

"SMP starting in 10 seconds..."

"SMP starting in 5..."

"SMP starting in 4..."

"SMP starting in 3..."

"SMP starting in 2..."

"SMP starting in 1..."

Then:

"THE SMP HAS STARTED!"

Make countdown configurable:

start:
countdown: 10

# ================================================== 8. RANDOM VILLAGE BASE SYSTEM

When the SMP starts, automatically find TWO naturally generated villages.

One village becomes:

TEAM RED TERRITORY

The other becomes:

TEAM BLUE TERRITORY

The villages MUST be different.

Do NOT create artificial villages.

Use naturally generated Minecraft villages.

# ================================================== 9. VILLAGE DISTANCE

The two villages must be far enough apart to create meaningful territories.

Default:

minimum\_distance\_between\_bases: 2000

Allow this to be changed in config.yml.

Example:

minimum\_distance\_between\_bases: 2000

The plugin should search for suitable villages until it finds two villages that satisfy the distance requirement.

Do not use the same village for both teams.

# ================================================== 10. RANDOM VILLAGE ASSIGNMENT

The village assignment must be random.

For example:

Village A โ†’ Red
Village B โ†’ Blue

Another SMP:

Village C โ†’ Blue
Village D โ†’ Red

Do not always assign the closest village to Red.

Randomly determine which suitable village becomes Red's territory.

The other village becomes Blue's territory.

Once selected, save them permanently.

Server restarts must NOT select new villages.

# ================================================== 11. SAFE BASE TELEPORT LOCATION

Calculate a safe teleport location inside or near the center of each village.

Never teleport players:

- Inside blocks
- On roofs
- Inside houses
- In lava
- Over the void
- On dangerous blocks
- In unsafe locations

Store:

World
X
Y
Z
Yaw
Pitch

# ================================================== 12. TEAM TERRITORIES

Each village becomes that team's territory.

Default:

territory\_radius: 250

Example:

Red Territory:
Village center + 250 block radius

Blue Territory:
Village center + 250 block radius

The territory is NOT a protected safe zone.

Enemy players CAN enter enemy territory.

Enemy players CAN fight there.

Enemy players CAN scout the territory.

Enemy players CAN potentially raid the base.

The territory exists mainly for strategic gameplay.

# ================================================== 13. TERRITORY COMMAND

Create:

/sa territory

Shows:

Current Territory:
Team Red

or:

Current Territory:
Team Blue

or:

You are outside all team territories.

When entering a territory:

"You have entered Team Red Territory."

When leaving:

"You have left Team Red Territory."

Add a message cooldown to prevent spam.

# ================================================== 14. BASE COMMAND

Create:

/sa base

Shows the player's team base.

Example:

Your Team:
Red

Base:
Red Village

Coordinates can optionally be shown.

Config:

announce\_base\_coordinates: false

If true:

"Red Base: X Y Z"

If false:

"Your team base is located in the Red Territory."

# ================================================== 15. START TELEPORTATION

When the countdown reaches zero:

Teleport all online Red players to the Red village.

Teleport all online Blue players to the Blue village.

Then display:

"Welcome to your new territory."

Players should receive their random abilities after being teleported.

# ================================================== 16. OFFLINE PLAYERS

If a team member is offline when `/sa start` is executed:

Do NOT remove them.

Their team remains permanent.

Their team base remains saved.

When they next join, show:

"Your team is Red."

"Your team base is located in Red Territory."

If enabled in config, teleport them to their team's territory.

Config:

teleport\_late\_joiners: true

# ================================================== 17. RANDOM SECRET ABILITY SYSTEM

Every player receives exactly ONE random ability.

Abilities are randomly selected from the available ability pool.

Randomization must be independent of:

- Team
- Player name
- UUID
- Join order
- Kills
- Rank

Each ability should have an equal chance by default.

Duplicate abilities ARE allowed.

Example:

Red:
Player A โ†’ Blink
Player B โ†’ Blink
Player C โ†’ Healer

This is completely valid.

Config:

ability:
allow\_duplicate\_abilities: true

# ================================================== 18. ABILITY ASSIGNMENT

Abilities are assigned during the `/sa start` sequence.

Before SMP starts:

"Secret ability: Not assigned."

After SMP starts:

"Your secret ability has been revealed."

"Ability: BLINK"

Only that player receives this message.

Never announce abilities publicly.

Save the ability permanently.

Server restart must NOT reroll abilities.

Player reconnecting must receive the same ability.

Player dying must NOT reroll their ability.

# ================================================== 19. SECRET ABILITY SYSTEM

Create a modular Ability interface.

Each ability should contain:

- ID
- Display name
- Description
- Cooldown
- Energy cost
- Current level
- Maximum level
- Activation method
- Effect
- Upgrade behavior

Make it easy to add future abilities.

# ================================================== 20. INITIAL ABILITIES

Add at least these abilities:

---

## BLINK

Activation:

Sneak + Right Click

Teleport forward.

Level I:
6 blocks

Level II:
9 blocks

Level III:
12 blocks

Must check safe teleport locations.

Cannot teleport into:

- Solid blocks
- Lava
- Void
- Unsafe locations

Uses energy and cooldown.

---

## SHADOW STEP

Activation:

Sneak + Left Click

Provides a short movement burst.

Temporarily provides a stealth effect.

Uses energy and cooldown.

---

## SCOUT

Activation:

Sneak + Right Click

Temporarily detects nearby enemy players.

Should provide useful information without automatically exposing exact coordinates unless configured.

---

## SHIELD

Activation:

Sneak + Right Click

Temporarily provides defensive protection.

Uses energy and cooldown.

---

## HEALER

Activation:

Sneak + Right Click

Heal yourself or a nearby teammate.

Cannot heal endlessly.

---

## TRAPMASTER

Activation:

Sneak + Right Click

Place a temporary special trap.

Trap activates when an enemy enters it.

---

## TRACKER

Activation:

Sneak + Right Click

Temporarily tracks the approximate direction of a selected enemy.

Do not permanently reveal exact coordinates.

---

## BERSERKER

Activation:

Sneak + Right Click

Temporarily provides combat bonuses.

Has a significant cooldown.

# ================================================== 21. SECRET ABILITY INFORMATION

Abilities are SECRET.

Never display an ability:

- Above the player's head
- In their nametag
- In the normal scoreboard
- In tab
- In public chat
- In team information
- To enemy players

Only:

1. The ability owner
2. Administrators

can directly see the ability.

Command:

/sa ability

Example:

SECRET ABILITY

Ability: Blink
Level: I
Energy: 80 / 100

Admin:

/sa admin ability info

# ================================================== 22. ABILITY DISCOVERY / INTEL

Add optional clues that allow players to discover enemy abilities through gameplay.

Example:

A player sees another player use Blink.

Instead of revealing:

"Player123 has Blink."

give vague information:

"You noticed a strange movement ability."

Optional config:

intel:
enabled: true

The system should support future ability-discovery mechanics.

# ================================================== 23. ABILITY ENERGY

Every player has:

100 maximum energy.

Energy regenerates automatically.

Default:

5 energy every 10 seconds.

Configurable:

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10

Example ability costs:

Blink:
20

Scout:
25

Healer:
30

Shield:
25

Trapmaster:
20

# ================================================== 24. COOLDOWN SYSTEM

Every ability has a cooldown.

Cooldowns must be tracked individually per player.

Do not allow activation if:

- Player lacks energy
- Ability is on cooldown
- Player is dead
- Player is spectating
- Ability is disabled

Display cooldown privately.

Example:

"Blink is on cooldown: 18 seconds."

Never publicly reveal cooldown information.

# ================================================== 25. DEATH SYSTEM

Death should matter.

However, players are NEVER permanently eliminated.

Track player deaths.

Death 1:

Lose some maximum ability energy.

Default:
20%

Death 2:

Ability cooldowns increase.

Default:
15%

Death 3:

Ability becomes temporarily weakened.

Example:
20% effectiveness reduction.

Additional deaths may increase penalties.

Set a configurable maximum.

Example:

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

Show the affected player a private message.

Example:

"Your ability has weakened after your third death."

# ================================================== 26. DEATH RESET

Admin command:

/sa admin reset

Reset:

- Death count
- Ability penalties
- Energy penalties

Do NOT change the player's ability unless specifically requested.

# ================================================== 27. ABILITY EVOLUTION

Every ability has:

Level I
Level II
Level III

Players evolve abilities through SECRET CHALLENGES.

Players do NOT level up simply by getting kills.

Example:

Blink I โ†’ Blink II

Challenge:

"Travel 5,000 blocks without using a Nether Portal."

After completion:

"SECRET CHALLENGE COMPLETED!"

Then:

"Your Blink ability evolved to Level II."

# ================================================== 28. SECRET CHALLENGES

Create a modular challenge system.

Example challenges:

TRAVELER:
Travel 5,000 blocks without using a Nether Portal.

EXPLORER:
Visit 5 different biomes.

SURVIVOR:
Survive for 2 Minecraft days without dying.

HUNTER:
Defeat 10 hostile mobs.

SCOUT:
Discover an enemy player.

PROTECTOR:
Prevent a teammate from dying during a PvP encounter.

SURVIVOR II:
Survive for 5 Minecraft days.

Challenges should track progress automatically.

# ================================================== 29. CHALLENGE GUI

Create:

/sa challenges

Open a GUI displaying the player's secret challenges.

Example:

SECRET CHALLENGES

Traveler
3,200 / 5,000 blocks

Explorer
3 / 5 biomes

Survivor
COMPLETED

Only the player can see their challenges.

Other players cannot inspect them.

# ================================================== 30. ABILITY GUI

Create:

/sa menu

Show:

- Secret ability
- Ability level
- Energy
- Death count
- Cooldowns
- Evolution progress
- Secret challenges

Only the player can see their own information.

# ================================================== 31. ANNOUNCEMENT COMMAND

Create an easy server announcement command:

/sa tell

and:

/sa announce

Both commands should broadcast the message to everyone.

Permission:

secretabilities.admin

Example:

/sa tell &cThe Final War begins tomorrow!

Output:

[SERVER] The Final War begins tomorrow!

Support Minecraft color codes.

Make announcement format configurable.

# ================================================== 32. START ANNOUNCEMENT

When the SMP starts, broadcast:

# ================================ SECRET SMP STARTED

Team Red has received its territory.

Team Blue has received its territory.

Your secret abilities have been activated.

Good luck.

\================================

Optionally show a title:

SECRET SMP
HAS STARTED

and a subtitle:

Discover. Survive. Conquer.

# ================================================== 33. ADMIN GUI

Create:

/sa admin

Open an admin control GUI.

Buttons:

START SMP
STOP SMP
ANNOUNCE
TEAM INFORMATION
ABILITY INFORMATION
TERRITORY INFORMATION
RESET PLAYER
REROLL ABILITY

When clicking START SMP:

Ask for confirmation.

"Are you sure you want to start the SMP?"

[CONFIRM]
[CANCEL]

Prevent accidental starts.

# ================================================== 34. ADMIN COMMANDS

Main commands:

/sa start
/sa stop
/sa status
/sa team
/sa territory
/sa base
/sa ability
/sa challenges
/sa menu
/sa tell
/sa announce
/sa reload

Admin:

/sa admin

/sa admin team set red

/sa admin team set blue

/sa admin team info

/sa admin ability info

/sa admin ability give

/sa admin reroll

/sa admin reset

/sa admin start

/sa admin stop

/sa admin debug

/sa reset

/sa reset confirm

# ================================================== 35. ADMIN ABILITY REROLL

Only admins can reroll abilities.

Command:

/sa admin reroll

The player receives a new random ability.

Reset the ability level to:

Level I

Reset evolution progress for the old ability.

Do NOT publicly announce the new ability.

# ================================================== 36. LATE JOINING

Add:

late\_join:
enabled: true

If disabled:

Players cannot join teams after the SMP starts.

Message:

"Team selection is closed because the SMP has already started."

If enabled:

A new player can choose Red or Blue.

Their team becomes permanent.

They receive one random ability.

They are teleported to their team's territory.

# ================================================== 37. TEAM BALANCE

Players can freely choose either team.

Do NOT automatically balance teams by default.

Default:

team\_balance:
enabled: false
max\_difference: 2

If enabled:

Do not allow a team to become more than the configured number of players larger than the other.

# ================================================== 38. SCOREBOARD / TAB

Optionally display:

Team: Red
SMP Status: ACTIVE

Never display:

Ability: Blink

The secret ability must remain hidden.

# ================================================== 39. DATA STORAGE

Use YAML.

Files:

players.yml
teams.yml
territories.yml
config.yml

Player data:

UUID
Name
Team
Ability
Ability Level
Energy
Deaths
Death Penalties
Challenge Progress
Completed Challenges

Always identify players using UUID.

Data must survive:

- Server restart
- Player disconnect
- Player reconnect

# ================================================== 40. TERRITORY DATA

Example:

territories.yml

red:
world: world
x: 1234.5
y: 72
z: -842.5
radius: 250

blue:
world: world
x: -2345.5
y: 68
z: 921.5
radius: 250

Once territories are selected, NEVER randomly select new villages after a server restart.

# ================================================== 41. CONFIGURATION

Create a detailed config.yml.

Example:

smp:
started: false

start:
countdown: 10

teams:
red:
display\_name: "Team Red"
color: RED

blue:
display\_name: "Team Blue"
color: BLUE

team\_selection:
permanent: true

team\_balance:
enabled: false
max\_difference: 2

territories:
minimum\_distance\_between\_bases: 2000
radius: 250

ability:
max\_energy: 100
energy\_regeneration: 5
regeneration\_interval: 10
allow\_duplicate\_abilities: true

evolution:
maximum\_level: 3

death\_penalties:
enabled: true
first\_death\_energy\_loss: 20
second\_death\_cooldown\_increase: 15
third\_death\_weakness: 20
maximum\_penalty: 50

late\_join:
enabled: true
teleport\_late\_joiners: true

intel:
enabled: true

announce\_base\_coordinates: false

messages:
team\_joined: "You joined %team%."
team\_locked: "You cannot leave or switch teams."
ability\_assigned: "Your secret ability is %ability%."
smp\_started: "The Secret SMP has started!"

# ================================================== 42. EXPLOIT PROTECTION

Prevent ability exploits.

Validate:

- Cooldowns
- Energy
- Player state
- Permissions
- World
- Teleport destination
- Block collision

Prevent Blink from teleporting into:

- Solid blocks
- Lava
- Void
- Dangerous locations
- Unloaded chunks

Prevent abilities from being activated while:

- Dead
- Spectating
- Offline
- Ability is on cooldown
- Player lacks energy

# ================================================== 43. PERFORMANCE

Optimize the plugin.

DO NOT run expensive operations every tick.

Use scheduled tasks for:

- Energy regeneration
- Cooldowns
- Challenge tracking

Do not constantly scan every player against every other player.

Clean up temporary data when players disconnect.

# ================================================== 44. PROJECT STRUCTURE

Use clean modular Java architecture.

Package:

com.yourname.secretabilities

Main:

SecretAbilities.java

teams/
Team.java
TeamManager.java
TeamSelectionGUI.java

territories/
Territory.java
TerritoryManager.java
VillageFinder.java

abilities/
Ability.java
AbilityManager.java
BlinkAbility.java
ShadowStepAbility.java
ScoutAbility.java
ShieldAbility.java
HealerAbility.java
TrapmasterAbility.java
TrackerAbility.java
BerserkerAbility.java

players/
PlayerData.java
PlayerDataManager.java

challenges/
Challenge.java
ChallengeManager.java
ChallengeType.java

gui/
MainGUI.java
AbilityGUI.java
ChallengeGUI.java
AdminGUI.java

commands/
SACommand.java
TeamCommand.java
AdminCommand.java

listeners/
PlayerJoinListener.java
PlayerDeathListener.java
PlayerInteractListener.java
PlayerMoveListener.java
EntityDamageListener.java

utils/
CooldownManager.java
EnergyManager.java
MessageUtils.java
RandomAbilityManager.java

# ================================================== 45. MAVEN / PAPER

Minecraft version:

Paper 1.21.1

Java:

Java 21

Build system:

Maven

Create:

pom.xml

plugin.yml

config.yml

The project must compile successfully.

# ================================================== 46. FINAL START FLOW

The complete gameplay flow must be:

STEP 1:

Server starts.

SMP is PRE-SMP.

STEP 2:

Players join.

STEP 3:

Players use:

/sa team

STEP 4:

They choose:

Red

or

Blue

STEP 5:

Their team becomes permanent.

STEP 6:

Players wait for the admin.

STEP 7:

Admin uses:

/sa start

STEP 8:

Plugin checks both teams.

STEP 9:

Plugin finds two naturally generated villages.

STEP 10:

Plugin randomly assigns one village to Red.

STEP 11:

Plugin assigns the other village to Blue.

STEP 12:

Plugin saves both territories permanently.

STEP 13:

Plugin randomly assigns ONE secret ability to every player.

STEP 14:

10-second countdown begins.

STEP 15:

Countdown reaches zero.

STEP 16:

Red players are teleported to Red village.

Blue players are teleported to Blue village.

STEP 17:

Players privately receive their random secret abilities.

STEP 18:

Abilities become active.

STEP 19:

Energy regeneration starts.

STEP 20:

Death penalties become active.

STEP 21:

Secret challenges begin tracking.

STEP 22:

SMP status changes to ACTIVE.

STEP 23:

Everyone receives the start announcement.

The SMP has officially begun.

# ================================================== 47. FINAL GAMEPLAY GOAL

The plugin should create gameplay where players must think:

"Who on the enemy team has Blink?"

"Who is their Healer?"

"Which player should we protect?"

"Can we bait their strongest ability?"

"Did that player just reveal their secret ability?"

"Can we discover their ability before the next fight?"

The plugin should reward:

- Teamwork
- Strategy
- Deception
- Scouting
- Exploration
- Protecting teammates
- Tactical PvP
- Smart ability usage

The plugin should NOT simply become a normal kit-PvP plugin.

The secret ability system must remain the core of the SMP.

# ================================================== 48. FINAL DEVELOPMENT REQUIREMENT

Provide the COMPLETE working source code.

Do NOT provide pseudocode.

Do NOT leave TODO comments.

Do NOT omit required classes.

Every class required for the plugin to compile must be included.

Provide:

1. Complete Maven project
2. pom.xml
3. plugin.yml
4. config.yml
5. All Java classes
6. All required managers
7. All listeners
8. All commands
9. All GUIs
10. Ability system
11. Random ability system
12. Team system
13. Permanent team locking
14. Village finder
15. Territory system
16. SMP start system
17. Countdown
18. Teleportation
19. Energy system
20. Cooldown system
21. Death penalty system
22. Ability evolution
23. Secret challenges
24. Announcement system
25. Data saving/loading

The final project must be ready to import into IntelliJ IDEA, compile with Maven, and test on a Paper 1.21.1 Minecraft server using Java 21.

Also explain exactly how to:

- Import into IntelliJ IDEA
- Configure Java 21
- Build with Maven
- Find the generated JAR
- Install the JAR on Paper 1.21.1
- Start the server
- Create teams
- Start the SMP
- Test random abilities
- Test village territories
- Test death penalties
- Test ability evolution
- Create new abilities
- Create new secret challenges
- Configure the SMP
Kodari AI
KodariSep 8 at 4:21 pm 1
  1. Inspect the existing EnergyBar scaffold and build setup.

  2. Replace it with the SecretAbilities core: teams, persistence, SMP state, start countdown, villages, territories, and energy bar.

  3. Add secret abilities, cooldowns, death penalties, challenges, and player/admin commands.

  4. Add the GUI flows, configuration, plugin metadata, and verify cross-file consistency for Paper 1.21.1/Java 21.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 373
src/main/java/com/kodari/energybar/EnergyBarPlugin.java
package com.kodari.energybar;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class EnergyBarPlugin extends JavaPlugin {

    private EnergyManager energyManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        double maximum = getConfig().getDouble("energy.maximum", 100.0);
        double regenerationPerSecond = getConfig().getDouble("energy.regeneration-per-second", 5.0);
        double sprintDrainPerSecond = getConfig().getDouble("energy.sprint-drain-per-second", 10.0);
        String display = getConfig().getString("energy.display", "&bEnergy: &f{current}&7/&f{maximum}");
        String exhaustedMessage = getConfig().getString("energy.exhausted-message", "&cYou are out of energy.");

        energyManager = new EnergyManager(this, maximum, regenerationPerSecond, sprintDrainPerSecond,
                display, exhaustedMessage);

        getServer().getPluginManager().registerEvents(new EnergyListener(energyManager), this);

        PluginCommand command = getCommand("energy");
        if (command != null) {
            EnergyCommand energyCommand = new EnergyCommand(energyManager);
            command.setExecutor(energyCommand);
            command.setTabCompleter(energyCommand);
        }

        energyManager.start();
    }

    @Override
    public void onDisable() {
        if (energyManager != null) {
            energyManager.stop();
        }
    }
}