ashwinbijarania0-glitch
πŸ“Ž 1 file 31,274 chars
πŸ“„
pasted-code-1791094664462.txt
txt 1883 lines
β–Ά
Absolutely, bro. I’ll make it as a **full developer/build prompt** for MonsterTeams, using the document as the master specification and targeting **Minecraft 26.2**. I’ll also make sure the prompt tells the developer to preserve the existing plugin rather than making a fake/stub plugin.

# MonsterTeams β€” Season 1 Complete Development Prompt

## PROJECT

Develop and update the existing **MonsterTeams** Minecraft server plugin for **Monster SMP β€” Season 1**.

### Target Version

* Minecraft Java Edition **26.2**
* Use the correct compatible server API/build for 26.2.
* Do NOT assume an API version exists without verifying the actual server API dependency.
* Use the correct Java version required by the selected server API.
* Build as a real production plugin.

### IMPORTANT

This is an **existing MonsterTeams project**.

Do NOT create a completely unrelated replacement plugin from scratch.

First inspect the existing MonsterTeams source/JAR/project structure and preserve useful existing systems where they already work.

The final implementation must be a real, functional Minecraft server plugin β€” not a demonstration, mockup, empty JAR, placeholder, pseudo-code project, or fake API implementation.

---

# 1. CORE OBJECTIVE

MonsterTeams is the Season 1 class/team system for Monster SMP.

Every player must receive exactly one of four classes:

1. Vampire
2. Werewolf
3. Zombie
4. Human

Each class must have its own gameplay identity and active abilities.

The classes should NOT feel like four copies of the same potion-effect system.

The main design philosophy is:

> Every class should play differently through active abilities, tactical decisions, movement, detection, combat mechanics, and survival tools.

The master class specification is:

* Vampire = Hunt β†’ Track β†’ Teleport β†’ Escape
* Werewolf = Chase β†’ Detect β†’ Build Rage β†’ Destroy
* Zombie = Summon β†’ Debuff β†’ Survive β†’ Return
* Human = Detect β†’ Trap β†’ Survive

Use these identities throughout the implementation.

---

# 2. PLAYER TEAM ASSIGNMENT / ROLLING SYSTEM

## Mandatory Team Assignment

A player without a saved team/class MUST NOT be allowed to freely play the server.

Immediately when a player joins:

1. Check the player's UUID.
2. Check whether they have a valid saved class.
3. If they do not have a valid class:

   * Immediately mark them as TEAMLESS/LOCKED.
   * Prevent normal gameplay.
   * Open the team roll interface.
4. The player must remain locked until the rolling process is successfully completed.

The lock must happen BEFORE the player gets an opportunity to move or interact.

---

# 3. TOKEN-SMP-STYLE ROLL SYSTEM

The team assignment must use a **dedicated rolling/reveal interface**.

Do NOT use a chest GUI slot-machine system.

Do NOT use a physical chest animation.

Do NOT allow manual team selection.

The system should feel like a modern Token-SMP-style class roll/reveal.

## Four possible results

* Vampire
* Werewolf
* Zombie
* Human

Default probability:

* Vampire: 25%
* Werewolf: 25%
* Zombie: 25%
* Human: 25%

Make the weights configurable.

Example:

```yaml
roll:
  vampire: 25
  werewolf: 25
  zombie: 25
  human: 25
```

The actual result must be calculated server-side.

Use a secure/randomized server-side selection system.

The client must NOT be able to choose the result.

---

# 4. ROLLING INTERFACE

The interface should be professional and clean.

Display:

* Title
* Team/class icons
* Rolling animation
* Current/rolling team names
* Final result
* Team color/theme
* Confirmation/reveal

Example flow:

### Stage 1 β€” Locked

Player joins without a class.

Display:

> YOUR CLASS IS BEING DETERMINED

Player cannot play normally.

### Stage 2 β€” Rolling

The interface visually cycles through the four classes.

Example:

```text
[VAMPIRE] β†’ [WEREWOLF] β†’ [ZOMBIE] β†’ [HUMAN] β†’ ...
```

The animation should feel smooth.

### Stage 3 β€” Final Reveal

The rolling slows down and stops.

Example:

```text
YOUR CLASS

🐺 WEREWOLF
```

### Stage 4 β€” Apply

Only after the reveal is completed:

* Save class
* Remove teamless lock
* Apply class systems
* Apply prefix
* Enable gameplay

---

# 5. IMPORTANT ROLL LOCK FIX

