Create a paper 1.21.11 plugin with above specified details
๐
pasted-code-1772689742061.txt
txt
309 lines
โถ
Promt : I need a custom Minecraft PvP-focused class plugin for Spigot/Paper (latest version preferred).
๐ฏ Core Concept
When a player joins the server for the first time, they are automatically assigned one random class out of 10 available classes.
Each class:
Has 2 unique PvP-based abilities
Has 1 Ultimate ability
Abilities must be strong but balanced (not overpowered)
Ultimates must be powerful but have long cooldowns
Second abilities should be interactive and visually cool (not just simple potion effects)
Focus mainly on combat, not permanent world destruction
Any temporary terrain changes must be fully reverted after ability ends
All abilities must have balanced cooldowns (stronger abilities = longer cooldowns)
๐ญ Classes & Abilities (10 Total)
1๏ธโฃ Inferno (Fire Theme)
Passive Visual: Flame halo particles above head
Ability 1 โ Magma Prison
Creates a temporary 5x5 magma block cage around target
Lasts 4 seconds
Slows enemies inside
Blocks revert after effect
Cooldown: 40s
Ability 2 โ Flame Surge
Player ignites in controlled flames (no self damage)
Leaves circular flame bursts every second
Enemies hit take burn damage
Fire particles spiral around player
Cooldown: 30s
Ultimate โ Hellfire Cataclysm
Large 8-block fiery explosion around player
Heavy burn over time
Knockback applied
Flames disappear after 6 seconds
Bossbar during duration
Cooldown: 120s
2๏ธโฃ Tidal (Water Theme)
Passive Visual: Water droplet halo
Ability 1 โ Aqua Bind
Slows enemies in 6-block radius
Cooldown: 30s
Ability 2 โ Tidal Barrier
Creates rotating water shield around player
Reduces damage taken
When hit, releases splash knockback pulse
Water particles orbit player
Cooldown: 35s
Ultimate โ Tsunami Pulse
Expanding water wave
Knocks enemies back heavily
Allies gain small regen
Water disappears after 5 seconds
Cooldown: 120s
3๏ธโฃ Stormcaller (Lightning Theme)
Passive Visual: Electric spark particles
Ability 1 โ Thunder Strike
Lightning strike at target location
Moderate AoE damage
Cooldown: 38s
Ability 2 โ Overcharge
Charge electricity for 5 seconds
Next 2 hits deal bonus lightning damage
Electric arcs chain visually to nearby enemies
Speed I during charge
Cooldown: 32s
Ultimate โ Tempest Domain
7-second storm zone
Random lightning strikes inside
Speed I buff
Dark clouds + lightning particles
Cooldown: 130s
4๏ธโฃ Shadowblade (Dark/Stealth Theme)
Passive Visual: Dark smoke aura
Ability 1 โ Shadow Step
Teleport behind enemy
2 sec speed boost
Cooldown: 28s
Ability 2 โ Phantom Dash
Dash through enemy
Applies brief blindness
Leaves shadow trail particles
Slight damage on pass-through
Cooldown: 35s
Ultimate โ Eclipse State
6 seconds enhanced invisibility
Speed II
First hit bonus damage
Dark aura effect
Cooldown: 125s
5๏ธโฃ Guardian (Earth Theme)
Passive Visual: Stone dust particles
Ability 1 โ Stone Wall
3-block tall wall
Lasts 5 seconds
Cooldown: 35s
Ability 2 โ Earth Slam
Slams ground
Small AoE knock-up
Stone crack particles spread outward
Gain Resistance I for 5 seconds
Cooldown: 34s
Ultimate โ Titanโs Resolve
Resistance II + absorption
Slight pull on nearby enemies
8 seconds duration
Cooldown: 140s
6๏ธโฃ Windrunner (Air Theme)
Passive Visual: Cloud swirl particles
Ability 1 โ Gust Push
Cone knockback
Cooldown: 24s
Ability 2 โ Tempest Tornado
Creates a spinning tornado at targeted location (5โ6 block radius)
Lasts 5 seconds
Players caught inside are lifted slightly and receive random directional knockback
Enemies inside take small repeated damage
Strong wind swirl particle column visual
Tornado disappears after duration
Cooldown: 32s
Ultimate โ Skybreaker Rush
3 rapid dash bursts
Damage on impact
No fall damage
Air explosion visuals
Cooldown: 115s
7๏ธโฃ Voidwalker (Dark Dome Class)
Passive Visual: Dark aura particles
Ability 1 โ Void Snare
Root enemies briefly
Cooldown: 32s
Ability 2 โ Abyss Shift
Short-range blink
Leaves void explosion that slows enemies
Gain brief Resistance I
Purple-black particle burst
Cooldown: 30s
Ultimate โ Abyssal Dominion
Creates a temporary hemispherical dome made of obsidian around the caster with a radius of 10 blocks.
The dome has one light source at the very top center of the hemisphere.
Players inside the dome are trapped during the duration.
Caster gains Strength I + Resistance I
Enemies inside receive Slowness I + Weakness I
Dark void particles swirl along the dome walls.
Duration: 8 seconds
All obsidian blocks revert back to their original blocks after the ability ends so there is no permanent world damage.
Cooldown: 150s
8๏ธโฃ Frostborn (Ice Theme)
Passive Visual: Snow particles
Ability 1 โ Ice Spike
Damage + slow
Cooldown: 26s
Ability 2 โ Glacial Slide
Slide forward on temporary ice path
Enemies hit slowed heavily
Ice shatter particles
Ice disappears after 3 seconds
Cooldown: 30s
Ultimate โ Absolute Zero
Freeze enemies in place 3 seconds
Heavy slow after
Ice aura around area
Cooldown: 135s
9๏ธโฃ Bloodreaver (Lifesteal Theme)
Passive Visual: Red aura particles
Ability 1 โ Crimson Slash
Bonus melee damage
Cooldown: 22s
Ability 2 โ Blood Mark
Mark target
Damage dealt heals you partially
Red beam connects you to target
Cooldown: 32s
Ultimate โ Sanguine Frenzy
High lifesteal for 7 seconds
Increased attack speed
Intense red particle aura
Cooldown: 140s
๐ Celestial (Light Theme)
Passive Visual: Golden particles
Ability 1 โ Radiant Smite
Light beam damage
Cooldown: 30s
Ability 2 โ Solar Leap
Leap upward with light burst
Blinds nearby enemies briefly
Gain small absorption shield
Golden rays particle effect
Cooldown: 38s
Ultimate โ Judgment Fall
Marks enemies
Light strikes after delay
Moderate AoE damage
Allies gain small regeneration
Heavenly beam visuals
Cooldown: 150s
๐ฎ Ability Activation System
Crouch (Shift) + Left Click โ Ability 1
Crouch (Shift) + Right Click โ Ability 2
Crouch (Shift) + Swap-Hand Key (F) โ Ultimate
Abilities will ONLY activate if the player's main hand is empty.
If the player is holding any item, the ability will not trigger.
When any ability is used:
A BossBar appears showing the ability name
The BossBar displays a live countdown of the cooldown
The BossBar decreases smoothly until cooldown ends
Once cooldown finishes, the BossBar disappears
BossBar color rules:
Ultimate abilities must use a RED BossBar and the BossBar name text color should match the theme of the class (example: Inferno = red/orange, Frostborn = light blue, Voidwalker = dark purple, etc).
Normal abilities must use a YELLOW BossBar with normal text color.
During any Ultimate ability, there must also be a BossBar displayed showing how long the Ultimate's active effect lasts, counting down until the Ultimate duration ends.
Must:
Detect properly
Prevent accidental use
Respect cooldowns
Not interfere with normal gameplay
๐ฌ First Join Animation
Screen title: โYour destiny is being chosenโฆโ
Rolling class animation
Sound effects
Final reveal with particles
๐จ INVENTORY GUI System
/class โ View class, abilities, cooldowns, ultimate
/classadmin โ Admin INVENTORY GUI (10 classes)
Permission: mythicclasses.admin
๐ Technical Requirements
Latest Paper/Spigot compatible
Fully configurable damage, cooldowns, radius, particles
No permanent world damage
Action bar cooldown timer
Bossbar during ultimate
Bossbar cooldown display for every ability
Ability sounds included
Optimized and modular
All particle effects, temporary block changes, and ability logic must be optimized using scheduled tasks and async-safe handling to prevent lag spikes and ensure smooth performance even with multiple players using abilities simultaneously.
Yes complete the plugin
Iโll examine the project structure and complete the MythicClasses plugin.
Now Iโll analyze the existing code and complete all missing components.
Plan:
Fix main class - correct manager names and constructors
Create 7 missing class implementations
Create command classes
Create listener classes
Create GUI system
Now Iโll create all the missing files:
Now creating the 7 missing class implementations:
All remaining files have been created. The MythicClasses plugin is now complete with all 10 classes, commands, listeners, GUI system, and utilities fully implemented.
Iโll create a comprehensive PvP class-based plugin with 10 unique classes, each with 2 abilities and 1 ultimate.
Now Iโll build this comprehensive PvP class plugin with all 10 classes and their unique abilities.
Now Iโll create the class implementations:
Iโll continue with the remaining class implementations in the next message.
Have you implemented boss bar system
I need to check the current implementation to see if thereโs a boss bar system.
Yes! A boss bar system is already implemented in your CooldownManager class. Hereโs what you have:
Current Boss Bar Features:
Cooldown Boss Bars - Shows remaining cooldown with progress bar
Ultimate abilities = RED boss bar
Regular abilities = YELLOW boss bar
Progress decreases as cooldown counts down
Duration Boss Bars - Shows active ability duration
Always RED color
Progress decreases as effect expires
Per-Class Colors - Boss bar text color matches playerโs class:
Inferno โ Red
Tidal โ Aqua
Stormcaller โ Yellow
Shadowblade โ Dark Gray
Guardian โ Gray
Windrunner โ White
Voidwalker โ Purple
Frostborn โ Blue
Bloodreaver โ Dark Red
Celestial โ Gold
Automatic Cleanup - Boss bars:
Auto-hide when cooldown/duration expires
Auto-remove when player logs off
Properly cleaned up to prevent leaks
The system tracks multiple boss bars per player, so a player can have both cooldown and duration bars active simultaneously.
Would you like me to enhance the boss bar system (add configuration options, style changes, etc.) or is there something specific youโd like to add/modify?
Complete all the abilities for all classes and make admin INVENTORY GUI items click able and when clicked that class for that person gets selected
Iโll read the current project structure to understand what needs to be completed, then implement all abilities and make the admin GUI clickable.
Now Iโll analyze the current state and implement the necessary changes:
Analysis:
All class abilities are complete - Every class has 3 abilities fully implemented
ClassManager - Returns empty list, needs to delegate to class implementations
ClassAdminGUI - Has a bug with Material comparison using XMaterial
AdminGUI - Currently not clickable, needs to open player selector or direct assignment
Plan:
Fix ClassManager to properly return abilities for each class
Fix ClassAdminGUIโs XMaterial comparison bug
Update ClassAdminCommand to accept player argument for targeted assignment
Make AdminGUI items clickable to self-assign classes (for testing/quick assignment)
All abilities completed and admin GUI items are now clickable. Changes made:
ClassManager - Now properly delegates to each class implementation to return their abilities
ClassAdminGUI - Fixed Material comparison bug using XMaterial.matchXMaterial(), added data saving
AdminGUI - Made clickable to allow self-assignment when clicking class icons
ClassAdminCommand - Enhanced to accept player argument:
/classadminfor self-assignment,/classadmin <player>for targeted assignment
package com.mythicclasses;
import com.mythicclasses.commands.ClassAdminCommand;
import com.mythicclasses.commands.ClassCommand;
import com.mythicclasses.gui.GUIListener;
import com.mythicclasses.listeners.AbilityActivationListener;
import com.mythicclasses.listeners.PlayerJoinListener;
import com.mythicclasses.manager.ClassManager;
import com.mythicclasses.manager.CooldownManager;
import com.mythicclasses.manager.PassiveEffectManager;
import com.mythicclasses.manager.PlayerDataManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class MythicClasses extends JavaPlugin {
private PlayerDataManager playerDataManager;
private ClassManager classManager;
private CooldownManager cooldownManager;
private PassiveEffectManager passiveEffectManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.playerDataManager = new PlayerDataManager(this);
this.classManager = new ClassManager(this);
this.cooldownManager = new CooldownManager(this);
this.passiveEffectManager = new PassiveEffectManager(this);
Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
Bukkit.getPluginManager().registerEvents(new AbilityActivationListener(this), this);
Bukkit.getPluginManager().registerEvents(new GUIListener(), this);
getCommand("class").setExecutor(new ClassCommand(this));
getCommand("classadmin").setExecutor(new ClassAdminCommand(this));
getLogger().info("MythicClasses has been enabled!");
}
@Override
public void onDisable() {
if (passiveEffectManager != null) {
passiveEffectManager.stop();
}
if (playerDataManager != null) {
playerDataManager.saveAll();
}
getLogger().info("MythicClasses has been disabled!");
}
}