RACEPLUGIN-FIXED — COMPLETE PLUGIN BREAKDOWN
================================================
Source archive inspected:
RacePlugin-fixed.zip
Archive contents:
- 47 Java source files
- plugin.yml
- pom.xml
- 49 files total
This document contains the full breakdown of the plugin: its gameplay, files, commands, messages, abilities, V4 system, persistence, and implementation quirks.
================================================
1. WHAT THIS PLUGIN IS
================================================
This is a Minecraft/Paper race system with six races:
Human
Mink
Ghoul
Cyborg
Angel
Shark
Each race has four versions:
V1 = basic passive
V2 = active ability
V3 = upgraded passive
V4 = staged transformation/ultimate system
High-level ability table:
Human
- V1: attack damage
- V2: Last Stand
- V3: more attack damage
- V4: seven arrows + Second Life
Mink
- V1: speed
- V2: Dash
- V3: much more speed
- V4: enhanced dash + Ultimate
Ghoul
- V1: no implemented passive
- V2: Soul Drain
- V3: speed + damage + lifesteal
- V4: skull attack + capped lifesteal
Cyborg
- V1: no implemented passive
- V2: temporary armor
- V3: armor + knockback resistance + reduced hunger loss
- V4: chain damage + bleed + lightning ultimate
Angel
- V1: no implemented passive
- V2: Divine Flight
- V3: regeneration
- V4: flight + Shulker Bullet + stun aura
Shark
- V1: water breathing
- V2: Deep Predator
- V3: water/land resistance
- V4: Ice Throw + slowing water aura
================================================
2. NEW-PLAYER EXPERIENCE
================================================
When a player joins:
If they already have race data:
- Race data is loaded from races.yml.
- Their race and version are restored.
- V4 quest progress, stage and meter are restored.
- Their correct base passive is reapplied.
If they do not have race data:
- A random race is selected from the six races.
- The player starts at V1.
- Quest progress = 0.
- V4 stage = 0.
- V4 meter = 0.
The new player receives:
✦ RACE AWAKENED ✦
Your race is:
Race Version: V1
The random race list is:
HUMAN
MINK
GHOUL
CYBORG
ANGEL
SHARK
Java's random selection makes the intended odds approximately equal among the six.
================================================
3. VERSION SYSTEM
================================================
V1:
The basic passive.
V2:
Keeps the V1 passive and adds a V2 active ability.
V3:
Removes/replaces the V1 passive and applies a stronger V3 passive.
V4:
Uses the V3 passive as its base, then adds the V4 system and race-specific abilities.
A V4 player therefore still gets the V3 base passive.
Many V2 abilities are disabled while V4 is active.
================================================
4. V4 SYSTEM
================================================
V4 player data includes:
- Quest progress: 0–3
- Stage: 0–3
- Meter: 0–100%
There are three intended quests and three intended stages.
IMPORTANT:
The code contains completeQuest(player, quest), but no gameplay code in this plugin actually calls it.
Therefore:
- There is no real quest objective system implemented.
- There are no actual kill/collection/survival quests implemented here.
- /v4 quest <1-3> checks quest status.
- It does not complete quests.
The practical way to give quest/stage progress is the OP /change command.
================================================
5. /v4 ACTIVATION
================================================
Command:
/v4
Requirements:
- Version must be 4 or higher.
- Quest 1 must be complete.
- V4 meter must be at 100%.
The actual meter check is approximately:
meter >= 99.999
On success:
✦ V4 ACTIVATED ✦
V4 Stage active.
The V4 meter then drains.
There is no normal /v4 off command.
================================================
6. V4 METER
================================================
Meter range:
0% to 100%
When a V4 player hits another player:
+100/15 = approximately +6.67%
When a V4 player hits a mob:
+100/60 = approximately +1.67%
The meter is capped at 100%.
Meter updates are displayed as:
V4 Meter: % filled
The meter can be charged before activating V4.
Important:
Some real ability damage can also participate in the V4 damage listener because the meter system listens for damage events.
Cyborg's special secondary/internal damage is marked internal so it does not recursively generate more chain effects or extra meter.
================================================
7. V4 METER DRAIN
================================================
While V4 is active:
- Meter drains 1% per second.
At 0%:
V4 ended: V4 Meter empty
V4 then deactivates.
Special one-use V4 abilities are reset when the V4 activation ends normally.
================================================
8. COMMON V4 STAGE 1
================================================
All active V4 players get:
- Glowing
- Resistance I
Everyone except Mink gets +10% movement speed.
Mink does not get that shared +10% speed modifier.
Shark also gets +10% attack damage in common V4 Stage 1.
So:
Human:
- Glowing
- Resistance I
- +10% speed
Mink:
- Glowing
- Resistance I
Ghoul:
- Glowing
- Resistance I
- +10% speed
Cyborg:
- Glowing
- Resistance I
- +10% speed
Angel:
- Glowing
- Resistance I
- +10% speed
Shark:
- Glowing
- Resistance I
- +10% speed
- +10% damage
================================================
9. HUMAN
================================================
HUMAN V1
---------
Actual implemented passive:
+40% attack damage
IMPORTANT COMMENT/CODE MISMATCH:
The source comment says +80%, but the actual constant is 0.40, so the implemented value is +40%.
If the attack damage attribute is unavailable, the plugin can display:
Attack damage attribute is NULL
HUMAN V2 — LAST STAND
---------------------
Activation:
- Right-click
- Main hand
- Air or block
- Disabled while V4 is active
Cooldown:
60 seconds
Duration:
20 seconds
Activation message:
⚔ LAST STAND ACTIVATED! 20 seconds
Activation also plays an attack sound and spawns flame particles.
Damage scaling while active:
Above 75% health:
- 1.00x damage
50–75%:
- 1.10x
25–50%:
- 1.20x
10–25%:
- 1.35x
10% or less:
- 1.50x
Only damage from a Player damager is handled by this specific listener.
IMPORTANT NAME MISMATCH:
The listener is called HumanV2FlashStepListener, but the actual ability implemented is Last Stand.
There is no actual flash-step teleport in this V2 ability.
HUMAN V3
---------
Actual passive:
+60% attack damage
HUMAN V4 STAGE 2 — SEVEN ARROWS
--------------------------------
Activation:
- Right-click
- V4 active
- Stage 2 or higher
Fires:
7 arrows
Spread:
-3, -2, -1, 0, +1, +2, +3
Arrow damage:
3.0 HP
Approximate projectile speed:
2.5
Arrows:
- Cannot be picked up.
- Are tagged with persistent data identifying them as Human V4 arrows.
Cooldown:
5 seconds
Action bar:
⚔ Human Arrows s
Ready message:
⚔ Human Arrows READY!
Fire message:
⚔ Human Stage 2: 7 arrows fired!
IMPORTANT:
The Human low-health V4 damage multiplier does not affect these specially tagged V4 arrows.
HUMAN V4 STAGE 2 — LOW-HEALTH DAMAGE
-------------------------------------
While V4 is active and the required progress is reached:
>75% HP:
1.00x
>50%:
1.10x
>25%:
1.20x
>10%:
1.35x
<=10%:
1.50x
HUMAN V4 STAGE 3 — SECOND LIFE
-------------------------------
Requirements:
- Human
- V4 active
- Stage 3
Usage:
- Once per V4 activation
When incoming damage would kill the player:
- Damage is cancelled.
- Player survives.
- Health is restored to 50% of max health.
- About 1 second of no-damage time is applied.
The Human V3 modifier is removed.
Message:
✦ SECOND LIFE ACTIVATED! ✦
You survived a fatal attack!
Human V3 and V4 are locked for 10 minutes.
After the 10-minute lockout:
Your Human V3 abilities are available again.
================================================
10. MINK
================================================
MINK V1
-------
Actual passive:
+15% movement speed
If movement speed attribute is unavailable:
Movement speed attribute is NULL
MINK V2 — DASH
--------------
Activation:
- Right-click
- Survival/Adventure only
- Horizontal dash based on looking direction
- Disabled while V4 is active and while suppressed
Dash strength:
2.8
Cooldown:
15 seconds
IMPORTANT COMMENT/CODE MISMATCH:
The source comment says 7 seconds.
The actual constant is 15,000 ms, so the real cooldown is 15 seconds.
Cooldown message:
Mink Dash is on cooldown! remaining.
Activation:
⚡ Mink Dash activated! ⚡
Other message:
Wrong game mode.
MINK V3
-------
Actual passive:
+50% movement speed
MINK V4 STAGE 2 — DASH
----------------------
Activation:
- Right-click
- V4 active
- Stage 2+
Cooldown:
2 seconds
Food cost:
1 food level = half a hunger icon
Dash speed:
approximately 2.2
Effects:
- Cloud particles
- Wind burst
Wind burst:
Range: 3 blocks
Damage: 6 HP
Horizontal knockback: about 1.8
Vertical knockback: about 0.65
Messages:
⚡ Mink Stage 2: DASH!
⚡ Mink Dash s
⚡ Mink Dash READY!
MINK V4 STAGE 3 — ULTIMATE
---------------------------
Activation:
- Hold crouch/sneak
- Must hold for 3 seconds
- Cancels if sneak is released early
- Once per V4 activation
Charge message:
⚡ Hold crouch for 3.0s to charge Mink Ultimate...
Release:
- Launches the Mink forward using velocity, not teleportation.
- Launch speed about 3.5.
- Lightning effects and cloud effects trail the movement.
At the original position, nearby players within 5 blocks:
- Take 8 HP damage.
- Are knocked back.
- Knockback is about 2.5 horizontal and 1.0 upward.
Release message:
⚡ MINK V4 ULTIMATE RELEASED!
================================================
11. GHOUL
================================================
GHOUL V1
---------
No implemented passive.
GHOUL V2 — SOUL DRAIN
----------------------
Activation:
- Right-click
- Finds another player
- Maximum range 10 blocks
- Target must be visible
- Target must be sufficiently centered in crosshair
Crosshair condition:
dot product >= 0.85
Cooldown:
120 seconds
Target effect:
V2 ability suppression for 30 seconds
Target message:
☠ Your race ability has been suppressed!
You cannot use your V2 ability for 30 seconds.
Ghoul effect:
- Strength I
- Speed I
- Duration 20 seconds
Ghoul message:
☠ Soul Drain activated!
Target:
Strength I + Speed I for 20 seconds.
Other possible messages:
Target found:
Soul Drain STARTED!
No player found within 10 blocks.
Soul Drain activation failed.
GHOUL V3
---------
Passive:
+20% movement speed
+30% attack damage
GHOUL V3 LIFESTEAL
-------------------
While the player is Ghoul V3 (but not V4):
- Heals 25% of damage dealt.
- Healing is capped by max health.
The listener specifically works for:
version >= 3 and version < 4
GHOUL V4 STAGE 2 — SKULL ATTACK
--------------------------------
Activation:
- Right-click
- V4 active
- Stage 2+
Fires:
3 Wither Skulls
Spread:
- Center
- Slightly left
- Slightly right
Projectile:
- Speed about 1.8
- No gravity
- Non-incendiary
Skull damage:
5 HP
Cooldown:
5 seconds
Action bar:
☠ Ghoul Skull: s
Ready:
☠ Ghoul Skull: READY!
GHOUL V4 SKULL HEALING
----------------------
Each successful skull hit can heal:
2 HP
Total V4 healing pool:
8 HP per V4 activation
The V4 manager tracks healing used so the cap cannot be exceeded.
GHOUL V4 STAGE 3 LIFESTEAL
---------------------------
Direct attacks heal:
25% of damage
Total healing limit:
8 HP per V4 activation
================================================
12. CYBORG
================================================
CYBORG V1
---------
No implemented passive.
CYBORG V2 — CYBORG ARMOR
-------------------------
IMPORTANT NAME MISMATCH:
CyborgV2RocketDashListener is the event-listener filename/name, but the actual ability is Cyborg Armor.
There is no real rocket dash implemented here.
Activation:
Right-click
Armor:
Full diamond armor:
- Helmet
- Chestplate
- Leggings
- Boots
Enchantments:
Protection IV
Unbreaking III
Duration:
45 seconds
Cooldown:
120 seconds
The player's original armor is saved before temporary armor is applied.
Activation:
⚡ CYBORG ARMOR ONLINE! 45 seconds
End message:
Cyborg Armor mode ended. Your original armor has been restored.
It also plays an armor-equip sound and electric particles.
The listener attempts to stop the temporary armor from being moved around and restores the original armor when the effect ends.
CYBORG V3
---------
Actual passive:
+2 armor
100% knockback resistance
IMPORTANT COMMENT/CODE MISMATCH:
A source comment says +3 armor points, but the actual implementation uses +2.
CYBORG V3 HUNGER
----------------
Hunger loss is multiplied by 0.60.
So only 60% of normal hunger loss is applied.
The code uses floor(), meaning very small losses can round down to zero.
CYBORG V4 STAGE 2 — CHAIN DAMAGE
---------------------------------
When an active Stage 2 Cyborg hits a living entity:
Other living entities within:
10 blocks
can receive:
60% of the original final hit damage
The original attacker and original target are excluded.
This can affect:
- Players
- Mobs
There is no team/friendly-fire filtering in this chain system.
CYBORG V4 BLEED
---------------
The original target also receives an electric bleed:
- 1 HP every second
- 5 seconds
- Up to 5 HP total
Electric spark particles appear.
A new hit on the same target can restart the bleed timer.
INTERNAL DAMAGE SYSTEM
----------------------
InternalDamageManager marks chain/bleed damage as internal.
This stops:
- Infinite chain reactions
- Secondary chain effects
- Extra V4 meter rewards from the secondary damage
Conceptually:
Cyborg hits A
→ chain hits B
→ B's chain damage is internal
→ B does not create another chain
→ bleed is internal
→ bleed does not generate another chain/meter
CYBORG V4 STAGE 3 — ULTIMATE
----------------------------
Activation:
- Hold crouch/sneak
- 3 seconds
- Must be Stage 3
- Once per V4 activation
- Releasing sneak cancels the charge
Charge:
⚡ Cyborg Ultimate charging... 3.0s
or
⚡ Cyborg Ultimate charging... s
Cancellation:
⚡ Cyborg Ultimate cancelled.
Ultimate:
- Creates lightning visual effects around the Cyborg.
- Approximate lightning area/grid radius: 4 blocks.
- Damages nearby living entities.
Damage:
14 HP = 7 hearts
Damage range:
about 4 blocks
Cyborg itself is excluded.
Players hit are temporarily immobilized:
- Teleported/held at their stored position.
- Velocity set to zero.
- Approximately 20 ticks = 1 second.
Mobs take damage but do not get the same player immobilization.
================================================
13. ANGEL
================================================
ANGEL V1
---------
No implemented passive.
ANGEL V2 — DIVINE FLIGHT
------------------------
Activation:
Right-click
Cooldown:
30 seconds
Duration:
10 seconds
Horizontal movement:
about 0.55 blocks/tick
Vertical movement:
about 0.30 multiplied by look direction Y
So looking up moves upward and looking down moves downward.
V2 works in Survival and Adventure and is disabled during V4.
Activation:
✦ Divine Flight activated! ✦
Possible failure:
Divine Flight could not activate.
Cooldown:
Divine Flight is on cooldown! remaining.
IMPORTANT UNUSED CODE:
AngelV2 contains reduceFall(), which would reduce downward velocity by 60%.
But no active event/listener in this plugin calls that function.
Therefore the current implemented Angel V2 should NOT be assumed to have a 60% fall-speed reduction.
ANGEL V3
---------
Permanent:
Regeneration I
ANGEL V4 STAGE 2 — FLIGHT
--------------------------
When active at Stage 2+:
- Flight is allowed.
- Original flight state is stored and restored later.
Height limit:
20 blocks above the highest block at the player's current X/Z.
Example:
Highest block = Y 100
Maximum Angel V4 altitude ≈ Y 120
If the player rises above the limit, the plugin moves them back down to the allowed height.
ANGEL V4 STAGE 2 — SHULKER BULLET
----------------------------------
Activation:
Right-click
Targeting:
- Searches up to 20 blocks.
- Looks for the nearest living entity in the player's crosshair.
- Very strict crosshair alignment:
dot product >= 0.96
Possible targets:
- Players
- Mobs
- Other living entities
Launches a native Shulker Bullet.
On hit:
Levitation effect
Duration:
40 ticks = 2 seconds
Amplifier:
4
Action bar:
🪽 Angel Ability s
Ready:
🪽 Angel Ability READY!
Fire message:
🪽 Angel Stage 2: Shulker Bullet!
Cooldown:
8 seconds
The code also has collision/safety scanning around the projectile.
ANGEL V4 STAGE 3 — STUN AURA
----------------------------
Activation:
- Angel must be in Stage 3 and active V4.
- Angel crouches/sneaks.
Range:
2 blocks
Affects nearby players.
Stun duration:
3 seconds
Target effect:
Slowness 255
Damage:
2 HP every second
Knockback:
- About 0.6 horizontal
- About 0.35 vertical
After a stun ends:
There is roughly a 1-second escape window before the same Angel-target pair can be stunned again.
IMPORTANT:
Once a stun begins, stopping crouch does not instantly remove the current stun. It is allowed to continue for its full stored duration.
Teleporting the target away also does not immediately clear the stored stun timer.
================================================
14. SHARK
================================================
SHARK V1
--------
Water breathing while in water.
The plugin tracks whether its own water-breathing effect was granted so it can remove its own effect when the player leaves water without blindly removing unrelated effects.
SHARK V2 — DEEP PREDATOR
------------------------
Activation:
Right-click
Duration:
45 seconds
Cooldown:
90 seconds
Effects:
- Water Breathing
- Dolphin's Grace II
Bubble particles are produced.
Activation:
🌊 DEEP PREDATOR! 45 seconds
SHARK V2 DAMAGE BONUS
---------------------
While Deep Predator is active AND the Shark is in water:
Damage × 1.25
Equivalent:
+25% damage
On land:
The extra +25% does not apply.
The ability itself does not require the player to already be in water to activate.
SHARK V3
--------
Land:
Resistance I
Water:
Resistance II
Recognized water-type blocks include:
- WATER
- KELP
- KELP_PLANT
- SEAGRASS
- TALL_SEAGRASS
The effect lasts 10 seconds and is refreshed on join and movement.
SHARK V4 STAGE 2 — ICE THROW
----------------------------
Activation:
Right-click
Cooldown:
8 seconds
Projectile:
- Snowball-like custom projectile
- No gravity
- Speed about 1.8
- Tagged as Shark V4 projectile
Trail:
- Snowflake particles
- Splash particles
On living-target hit:
Damage:
6 HP
Freeze:
3 seconds
Slowness:
255 for 3 seconds
More snowflake particles appear around the target.
Cooldown action bar:
🧊 Ice Throw: s
Ready:
🧊 Ice Throw: READY!
SHARK V4 WATER AURA
-------------------
Active Shark V4 creates a local slowing field.
Approximate area:
3 blocks horizontal
2 blocks vertical
Nearby living entities except the Shark receive:
Slowness II
The effect is repeatedly refreshed every 2 ticks.
There is also a decorative:
- Splash ring
- Bubble ring
around the Shark.
================================================
15. SHARED ABILITY SNOWBALL SYSTEM
================================================
AbilitySnowball.java provides a shared invisible projectile trigger.
Behavior:
1. Ability is scheduled for one tick later.
2. Invisible snowball launches from player's eyes.
3. It gets scoreboard tag:
race_ability_snowball
4. It normally lives for one tick.
5. Damage involving it is cancelled.
6. It does not grant V4 meter.
7. Its hit is cancelled so it behaves as a trigger rather than a normal damaging snowball.
Default speed:
1.5
DEBUG is true.
Console output on trigger:
[AbilitySnowball] triggered for
Errors:
[AbilitySnowball] ability threw an error
Launch failure:
[AbilitySnowball] snowball failed (ability still runs)
Several V4 abilities use this helper, including:
- Human V4 arrows
- Angel V4 Stage 2
- Mink V4 Stage 2
- Ghoul V4 skulls
- Cyborg V4 ultimate trigger
Some other effects directly create their own projectiles.
================================================
16. /race COMMAND
================================================
Registered command:
/race
/race [player]
/race
Shows the sender's own information.
Display includes:
✦ RACE ✦
Player:
Race:
Version: V
For V4:
V4 Stage:
V4 Quests: /3
V4 Meter: %
V4 Active: true/false
/race
Shows another player's information.
The target must be online and is looked up with Bukkit.getPlayerExact().
If offline/not found:
That player is not online.
There is no offline-player race lookup.
================================================
17. /v4 QUEST COMMAND
================================================
Command:
/v4 quest <1-3>
It checks the requested quest.
Example output for completed:
✦ V4 QUEST 1 ✦
✓ Quest 1 is completed.
Not completed:
✦ V4 QUEST 1 ✦
✗ Quest 1 is not completed.
Current progress: /3
IMPORTANT:
This command checks progress.
It does not complete quests.
================================================
18. /change COMMAND
================================================
Command:
/change race [stage]
OP-only.
Non-OP:
Only operators can use this command.
Races:
Human
Mink
Ghoul
Cyborg
Angel
Shark
Versions:
1
2
3
4
Stage:
Only used for V4
Allowed values:
0
1
2
3
Example:
/change race cyborg 4 2
For a V4 change:
- stage is set
- quest progress is also set to the same value
- meter starts at 0
After success:
✦ RACE CHANGED ✦
Race:
Version: V
For V4:
V4 Stage:
Quest Progress: /3
Use /v4 to activate V4.
An OP can therefore effectively bypass the unimplemented quest gameplay by assigning V4 stage/progress directly.
================================================
19. ALL MAIN PLAYER-FACING MESSAGE TYPES
================================================
RACE:
✦ RACE AWAKENED ✦
Your race is:
Race Version: V1
✦ RACE CHANGED ✦
Race:
Version: V
V4:
V4 is already active.
You do not have V4.
Complete Quest 1 to unlock V4 Stage 1.
Your V4 Meter must be at 100%.
Your V3/V4 abilities are locked for more seconds.
✦ V4 ACTIVATED ✦
V4 Stage active.
V4 ended:
V4 Meter: % filled
HUMAN:
Attack damage attribute is NULL
Last Stand is on cooldown! remaining.
⚔ LAST STAND ACTIVATED! 20 seconds
Your race ability is currently suppressed!
⚔ Human Stage 2: 7 arrows fired!
⚔ Human Arrows s
⚔ Human Arrows READY!
✦ SECOND LIFE ACTIVATED! ✦
You survived a fatal attack!
Human V3 and V4 are locked for 10 minutes.
Your Human V3 abilities are available again.
MINK:
Movement speed attribute is NULL
Mink Dash is on cooldown! remaining.
Wrong game mode.
⚡ Mink Dash activated! ⚡
⚡ Mink Stage 2: DASH!
⚡ Mink Dash s
⚡ Mink Dash READY!
⚡ Hold crouch for 3.0s to charge Mink Ultimate...
⚡ MINK V4 ULTIMATE RELEASED!
GHOUL:
Soul Drain is on cooldown! seconds remaining.
☠ Soul Drain activated!
Target:
Strength I + Speed I for 20 seconds.
☠ Your race ability has been suppressed!
You cannot use your V2 ability for 30 seconds.
No player found within 10 blocks.
Target found:
Soul Drain STARTED!
Soul Drain activation failed.
☠ Ghoul Skull: s
☠ Ghoul Skull: READY!
CYBORG:
Cyborg Armor is on cooldown! remaining.
⚡ CYBORG ARMOR ONLINE! 45 seconds
Cyborg Armor mode ended. Your original armor has been restored.
Wrong game mode.
🚀 Rocket Dash activated! ⚡
Rocket Dash could not activate.
⚡ Cyborg Ultimate charging... 3.0s
⚡ Cyborg Ultimate charging... s
⚡ Cyborg Ultimate cancelled.
ANGEL:
Divine Flight is on cooldown! remaining.
Your race ability is currently suppressed!
Divine Flight could not activate.
✦ Divine Flight activated! ✦
🪽 Angel Ability s
🪽 Angel Ability READY!
🪽 Angel Stage 2: Shulker Bullet!
SHARK:
Deep Predator is on cooldown! remaining.
🌊 DEEP PREDATOR! 45 seconds
🧊 Ice Throw: s
🧊 Ice Throw: READY!
================================================
20. CONSOLE MESSAGES
================================================
On enable:
RacePlugin enabled!
V4 system initialized!
On disable:
RacePlugin disabled!
Missing command:
Missing / command in plugin.yml!
Invalid saved race:
A warning is produced for an invalid race value stored for a UUID.
AbilitySnowball debugging is enabled:
[AbilitySnowball] triggered for
It can also log:
[AbilitySnowball] ability threw an error
[AbilitySnowball] snowball failed (ability still runs)
================================================
21. PERSISTENCE
================================================
The plugin creates:
plugins/RacePlugin/
and:
plugins/RacePlugin/races.yml
Stored data includes:
- Player UUID
- Race
- Version
- V4 quest progress
- V4 stage
- V4 meter
Conceptual YAML structure:
players:
:
race: HUMAN
version: 4
v4:
questProgress: 3
stage: 3
meter: 75.5
The plugin saves YAML rather than using SQL or another database.
Race data is persisted.
Most ability cooldowns and temporary active-state maps are memory-only.
================================================
22. PLAYERRACEDATA
================================================
PlayerRaceData stores:
- playerUUID
- race
- version
- questProgress
- stage
- v4Meter
The constructor clamps:
questProgress to 0–3
stage to 0–3
v4Meter to 0–100
Version itself is not clamped inside PlayerRaceData.
================================================
23. RACEMANAGER
================================================
RaceManager is the persistence/data manager.
It:
- Creates races.yml
- Loads races.yml
- Checks whether a player has race data
- Gets PlayerRaceData
- Gets Race
- Gets Version
- Assigns random V1 races
- Saves data
- Changes race
- Reloads YAML
There is no SQL database.
================================================
24. PLAYERRACELISTENER
================================================
Handles player join and passive/version setup.
V1:
Apply V1 passive.
V2:
Keep V1 passive and use the V2 listener for active ability.
V3:
Remove V1 passive and apply V3 passive.
V4:
Use V3 passive as the base plus V4 systems.
================================================
25. V4MANAGER
================================================
Tracks V4 state.
Includes:
- Active V4 players
- Human Second Life usage/lockout
- Mink Ultimate usage
- Cyborg Ultimate usage
- Ghoul healing used
- Human V3/V4 lockout
- Activation/deactivation
- Meter
- Stage
- Quest state
- Quit cleanup
================================================
26. V4CORELISTENER
================================================
This is the shared V4 engine.
It runs a repeating scheduler approximately every second.
It:
- Drains V4 meter
- Removes V4 effects when inactive
- Applies common Stage 1
- Watches combat for meter gain
- Handles quit cleanup
The main damage listener recognizes:
- Direct Player attackers
- Projectiles whose shooter is a Player
================================================
27. MAIN PLUGIN CLASS
================================================
RacePlugin is the main entry point.
On enable it creates:
- RaceManager
- V4Manager
Then registers the race/V4 listeners.
Important registered systems include:
PlayerRaceListener
V4CoreListener
AbilitySnowball
HumanV4
MinkV4
SharkV4
AngelV4
GhoulV4
CyborgV4
SharkWaterListener
SharkV2RushListener
SharkV2DamageListener
MinkV2DashListener
HumanV2FlashStepListener
HumanV2LastStandDamageListener
AngelV2FlightListener
CyborgV2RocketDashListener
GhoulV2SoulDrainListener
SharkV3Listener
GhoulV3Listener
CyborgV3Listener
It registers commands:
- /race
- /change
- /v4
================================================
28. EVERY FILE IN THE ZIP
================================================
PROJECT/CORE FILES
------------------
pom.xml
- Maven project/build configuration.
- groupId: me.luka
- artifactId: StormBreaker
- version: 1.0.0
- Java target/source: 25
- Paper API dependency: 26.1.2.build.74-stable
- PaperMC repository
Important project-name mismatch:
Maven artifactId = StormBreaker
plugin name = RacePlugin
src/main/resources/plugin.yml
- Plugin name: RacePlugin
- Version: 1.0.0
- Main: me.luka.Race.RacePlugin
- API version: 26.1
- Commands: race, change, v4
- No explicit permissions section
AbilityBlockManager.java
- Temporary V2 suppression timer manager.
- Stores player UUID → expiration timestamp.
AbilitySnowball.java
- Invisible one-tick ability trigger projectile.
- Default speed 1.5.
- Tagged race_ability_snowball.
- Debug enabled.
InternalDamageManager.java
- Marks internal/secondary damage.
- Used by Cyborg chain/bleed effects.
PlayerRaceData.java
- Stores player race/version/V4 data.
PlayerRaceListener.java
- Join handling and passive application.
Race.java
- Six-race enum.
RaceCommand.java
- /race
- /change
- /v4
- /v4 quest
RaceManager.java
- YAML persistence and race assignment.
RacePlugin.java
- Main plugin class.
V4CoreListener.java
- V4 meter, timer, common Stage 1, damage tracking, quit cleanup.
V4Manager.java
- V4 activation/state/stage/meter/one-use effects/lockouts.
ANGEL
-----
AngelV1.java
- Empty/no V1 passive.
AngelV2.java
- Divine Flight.
- 10 sec duration.
- 30 sec cooldown.
- Horizontal velocity ~0.55.
- Vertical control ~0.30.
- Contains unused reduceFall() function.
AngelV2FlightListener.java
- Handles activation, movement, game modes, suppression, cleanup.
AngelV3.java
- Regeneration I.
AngelV4.java
- Stage 2 flight.
- Height limit.
- Shulker Bullet.
- 20-block targeting.
- Levitation.
- 8 sec cooldown.
- Stage 3 stun aura.
- Slowness 255.
- 2 HP/second.
- Knockback.
- Stun tracking.
- Cleanup.
CYBORG
------
CyborgV1.java
- Empty/no V1 passive.
CyborgV2.java
- Temporary full diamond Protection IV/Unbreaking III armor.
- 45 sec duration.
- 120 sec cooldown.
- Saves/restores original armor.
CyborgV2RocketDashListener.java
- Connects right-click armor ability.
- Name says RocketDash, actual ability is armor.
CyborgV3.java
- +2 armor.
- Full knockback resistance.
CyborgV3Listener.java
- 60% hunger-loss scaling.
CyborgV4.java
- Chain damage.
- Electric bleed.
- Stage 3 charge.
- Lightning ultimate.
- 14 damage.
- 4-block area.
- Player immobilization.
- Internal-damage handling.
GHOUL
-----
GhoulV1.java
- Empty/no V1 passive.
GhoulV2.java
- Soul Drain data/activation.
GhoulV2SoulDrainListener.java
- Right-click.
- Target search.
- 10-block range.
- Crosshair targeting.
- Suppression.
GhoulV3.java
- +20% speed.
- +30% damage.
GhoulV3Listener.java
- 25% lifesteal for V3 only.
GhoulV4.java
- 3 skulls.
- 5 damage/skull.
- Up to 2 HP healing/skull.
- 8 HP total healing pool.
- 5 sec cooldown.
- Stage 3 25% lifesteal.
HUMAN
------
HumanV1.java
- +40% damage.
HumanV2.java
- Last Stand.
- 20 sec.
- 60 sec cooldown.
- Health-based damage scaling.
HumanV2FlashStepListener.java
- Connects Human V2.
- Despite filename, actual ability is Last Stand.
HumanV2LastStandDamageListener.java
- Applies health-based Last Stand multiplier.
HumanV3.java
- +60% damage.
HumanV4.java
- Seven arrows.
- 5 sec cooldown.
- Arrow tagging.
- Low-health damage scaling.
- Second Life.
- 10-minute V3/V4 lockout.
- Cleanup.
MINK
----
MinkV1.java
- +15% speed.
MinkV2.java
- Dash.
- Actual cooldown 15 sec.
MinkV2DashListener.java
- Right-click.
- Cooldown.
- Game-mode checks.
- V4/suppression checks.
MinkV3.java
- +50% speed.
MinkV4.java
- Common V4 Stage 1 interactions.
- Stage 2 dash.
- 2 sec cooldown.
- Food cost.
- 3-block wind burst.
- Stage 3 crouch charge.
- 3 sec charge.
- 3.5 launch.
- Lightning/cloud trail.
- 5-block ultimate area.
- 8 damage.
SHARK
-----
SharkV1.java
- Water breathing.
SharkV2.java
- Deep Predator.
- 45 sec.
- 90 sec cooldown.
- Water Breathing.
- Dolphin's Grace II.
SharkV2DamageListener.java
- +25% damage in water while Deep Predator is active.
SharkV2RushListener.java
- Connects right-click V2.
- Filename says Rush; actual ability is Deep Predator.
SharkV3.java
- Delegates to V3 resistance behavior.
SharkV3Listener.java
- Resistance I on land.
- Resistance II in water.
- Join/movement refresh.
- Quit cleanup.
SharkV4.java
- Ice Throw.
- 8 sec cooldown.
- 6 damage.
- 3 sec freeze/slowness.
- Water slowing aura.
- Bubble/splash effects.
SharkWaterListener.java
- Keeps Shark V1 water breathing updated.
================================================
29. IMPORTANT IMPLEMENTATION QUIRKS / BUGS / MISMATCHES
================================================
1. No real V4 quest gameplay exists.
completeQuest() exists, but nothing calls it.
2. OPs can bypass quest progression with:
/change race 4
3. There is no /v4 off command.
4. V2 class/listener names do not always match actual abilities:
- Human FlashStep → Last Stand
- Cyborg RocketDash → Cyborg Armor
- Shark Rush → Deep Predator
5. Comments do not always match code:
- Human V1 comment says +80%, actual = +40%
- Mink V2 comment says 7 sec, actual = 15 sec
- Cyborg V3 comment says +3 armor, actual = +2
6. Angel V2 reduceFall() exists but is not connected to live gameplay.
7. Shark V3 Resistance and common V4 Resistance can interact/overwrite because both manipulate the same potion effect.
8. /change does not comprehensively deactivate every possible V4 state before changing race/version, so some edge-case state inconsistencies are possible.
9. Most cooldowns/temporary state are memory-only and not persisted.
10. /race can only inspect online targets.
11. No plugin permissions are declared.
The /change OP check is manually implemented with isOp().
12. No command tab-completion implementation is present.
13. V4 stage and quest progress are duplicated concepts in PlayerRaceData.
V4Manager.getStage() effectively relies on quest progress.
14. Some real V4 ability damage can increase V4 meter because the central damage listener observes damage events.
15. Cyborg secondary damage is specially marked internal to prevent recursive chain effects and extra meter gain.
================================================
30. COMPLETE GAMEPLAY LOOP
================================================
PLAYER JOINS
|
+-- Existing data?
| |
| +-- YES → load race/version/V4 data → apply base passive
|
+-- NO → random one of 6 races → V1 → save data
|
+→ RACE AWAKENED message
PLAYER PLAYS
|
+→ V2 abilities available at version 2+
|
+→ V3 passive replaces V1 at version 3+
|
+→ V4 data exists at version 4
|
+→ attack entities
|
+→ fill V4 meter
|
+→ reach 100%
|
+→ Quest 1 must be complete
|
+→ /v4
|
+→ V4 activates
|
+→ Stage 1 common buffs
|
+→ Stage 2/3 race-specific abilities depending on progress
|
+→ meter drains 1% per second
|
+→ combat can refill meter
|
+→ meter reaches 0
|
+→ V4 ends
================================================
31. BOTTOM LINE
================================================
RacePlugin-fixed is a six-race RPG/combat plugin with:
- Random race assignment
- Persistent race storage
- Four progression versions
- V2 active abilities
- V3 passive upgrades
- V4 quest/stage/meter framework
- V4 active transformations
- Race-specific projectiles
- Flight
- Dash
- Freeze
- Levitation
- Stuns
- Lifesteal
- Chain damage
- Bleed
- Temporary armor
- Second Life
- Lightning attacks
- Particle and sound effects
- Cooldown action bars
- Chat feedback
- OP race/version/stage manipulation
There are 47 Java source files plus plugin.yml and pom.xml.
There is:
- No compiled JAR in the source archive
- No custom GUI
- No custom item system
- No SQL database
- No separate config.yml
- No actual quest-objective implementation
- No normal /v4 off command
- No explicit plugin permissions section
Verification note:
The source files were inspected directly. A Maven compile was not performed because Maven was not available in the execution environment used for inspection.