Do NOT assign the class internally before the reveal/roll process is finished.

The player must remain teamless/locked while the animation is running.

Correct order:

```text
Player joins
↓
Player locked
↓
Roll begins
↓
Animation
↓
Result calculated
↓
Reveal animation
↓
Result confirmed
↓
UUID saved
↓
Class applied
↓
Player unlocked
```

The player must NOT receive class permissions/effects/abilities during the rolling animation.

---

# 6. ANTI-BYPASS SYSTEM

This is extremely important.

A player must never be able to bypass the class roll.

## Block all of the following while teamless:

### Movement

* Walking
* Sprinting
* Jumping
* Flying
* Other normal movement exploits

### Combat

* Attack players
* Attack mobs
* Damage entities
* Projectile attacks

### Blocks

* Break blocks
* Place blocks

### Items

* Pickup items
* Drop items
* Use items
* Interact with blocks
* Interact with entities

### Inventories

* Open containers
* Move items
* Shift-click
* Drag items
* Drop items
* Take items
* Put items into containers

### Commands

Prevent commands that could be used to bypass the system.

Allow only explicitly safe/admin commands.

Do not block the administrator's ability to manage/reset the player.

---

# 7. CLOSE / ESCAPE PROTECTION

If the player closes the rolling interface:

Immediately reopen it.

Do not unlock the player.

Do not allow normal gameplay.

If necessary, delay the reopen by a tiny amount to prevent client/UI race conditions, but the player must remain locked.

---

# 8. DISCONNECT / RECONNECT PROTECTION

If a player disconnects before receiving a class:

Save the teamless state using UUID.

When they reconnect:

```text
Join
↓
Check UUID
↓
Still teamless
↓
Lock immediately
↓
Open roll interface
```

They must not be able to escape by reconnecting.

---

# 9. DEATH / RESPAWN PROTECTION

If a teamless player dies:

After respawn:

* Remain teamless.
* Remain locked.
* Reopen the rolling interface.

Death must never assign or bypass a class.

---

# 10. SERVER RESTART PROTECTION

The teamless state must survive:

* Server restart
* Plugin reload where applicable
* Player reconnect

Use persistent player data.

Never rely only on in-memory state.

---

# 11. TEAM DATA

Store class assignment by player UUID.

Example conceptual data:

```text
UUID
Class
FirstAssigned
```

Valid classes:

```text
VAMPIRE
WEREWOLF
ZOMBIE
HUMAN
```

Once assigned, the class must persist.

Normal players cannot reroll.

---

# 12. TEAM RESET

Implement:

```text
/teamreset 
```

Permission:

```text
monsterteams.admin
```

When executed:

1. Remove current class.
2. Remove class effects.
3. Remove temporary abilities/states.
4. Remove Bat Form state.
5. Remove Zombie summoned allies.
6. Remove Human kit tracking if necessary.
7. Remove temporary combat data.
8. Remove cooldowns.
9. Remove rage.
10. Remove active traps.
11. Remove grave.
12. Remove class prefix.
13. Save player as teamless.
14. Immediately lock the player.
15. Force the player into the rolling system again.

The player must not be able to continue playing without completing the roll.

---

# 13. TEAM INFO

Implement:

```text
/teaminfo
```

Display:

* Current class
* Class description
* Active abilities
* Cooldowns where useful
* Current Rage if Werewolf
* Relevant temporary states

Example:

```text
Your Class: WEREWOLF

Abilities:
β€’ Beast Leap
β€’ Predator Sense
β€’ Rage
β€’ Lunar Roar
```

---

# 14. TEAM PREFIXES

Use server scoreboard/team functionality.

Do NOT require Vault.

Prefixes:

```text
[VAMPIRE]
[WEREWOLF]
[ZOMBIE]
[HUMAN]
```

The system must not create duplicate scoreboard teams.

---

# 15. VAMPIRE

## Identity

**Hunt β†’ Track β†’ Teleport β†’ Escape**

The Vampire is a hunter focused on injured targets, mobility, tracking, and escape.

---

## Ability 1 β€” Blood Hunt

Purpose:

Detect nearby injured players.

Behavior:

* Search for nearby players.
* Only consider players below the configured health threshold.
* Do not target healthy players.
* Give the Vampire directional information.
* Give approximate distance.
* Do NOT reveal exact coordinates.
* The target must NOT receive a notification that they were detected.
* Add a cooldown.

Example information:

```text
Blood detected...
Direction: North-East
Distance: ~18 blocks
```

Do not expose exact XYZ coordinates.

The detection must be useful without becoming an ESP/wallhack equivalent.

---

# 16. VAMPIRE β€” BLOOD STEP

Purpose:

Teleport toward an injured target.

Requirements:

* Target must be a valid player.
* Target must be below the health threshold.
* Target must be within the configured maximum range.
* Healthy players cannot be targeted.
* Find a safe teleport position near the target.
* Do not teleport inside blocks.
* Do not teleport into dangerous invalid locations.
* Add cooldown.
* Play a visual/audio effect when teleporting.

The target should not be directly damaged by the teleport itself unless explicitly configured.

---

# 17. VAMPIRE β€” BAT FORM

Activation:

```text
Shift + Right Click
```

Behavior:

* Temporarily transform the Vampire into a Minecraft Bat.
* Use the actual vanilla Bat entity/model/appearance where technically appropriate.
* Give flight.
* Allow rapid aerial movement.
* Give temporary sunlight immunity while in Bat Form.
* Set a duration.
* Set a cooldown.

Second:

```text
Shift + Right Click
```

while in Bat Form:

* Exit Bat Form.

The transformation must not allow duplicate activation.

Prevent:

```text
Bat Form β†’ Bat Form β†’ Bat Form
```

Only one Bat Form state can exist.

On exit/death/quit/reset/server shutdown:

* Clean up the Bat Form state.
* Restore the player's normal state.
* Remove flight if it was provided by the plugin.
* Remove temporary effects.

---

# 18. VAMPIRE β€” SHADOW ESCAPE

Purpose:

Emergency survival ability.

Trigger:

When the Vampire receives heavy damage or meets the configured danger condition.

Behavior:

* Temporarily hide the Vampire.
* Apply invisibility/hidden state as appropriate.
* Duration approximately 3–5 seconds, configurable.
* Add cooldown.

The effect must be temporary.

Do not create permanent invisibility.

Clean up correctly after:

* Expiration
* Death
* Quit
* Reset
* Server restart

---

# 19. WEREWOLF

## Identity

**Chase β†’ Detect β†’ Build Rage β†’ Destroy**

The Werewolf is the aggressive close-range class.

---

# 20. WEREWOLF β€” BEAST LEAP

Activation:

```text
Sneak + Right Click
```

Behavior:

* Launch the Werewolf rapidly forward.
* Similar movement feeling to Riptide-style forward propulsion.
* Must NOT require a Trident.
* Must NOT require water.
* Movement ability only.
* Should provide strong mobility for chasing enemies.
* Add cooldown.
* Prevent abuse through repeated triggering.

Use the player's look direction.

Ensure the launch does not cause unreasonable fall/death behavior.

---

# 21. WEREWOLF β€” PREDATOR SENSE

Activation:

```text
Sneak + Left Click
```

Range:

```text
32 blocks
```

Behavior:

* Search for nearby players.
* Detect players through blocks.
* Show detected players with a red glowing outline.
* Only the Werewolf can see the detection.
* Other players must NOT see the outline.
* Duration is limited.
* Add cooldown.

This is a temporary hunting/detection ability.

Do not create a permanent outline.

Clean up all glow state after expiration.

---

# 22. WEREWOLF β€” RAGE

Rage is a combat meter.

The Werewolf must actually fight to charge it.

Whenever the Werewolf successfully hits another player:

```text
Rage increases
```

Do not charge Rage merely by:

* Clicking air
* Hitting mobs
* Repeatedly triggering abilities
* Attacking itself

Only valid player combat should generate Rage.

Rage must have:

* Current value
* Maximum value
* Persistent runtime state while online
* Reset/cleanup behavior

Example:

```text
RAGE
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ 70%
```

When Rage reaches maximum:

```text
RAGE READY
```

The exact final activation must be implemented cleanly and should consume/reset the stored Rage.

Do not allow Rage to become permanently full without being consumed.

---

# 23. WEREWOLF β€” LUNAR ROAR

Activation:

```text
Hold Right Click
```

Charge the ability.

When the player releases:

```text
Roar
```

Effects apply to nearby enemies.

Potential effects supported by the design:

* Knockback
* Short Slowness
* Visual effect
* Audio effect
* Area-of-effect impact

The effect should become stronger when fully charged.

Use a controlled charge system.

Prevent infinite charge.

Add cooldown after activation.

The Werewolf itself must not be affected.

---

# 24. ZOMBIE

## Identity

**Summon β†’ Debuff β†’ Survive β†’ Return**

Zombie is the tactical undead class.

---

# 25. ZOMBIE β€” RAISE DEAD

Summon temporary undead allies.

Requirements:

* Summoned allies follow the Zombie owner.
* They attack valid enemies.
* They never attack their owner.
* They must not randomly attack innocent players.
* Give them limited health.
* Give them limited duration.
* Despawn automatically after duration.
* Add cooldown.
* Track summoned entities per owner.

If the owner:

* Dies
* Quits
* Changes class
* Uses `/teamreset`
* Is removed

clean up the summoned allies.

Do not create duplicate permanent mobs.

---

# 26. ZOMBIE β€” GRAVE RETURN

The Zombie can create one temporary grave location.

Requirements:

* One active grave per Zombie.
* Grave lasts approximately 5 minutes.
* Duration configurable.
* No warm-up.
* Taking damage does not cancel the ability.
* When activated, instantly teleport the Zombie back to the grave.
* After teleportation, remove the grave.
* Add cooldown.

Ensure the destination is safe.

Do not teleport the player inside blocks.

If the grave's world becomes unavailable, invalidate it safely.

Clean up on:

* Death
* Quit
* Reset
* Server restart

---

# 27. ZOMBIE β€” ROTTING TOUCH

Charge the next melee hit.

Activation should mark the Zombie's next valid melee attack.

The next successful melee hit:

* Applies temporary negative effects.
* Examples:

  * Slowness
  * Weakness
* Creates a special visual effect.
* Consumes the charged state.
* Starts cooldown.

Do not repeatedly apply the ability without recharging.

Do not trigger from:

* Air
* Block breaking
* Projectile attacks
* Invalid entities

unless explicitly configured.

---

# 28. ZOMBIE β€” UNDEAD SHIELD

Temporary defensive ability.

Behavior:

* Temporarily reduce incoming damage or provide controlled defensive protection.
* It must NOT be permanent Resistance.
* Add visual feedback.
* Add duration.
* Add cooldown.

Clean up after:

* Duration
* Death
* Quit
* Reset

---

# 29. HUMAN

## Identity

**Detect β†’ Trap β†’ Survive**

Human is the tactical survival class.

---

# 30. HUMAN β€” MONSTER SCANNER

Activation:

```text
Sneak + Right Click
```

Range:

```text
32 blocks
```

Detect:

* Vampire
* Werewolf
* Zombie

Do NOT detect normal Humans as monsters.

Behavior:

* Detect through blocks.
* Give detected monster players a red outline.
* Only the Human sees it.
* Duration:
  approximately 15 seconds.
* Add cooldown.

Clean up the outline after the duration.

---

# 31. HUMAN β€” HUNTER TRAP

Activation:

```text
Sneak + Left Click
```

Create a:

```text
5 Γ— 5
```

trap area around the Human.

Important:

The trap must be visually hidden from other players.

Only the Human owner should be able to see the trap indicator/visualization.

Other players should not see:

* The trap box
* The trap boundaries
* The trap indicator

When a monster enters the trap:

Apply:

* Slowness
* Blindness

Duration:

```text
5 seconds
```

The Human owner must NOT be affected.

The trap should have controlled duration/cleanup and should not create permanent world blocks unless explicitly designed otherwise.

---

# 32. HUMAN β€” PERMANENT RESISTANCE

Human receives permanent defensive protection.

This should be implemented safely and without continuously stacking duplicate effects.

The effect must:

* Persist while the player is Human.
* Be restored after reconnect.
* Be removed when class is reset.
* Not duplicate every tick.
* Not interfere with other class abilities.

---

# 33. ABILITY INPUT HANDLING

Handle interactions carefully.

Required controls:

### Vampire

```text
Blood Hunt
Blood Step
Bat Form = Sneak + Right Click
Shadow Escape = automatic trigger
```

### Werewolf

```text
Beast Leap = Sneak + Right Click
Predator Sense = Sneak + Left Click
Rage = combat-generated
Lunar Roar = Hold Right Click β†’ Release
```

### Zombie

```text
Raise Dead
Grave Return
Rotting Touch
Undead Shield
```

### Human

```text
Monster Scanner = Sneak + Right Click
Hunter Trap = Sneak + Left Click
Permanent Resistance = passive
```

Prevent conflicting abilities from activating accidentally.

For example:

* A Vampire should not trigger Werewolf abilities.
* A Human should not trigger Zombie abilities.
* Sneak + right-click should only trigger the correct class ability.
* Sneak + left-click should only trigger the correct class ability.

---

# 34. COOLDOWN SYSTEM

Create a proper centralized cooldown system.

Each ability should have:

* Ability ID
* Cooldown duration
* Last activation timestamp
* Remaining cooldown

Example:

```text
Blood Hunt
Cooldown: 30 seconds
```

If an ability is unavailable:

```text
Ability on cooldown: 12s
```

Do not allow multiple activations through rapid clicking.

Cooldowns should be cleaned up correctly.

---

# 35. TEMPORARY STATE SYSTEM

Track temporary states centrally.

Examples:

```text
teamless
batForm
rage
grave
trap
rottingTouchCharged
undeadShield
shadowEscape
predatorSense
monsterScanner
summonedUndead
```

Never rely on random Bukkit metadata alone for critical persistent player state.

---

# 36. CLEANUP SYSTEM

Every temporary system must have cleanup.

Cleanup events:

* Player death
* Player quit
* Player kick
* Team reset
* Class change
* Plugin disable
* Server shutdown
* Ability expiration

Examples:

### Vampire

* Bat Form
* Flight
* Invisibility
* Target tracking

### Werewolf

* Rage
* Glow
* Charge state

### Zombie

* Summoned mobs
* Grave
* Rotting Touch
* Undead Shield

### Human

* Scanner glow
* Trap
* Resistance

No stale states should remain.

---

# 37. PERSISTENCE

Persist important data.

At minimum:

```text
UUID β†’ Class
```

The data must survive:

* Restart
* Reconnect
* Plugin reload where supported

Use a reliable storage format.

A simple YAML/JSON/player-data system is acceptable if implemented safely.

Do not lose team assignments because the server restarted.

---

# 38. MULTI-WORLD SUPPORT

Abilities must work safely across worlds.

Teleport abilities must verify:

* Same world
* Target exists
* Destination is valid
* World is loaded

Do not teleport players across worlds accidentally unless explicitly designed.

---

# 39. SAFE TELEPORTATION

Every teleport ability must validate the destination.

Never teleport into:

* Solid blocks
* Lava
* Void
* Invalid unloaded chunks
* Dangerous locations

For:

* Blood Step
* Grave Return
* Bat Form transitions

use safe location validation.

---

# 40. PLAYER-SPECIFIC VISUAL EFFECTS

Detection abilities must be player-specific.

For example:

Predator Sense:

```text
Werewolf sees red outline
Other players do not
```

Monster Scanner:

```text
Human sees red outline
Other players do not
```

Do not implement these as global permanent glowing effects.

Use packet/client-specific methods where required by the selected server API.

---

# 41. PERFORMANCE REQUIREMENTS

MonsterTeams must be lightweight.

Avoid:

* Heavy repeating tasks every tick unless necessary.
* Searching every player constantly.
* Constantly scanning large areas.
* Creating unnecessary entities.
* Memory leaks.
* Unbounded HashMaps.
* Permanent tasks per player.

Prefer:

* Scheduled tasks only while an ability is active.
* Small search radius.
* Event-driven systems.
* Proper cleanup.
* Centralized managers.

Detection range is normally only:

```text
32 blocks
```

---

# 42. DUPLICATE PREVENTION

Prevent duplicate:

* Abilities
* Effects
* Bat Forms
* Graves
* Traps
* Summoned undead
* Scoreboard teams
* Cooldowns
* Tasks

Example:

A Vampire cannot activate Bat Form while already in Bat Form.

A Zombie cannot create a second grave while one is already active.

---

# 43. CLASS-SPECIFIC CLEANUP

When `/teamreset` is executed:

## Vampire

Remove:

* Bat Form
* Flight
* Shadow Escape
* Temporary invisibility
* Tracking state

## Werewolf

Remove:

* Rage
* Glow
* Charge states
* Temporary effects

## Zombie

Remove:

* Summoned undead
* Grave
* Rotting Touch charge
* Undead Shield

## Human

Remove:

* Scanner state
* Trap
* Human-only effects

Then return player to:

```text
TEAMLESS
```

and force a new roll.

---

# 44. SEASON 1 BLOOD MOON RULE

Do NOT implement Blood Moon into this Season 1 class system unless separately requested.

Blood Moon is a separate future/event system.

Do not mix Season 1's core class abilities with future Blood Moon mechanics.

---

# 45. NO OLD ZOMBIE DOG SYSTEM

Do not automatically preserve the old Zombie guard-dog mechanic if it exists in the previous plugin.

Season 1's current Zombie identity is:

```text
Raise Dead
Grave Return
Rotting Touch
Undead Shield
```

The new Zombie system should use the current master specification.

Do not reintroduce old Zombie Dogs unless explicitly requested.

---

# 46. USER EXPERIENCE

The plugin should feel like a polished SMP plugin.

Use:

* Clear messages
* Professional GUI
* Consistent formatting
* Cooldown messages
* Ability activation feedback
* Sounds
* Particles
* Titles/action bars where appropriate

Do not spam chat.

Use action bar/title/sound/particles when they communicate ability state better than chat.

---

# 47. CONFIGURATION

Create a useful configuration file.

Example structure:

```yaml
roll:
  vampire: 25
  werewolf: 25
  zombie: 25
  human: 25

vampire:
  blood-hunt:
    range: 32
    health-threshold: 50
    cooldown: 30

  blood-step:
    range: 32
    cooldown: 45

  bat-form:
    duration: 20
    cooldown: 60

  shadow-escape:
    duration: 4
    cooldown: 90

werewolf:
  beast-leap:
    cooldown: 10

  predator-sense:
    range: 32
    duration: 8
    cooldown: 30

  rage:
    max: 100
    per-hit: 10

  lunar-roar:
    max-charge: 3
    cooldown: 30

zombie:
  raise-dead:
    duration: 30
    cooldown: 60

  grave-return:
    duration: 300
    cooldown: 120

  rotting-touch:
    cooldown: 30

  undead-shield:
    duration: 8
    cooldown: 45

human:
  monster-scanner:
    range: 32
    duration: 15
    cooldown: 45

  hunter-trap:
    size: 5
    duration: 60
    effect-duration: 5
    cooldown: 60
```

Values may be adjusted after testing.

---

# 48. COMMANDS

Required:

```text
/teaminfo
/teamreset 
```

Permissions:

```text
monsterteams.admin
```

Only authorized administrators can reset another player's class.

Normal players must not be able to force their own reroll.

---

# 49. ERROR HANDLING

The plugin must fail safely.

Examples:

If a target disappears:

```text
Cancel ability safely.
```

If a world is unloaded:

```text
Invalidate unsafe teleport.
```

If an entity is removed:

```text
Remove it from tracking.
```

If a player quits:

```text
Clean temporary runtime state.
```

Do not throw repeated console errors.

Do not crash the server because an ability target is invalid.

---

# 50. EXISTING PLUGIN INSPECTION

Before modifying the existing plugin:

1. Inspect the existing project.
2. Inspect plugin.yml.
3. Inspect main class.
4. Inspect managers.
5. Inspect team storage.
6. Inspect rolling system.
7. Inspect current GUI.
8. Inspect current ability code.
9. Inspect current cleanup code.
10. Identify working components.
11. Identify broken components.
12. Reuse working architecture where appropriate.
13. Replace outdated systems only where required.

Do not blindly rewrite everything.

---

# 51. IMPORTANT EXISTING ROLL SYSTEM FIX

If the existing plugin already has a rolling manager:

Preserve the rolling concept.

Fix any problem where the class is internally assigned before the rolling/reveal animation is complete.

The player must remain:

```text
TEAMLESS + LOCKED
```

until the final reveal finishes.

Only then:

```text
assign class
save UUID
apply class
unlock player
```

---

# 52. BUILD REQUIREMENTS

Use a proper Maven project.

Example structure:

```text
MonsterTeams/
 β”œβ”€β”€ pom.xml
 └── src/
     └── main/
         β”œβ”€β”€ java/
         └── resources/
             β”œβ”€β”€ plugin.yml
             └── config.yml
```

Do not include fake Bukkit/Paper classes.

Do not create placeholder APIs.

Use the real server API dependency compatible with Minecraft 26.2.

---

# 53. DEPENDENCY REQUIREMENTS

Keep dependencies minimal.

Do not add unnecessary libraries.

If an existing dependency is already working and compatible, preserve it where possible.

Any external dependency must be declared properly through Maven.

Do not illegally bundle server APIs into the final plugin.

---

# 54. COMPILATION

The developer MUST actually compile the project.

Run:

```bash
mvn clean package
```

Fix all:

* Compilation errors
* Dependency errors
* API errors
* Java errors
* Resource errors
* plugin.yml errors

Do not claim success without a successful build.

---

# 55. FINAL JAR VALIDATION

Before delivering the plugin:

Verify:

### JAR exists

```text
target/MonsterTeams-*.jar
```

### plugin.yml exists

Verify:

* name
* version
* main
* commands
* permissions

### Main class exists

Example:

```text
com.monsterteams.MonsterTeamsPlugin
```

### No fake API

Confirm the plugin does not contain fake:

```text
org.bukkit.*
io.papermc.*
```

server API classes.

### Functional systems

Test:

* New player
* Roll interface
* Closing interface
* Reconnect
* Death
* Respawn
* Restart
* Team persistence
* Team reset
* Team info
* Each class
* Each ability
* Cooldowns
* Cleanup

---

# 56. TEST PLAN

Test every class independently.

## Vampire test

```text
New Vampire
↓
Blood Hunt
↓
Find injured target
↓
Blood Step
↓
Bat Form
↓
Exit Bat Form
↓
Shadow Escape
↓
Death
↓
Reconnect
```

## Werewolf test

```text
Beast Leap
↓
Predator Sense
↓
Hit player repeatedly
↓
Rage increases
↓
Rage becomes ready
↓
Lunar Roar charge
↓
Release
↓
Cooldown
```

## Zombie test

```text
Raise Dead
↓
Allies follow owner
↓
Allies attack valid enemy
↓
Owner remains safe
↓
Create Grave
↓
Take damage
↓
Grave Return
↓
Rotting Touch
↓
Undead Shield
```

## Human test

```text
Monster Scanner
↓
Detect monster
↓
Hunter Trap
↓
Monster enters
↓
Monster receives Slowness + Blindness
↓
Human remains unaffected
↓
Resistance remains active
```

---

# 57. ANTI-EXPLOIT TESTING

Test:

```text
ESC during roll
Disconnect during roll
Reconnect during roll
Death during roll
Respawn during roll
Server restart during roll
Inventory interactions
Shift-click
Drag items
Drop items
Commands
Movement
Block breaking
Block placing
Combat
Entity interaction
```

Every bypass must fail.

---

# 58. ABILITY TESTING

Test every ability:

* Activation
* Cooldown
* Duration
* Visual feedback
* Sound
* Target validation
* Invalid target
* Target leaves range
* Target dies
* Owner dies
* Owner quits
* Server restart
* Reset
* Duplicate activation

---

# 59. FINAL QUALITY STANDARD

The final MonsterTeams plugin must feel like a real polished SMP plugin.

It must NOT feel like:

* A test plugin
* A proof of concept
* A placeholder
* A fake JAR
* A collection of commands
* A basic potion-effect plugin

It should feel like a complete Season 1 class system.

---

# 60. FINAL ACCEPTANCE CRITERIA

The project is complete ONLY when:

* [ ] Real Minecraft 26.2-compatible server API is used.
* [ ] Project compiles successfully.
* [ ] Final JAR is generated.
* [ ] No fake API classes are bundled.
* [ ] Player is locked before class selection.
* [ ] Roll system cannot be bypassed.
* [ ] Roll is server-controlled.
* [ ] Class assignment persists by UUID.
* [ ] Closing interface reopens it.
* [ ] Reconnect cannot bypass it.
* [ ] Death/respawn cannot bypass it.
* [ ] Server restart cannot bypass it.
* [ ] `/teamreset` works.
* [ ] `/teaminfo` works.
* [ ] Vampire works.
* [ ] Werewolf works.
* [ ] Zombie works.
* [ ] Human works.
* [ ] All cooldowns work.
* [ ] Temporary states clean up.
* [ ] No duplicate abilities/states are created.
* [ ] No old Zombie Dog system is reintroduced.
* [ ] Blood Moon is not mixed into Season 1.
* [ ] Performance is acceptable.
* [ ] Console remains clean during normal operation.
* [ ] Final JAR is tested before delivery.

# FINAL INSTRUCTION

Build the plugin as a **production-ready MonsterTeams Season 1 system**, using the existing MonsterTeams project as the foundation where possible.

Do not simplify the abilities.

Do not replace the rolling system with a manual GUI.

Do not use a chest-based roulette system.

Do not create placeholder functionality.

Do not claim an ability works until it has been implemented and tested.

If an API feature required for Minecraft 26.2 differs from the older plugin implementation, adapt the implementation to the real 26.2-compatible API instead of using deprecated or fictional methods.

The final result must be a real, compilable, functional MonsterTeams plugin.
Kodari AI
KodariOct 4 at 6:27 am 3
MonsterTeams
MonsterTeams is a Season 1 class/team system for Monster SMP that assigns every player one of four classes: Vampire, Werewolf, Zombie, or Human. Players must complete a server-controlled rolling/reveal interface before gameplay is unlocked, with anti-bypass protections for movement, combat, inventory, and commands. Each class has unique active abilities: Vampire hunts injured targets with Blood Hunt, Blood Step, Bat Form, and Shadow Escape; Werewolf chases with Beast Leap, Predator Sense, Rage, and Lunar Roar; Zombie summons allies, creates graves, applies Rotting Touch, and uses Undead Shield; Human detects monsters, places traps, and has permanent Resistance. Includes persistent UUID-based class storage, cooldown system, temporary state cleanup, configurable abilities, and admin commands for team reset and info.
  1. Verify whether a Paper API release for Minecraft 26.2 is available before selecting the build target.

  2. Create the Maven project and plugin resources.

  3. Implement persistent class rolls, teamless protections, commands, abilities, and cleanup.

Created the MonsterTeams Maven project targeting the verified Paper 26.2 API release 26.2.build.129-stable. It includes weighted class rolls, persistent UUID assignments, teamless protections, /teaminfo, /teamreset, class prefixes, and class abilities with cooldowns and cleanup.

Two limits to note: detection abilities report nearby monsters privately rather than showing viewer-only glowing outlines, and I haven’t verified the project with a build. I can’t claim it compiles successfully yet.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
10 1,451
src/main/java/com/monsterteams/MonsterTeamsPlugin.java
package com.monsterteams;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;

import java.util.UUID;

public final class MonsterTeamsPlugin extends JavaPlugin {
    private TeamStorage teamStorage;
    private RollManager rollManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        teamStorage = new TeamStorage(this);
        rollManager = new RollManager(this);
        abilityManager = new AbilityManager(this);
        TeamCommand command = new TeamCommand(this);
        getCommand("teaminfo").setExecutor(command);
        getCommand("teaminfo").setTabCompleter(command);
        getCommand("teamreset").setExecutor(command);
        getCommand("teamreset").setTabCompleter(command);
        getCommand("ability").setExecutor(command);
        getCommand("ability").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(new GameplayListener(this), this);
        registerScoreboardTeams();

        for (Player player : Bukkit.getOnlinePlayers()) {
            handleJoin(player);
        }
    }

    @Override
    public void onDisable() {
        if (rollManager != null) {
            rollManager.cancelAll();
        }
        if (abilityManager != null) {
            abilityManager.cleanupAll();
        }
        if (teamStorage != null) {
            teamStorage.save();
        }
    }

    public void handleJoin(Player player) {
        TeamType type = teamStorage.getTeam(player.getUniqueId());
        if (type == null) {
            clearPrefix(player);
            rollManager.start(player);
            return;
        }
        applyPrefix(player, type);
        abilityManager.applyClass(player, type);
    }

    public void completeRoll(Player player, TeamType type) {
        teamStorage.assign(player.getUniqueId(), type);
        applyPrefix(player, type);
        abilityManager.applyClass(player, type);
    }

    public void resetPlayer(OfflinePlayer target) {
        UUID id = target.getUniqueId();
        abilityManager.cleanupPlayer(id);
        teamStorage.remove(id);
        Player online = target.getPlayer();
        if (online != null) {
            clearPrefix(online);
            rollManager.start(online);
        }
    }

    private void registerScoreboardTeams() {
        Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
        for (TeamType type : TeamType.values()) {
            String name = "mt_" + type.name().toLowerCase();
            Team team = scoreboard.getTeam(name);
            if (team == null) {
                team = scoreboard.registerNewTeam(name);
            }
            team.setPrefix(type.getColor() + "[" + type.name() + "] " + ChatColor.RESET);
        }
    }

    private void applyPrefix(Player player, TeamType type) {
        Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
        for (TeamType candidate : TeamType.values()) {
            Team team = scoreboard.getTeam("mt_" + candidate.name().toLowerCase());
            if (team != null) {
                team.removeEntry(player.getName());
            }
        }
        Team team = scoreboard.getTeam("mt_" + type.name().toLowerCase());
        if (team != null) {
            team.addEntry(player.getName());
        }
    }

    public void clearPrefix(Player player) {
        Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
        for (TeamType type : TeamType.values()) {
            Team team = scoreboard.getTeam("mt_" + type.name().toLowerCase());
            if (team != null) {
                team.removeEntry(player.getName());
            }
        }
    }

    public TeamStorage getTeamStorage() {
        return teamStorage;
    }

    public RollManager getRollManager() {
        return rollManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
}