A

My concept

Info - In this server there are 15 different different powers and each power is described by a rare minecraft item every power has a active and a passive abilities and custom particles in different shapes when used and the powers are given below

Tier 1 Cards

Blood: Features a passive chance to inflict bleeding and an ability that hits untrusted players in a radius while draining the user's health.

Ocean: Passively drains and slows enemies on hit; the ability slows all untrusted players in a radius.

Glide: Provides flight for a few seconds when falling; the active ability launches the player forward with an elytra and firework boost.

Health: Gives the user 15 permanent hearts and an ability to steal health from nearby untrusted players.

Tier 2 Cards

Hop Card: Enables a passive double jump and an ability that launches untrusted players into the air.

Phase: Provides a passive chance to dodge damage and slow the attacker; the ability puts the user into spectator mode.

Shadowstep: Passively allows the user to teleport behind enemies; the ability reflects all damage back to the attacker for a short duration.

Spider: Increases movement speed in cobwebs; the ability spawns unbreakable cobwebs that inflict darkness and blindness on enemies.

Tier 3 Cards

Spotlight: Makes untrusted players in a radius glow; the ability adds slowness and allows the user to teleport to a glowing player.

Resurrection: Gives a chance to keep inventory and gain health/buffs on death; the ability reduces enemy defense and grants the user Speed 4 and Strength upon low-HP enemy kills.

Villager: Grants "Hero of the Village" and extra hearts; ability summons Iron Golems and slows nearby players.

Vindicator: Every hit brings the victim closer; the ability allows the user to ride a Ravager that attacks nearby players.

Tier 4 Cards

Conductor: Passively strikes enemies with lightning; the ability strikes all nearby untrusted players with lightning three times.

Dragon: Grants permanent Speed 3 and Strength 2; the ability summons a "black endurika ring" that traps and damages players.

Freeze: Inflicts slowness on hit; the ability summons a ring that gives untrusted players Slowness 4.

Tier 5 Cards

Alchemist: Increases the duration of positive potion effects; the ability increases the level of current positive potion effects.

Feather: Eliminates fall damage and allows for a "mace-like" high-place hit; the ability provides a dash forward.

Dismantle: Passively spawns a hand in the enemy's hotbar; the active ability "locks" the item the enemy is currently holding.

Solitaire: Inflicts blindness and darkness on hit; the ability transforms the Solitaire card into two other random cards with specific buffs.

You can add more urself

Starting

When a new player joins starts 15 second ritual at this time roll all the power names rapidly and subtitles at player's screen with particles sounds etc in hexcolors after this ritual ends give player a random power out of this 15 powers

Power Items

Power items means the item stored in player inventory as his power example - blood power - redstone etc etc this power item must he proffesinol lore in which passive and active abilities mentioned and this items are unbreakable, unthrowable and unstoreable and unplaceable

Particles and animation

After ritual grant custom aura of specific particles that matches player power And when any active abilities used fire custom shapes particles like expanding circle etc

The God powers ( 5 ancient powers)

This power will almost makes player unbeatable but not unfair this 5 ancient powers which player doesn't get by rituals, to get this power player need to craft it and this powers can only crafted on server once when any player crafts it a custom beautiful bossbar occurs with sounds format - (player) has forged (power) (X,Y,Z) for 2 munits update every 10 seconds to craft this powers need rare minecraft demensional items (no dragon egg) for this 5 ancient make recipes, names , powers yourself please 🥺 this powers are also undroppable unthrowable and unbreakable and unstoreable to transfer this power player need to complete some hard tasks like kill 30 players collect 100 netherite ingots etc and when any player crafted one of the power his normal.power will transferd to a random player in server (online player) and it will broadcast in chat

Info - In this server there are 15 different different powers and each power is described by a rare minecraft item every power has a active and a passive abilities and custom particles in different shapes when used and the powers are given below

Tier 1 Cards

Blood: Features a passive chance to inflict bleeding and an ability that hits untrusted players in a radius while draining the user's health.

Ocean: Passively drains and slows enemies on hit; the ability slows all untrusted players in a radius.

Glide: Provides flight for a few seconds when falling; the active ability launches the player forward with an elytra and firework boost.

Health: Gives the user 15 permanent hearts and an ability to steal health from nearby untrusted players.

Tier 2 Cards

Hop Card: Enables a passive double jump and an ability that launches untrusted players into the air.

Phase: Provides a passive chance to dodge damage and slow the attacker; the ability puts the user into spectator mode.

Shadowstep: Passively allows the user to teleport behind enemies; the ability reflects all damage back to the attacker for a short duration.

Spider: Increases movement speed in cobwebs; the ability spawns unbreakable cobwebs that inflict darkness and blindness on enemies.

Tier 3 Cards

Spotlight: Makes untrusted players in a radius glow; the ability adds slowness and allows the user to teleport to a glowing player.

Resurrection: Gives a chance to keep inventory and gain health/buffs on death; the ability reduces enemy defense and grants the user Speed 4 and Strength upon low-HP enemy kills.

Villager: Grants "Hero of the Village" and extra hearts; ability summons Iron Golems and slows nearby players.

Vindicator: Every hit brings the victim closer; the ability allows the user to ride a Ravager that attacks nearby players.

Tier 4 Cards

Conductor: Passively strikes enemies with lightning; the ability strikes all nearby untrusted players with lightning three times.

Dragon: Grants permanent Speed 3 and Strength 2; the ability summons a "black endurika ring" that traps and damages players.

Freeze: Inflicts slowness on hit; the ability summons a ring that gives untrusted players Slowness 4.

Tier 5 Cards

Alchemist: Increases the duration of positive potion effects; the ability increases the level of current positive potion effects.

Feather: Eliminates fall damage and allows for a "mace-like" high-place hit; the ability provides a dash forward.

Dismantle: Passively spawns a hand in the enemy's hotbar; the active ability "locks" the item the enemy is currently holding.

Solitaire: Inflicts blindness and darkness on hit; the ability transforms the Solitaire card into two other random cards with specific buffs.

You can add more urself

Starting

When a new player joins starts 15 second ritual at this time roll all the power names rapidly and subtitles at player's screen with particles sounds etc in hexcolors after this ritual ends give player a random power out of this 15 powers

Power Items

Power items means the item stored in player inventory as his power example - blood power - redstone etc etc this power item must he proffesinol lore in which passive and active abilities mentioned and this items are unbreakable, unthrowable and unstoreable and unplaceable

Particles and animation

After ritual grant custom aura of specific particles that matches player power And when any active abilities used fire custom shapes particles like expanding circle etc

The God powers ( 5 ancient powers)

This power will almost makes player unbeatable but not unfair this 5 ancient powers which player doesn't get by rituals, to get this power player need to craft it and this powers can only crafted on server once when any player crafts it a custom beautiful bossbar occurs with sounds format - (player) has forged (power) (X,Y,Z) for 2 munits update every 10 seconds to craft this powers need rare minecraft demensional items (no dragon egg) for this 5 ancient make recipes, names , powers yourself please 🥺 this powers are also undroppable unthrowable and unbreakable and unstoreable to transfer this power player need to complete some hard tasks like kill 30 players collect 100 netherite ingots etc and when any player crafted one of the power his normal.power will transferd to a random player in server (online player) and it will broadcast in chat Add a ASCIII banner also Signed by DEADLY_XPLAYZ and plugin ka naam ekdum mast hona chiye add 10+ player and admin commands like admin /(Plugin) Admin POWERS (opens a beautiful INVENTORY GUI of all powers and ancient powers and admin can take any of that) /(Plugin) Admin reset (resets this plugin for specific player) /(Plugin) Admin relaod (reloads config) /(Plugin) Admin start (.starts. ritual.for whole smp) /(Plugin) Admin player INVENTORY GUI (opens a INVENTORY GUI which has heads of all.player lored with their powers Player commands

/(Plugin) stats (opens a INVENTORY GUI with player kills , deaths , power, cooldown /(Plugin) INVENTORY GUI (opens a INVENTORY GUI of all powers with lore mentioned player can only hover and see it) /(Plugin) tutorial ( gives a detailed tutorial of plugin) /(Plugin) Help (gives list of all player commands) /(Plugin) reroll (opens a INVENTORY GUI mentioned you can reroll last time maybe ye ouse koi bekar power bhi dede and aache bhi , by this reroll system rebegins for player granting them another weak or strong power atl taking back oldone) Make sure that player can't use their powers in the 500x500 block radius where admin has done /(Plugin) Admin setspawn

A

The compilation failed with this error:

code
Compilation failed with 34 error(s):

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java at line 138: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java at line 139: cannot find symbol
                attacker.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                          ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java at line 192: cannot find symbol
                player.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, player.getLocation(), 15, 0.3, 0.1, 0.3, 0.1);
                                                        ^
  symbol: variable FIREWORKS_SPARK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 49: cannot find symbol
                player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, Integer.MAX_VALUE, 1, false, false));
                                                                        ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 59: cannot find symbol
                player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, Integer.MAX_VALUE, 1, false, false));
                                                                        ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 74: cannot find symbol
                player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
                                                          ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 81: cannot find symbol
            case ANCIENT_TERRACLAW -> player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
                                                                                ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 125: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 2));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 134: cannot find symbol
                player.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, loc, 30, 0.3, 0.3, 0.3, 0.1);
                                                        ^
  symbol: variable FIREWORKS_SPARK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 205: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 1));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 222: cannot find symbol
                        player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 200, 1));
                                                                                ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 229: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 1));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 273: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 120, 3));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 339: cannot find symbol
                loc.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, loc, 5, 1, 1, 1, 0);
                                                     ^
  symbol: variable EXPLOSION_HUGE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 344: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 10));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 345: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 100, 128));
                                                                            ^
  symbol: variable JUMP
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 359: cannot find symbol
                            loc.getWorld().spawnParticle(Particle.SMOKE_LARGE, t.getLocation(), 10, 0.3, 0.5, 0.3, 0);
                                                                 ^
  symbol: variable SMOKE_LARGE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 375: cannot find symbol
                loc.getWorld().spawnParticle(Particle.BLOCK_CRACK, loc, 100, 1, 0.5, 1, 0.2,
                                                     ^
  symbol: variable BLOCK_CRACK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 395: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 413: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 1));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 426: cannot find symbol
                    victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 445: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 470: cannot find symbol
        return type == PotionEffectType.SPEED || type == PotionEffectType.JUMP ||
                                                                         ^
  symbol: variable JUMP
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 471: cannot find symbol
            type == PotionEffectType.REGENERATION || type == PotionEffectType.INCREASE_DAMAGE ||
                                                                             ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 472: cannot find symbol
            type == PotionEffectType.DAMAGE_RESISTANCE || type == PotionEffectType.FIRE_RESISTANCE ||
                                    ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/RitualManager.java at line 72: cannot find symbol
            player.getWorld().spawnParticle(Particle.ENCHANTMENT_TABLE, loc.clone().add(-x, 0.5, -z), 3, 0, 0, 0, 0);
                                                    ^
  symbol: variable ENCHANTMENT_TABLE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/RitualManager.java at line 109: cannot find symbol
        player.getWorld().spawnParticle(Particle.TOTEM, loc, 100, 0.5, 1, 0.5, 0.3);
                                                ^
  symbol: variable TOTEM
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/RitualManager.java at line 110: cannot find symbol
        player.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, loc, 80, 0.5, 1, 0.5, 0.2);
                                                ^
  symbol: variable FIREWORKS_SPARK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 52: cannot find symbol
            player.getWorld().spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 1, 0, 0, 0, 0, dust);
                                                    ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 60: cannot find symbol
                player.getWorld().spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0.5, z), 1, 0, 0, 0, 0, dust);
                                                        ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 85: cannot find symbol
                    center.getWorld().spawnParticle(Particle.REDSTONE, center.clone().add(x, 0.1, z), 1, 0, 0, 0, 0, dust);
                                                            ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 104: cannot find symbol
                    center.getWorld().spawnParticle(Particle.REDSTONE, center.clone().add(x, 0.5, z), 1, 0, 0, 0, 0, dust);
                                                            ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 124: cannot find symbol
                    center.getWorld().spawnParticle(Particle.REDSTONE, center.clone().add(x, 0.1, z), 1, 0, 0, 0, 0, dust);
                                                            ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java at line 144: cannot find symbol
                    center.getWorld().spawnParticle(Particle.SMOKE_LARGE, center.clone().add(x, 1, z), 1, 0, 0, 0, 0);
                                                            ^
  symbol: variable SMOKE_LARGE
  location: class Particle


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java
  - src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java
  - src/main/java/com/deadlyxplayz/cosmicpowers/managers/RitualManager.java
  - src/main/java/com/deadlyxplayz/cosmicpowers/managers/ParticleManager.java

Please fix this error by creating a new artifact with the corrected code.

A

The compilation failed with this error:

code
Compilation failed with 23 error(s):

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java at line 192: cannot find symbol
                player.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, player.getLocation(), 15, 0.3, 0.1, 0.3, 0.1);
                                                        ^
  symbol: variable FIREWORKS_SPARK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 49: cannot find symbol
                player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, Integer.MAX_VALUE, 1, false, false));
                                                                        ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 59: cannot find symbol
                player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, Integer.MAX_VALUE, 1, false, false));
                                                                        ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 74: cannot find symbol
                player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
                                                          ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 81: cannot find symbol
            case ANCIENT_TERRACLAW -> player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
                                                                                ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 125: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 2));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 134: cannot find symbol
                player.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, loc, 30, 0.3, 0.3, 0.3, 0.1);
                                                        ^
  symbol: variable FIREWORKS_SPARK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 205: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 1));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 222: cannot find symbol
                        player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 200, 1));
                                                                                ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 229: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 1));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 273: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 120, 3));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 339: cannot find symbol
                loc.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, loc, 5, 1, 1, 1, 0);
                                                     ^
  symbol: variable EXPLOSION_HUGE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 344: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 100, 10));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 345: cannot find symbol
                    target.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 100, 128));
                                                                            ^
  symbol: variable JUMP
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 359: cannot find symbol
                            loc.getWorld().spawnParticle(Particle.SMOKE_LARGE, t.getLocation(), 10, 0.3, 0.5, 0.3, 0);
                                                                 ^
  symbol: variable SMOKE_LARGE
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 375: cannot find symbol
                loc.getWorld().spawnParticle(Particle.BLOCK_CRACK, loc, 100, 1, 0.5, 1, 0.2,
                                                     ^
  symbol: variable BLOCK_CRACK
  location: class Particle

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 395: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 413: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 1));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 426: cannot find symbol
                    victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                            ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 445: cannot find symbol
                victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                        ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 470: cannot find symbol
        return type == PotionEffectType.SPEED || type == PotionEffectType.JUMP ||
                                                                         ^
  symbol: variable JUMP
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 471: cannot find symbol
            type == PotionEffectType.REGENERATION || type == PotionEffectType.INCREASE_DAMAGE ||
                                                                             ^
  symbol: variable INCREASE_DAMAGE
  location: class PotionEffectType

ERROR in src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java at line 472: cannot find symbol
            type == PotionEffectType.DAMAGE_RESISTANCE || type == PotionEffectType.FIRE_RESISTANCE ||
                                    ^
  symbol: variable DAMAGE_RESISTANCE
  location: class PotionEffectType


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/deadlyxplayz/cosmicpowers/listeners/PowerListener.java
  - src/main/java/com/deadlyxplayz/cosmicpowers/managers/PowerManager.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMay 13 at 2:30 am 50,684 (v2)

The errors are renamed PotionEffectType and Particle constants in newer API versions:

  • INCREASE_DAMAGE → STRENGTH

  • DAMAGE_RESISTANCE → RESISTANCE

  • SLOW → SLOWNESS

  • JUMP → JUMP_BOOST

  • FIREWORKS_SPARK → FIREWORK_SPARK

  • EXPLOSION_HUGE → EXPLOSION_EMITTER

  • SMOKE_LARGE → LARGE_SMOKE

  • BLOCK_CRACK → BLOCK_DUSTThe patches failed atomically. Let me retry with all patches carefully matched:The file uses different indentation than expected. Let me read the exact content around those areas:

Now I can see the exact content. The file uses 4-space indentation in some places and different spacing. Let me do a full rewrite since there are many changes needed:

Now fix the PowerListener.java FIREWORKS_SPARK → FIREWORK_SPARK and SLOWNESS usages:The PowerListener.java already uses SLOWNESS — only the particle name needs fixing there. Let me also do the full rewrite of PowerManager.java and just the particle fix for PowerListener.java:

All 23 errors fixed by replacing the renamed API constants:

  • PotionEffectType.INCREASE_DAMAGE → STRENGTH

  • PotionEffectType.DAMAGE_RESISTANCE → RESISTANCE

  • PotionEffectType.SLOW → SLOWNESS

  • PotionEffectType.JUMP → JUMP_BOOST

  • Particle.FIREWORKS_SPARK → FIREWORK_SPARK

  • Particle.EXPLOSION_HUGE → EXPLOSION_EMITTER

  • Particle.SMOKE_LARGE → LARGE_SMOKE

  • Particle.BLOCK_CRACK → BLOCK_DUST

A

Give me list of features that you added in plugin

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 2,756
src/main/java/com/deadlyxplayz/cosmicpowers/CosmicPowers.java
package com.deadlyxplayz.cosmicpowers;

import com.deadlyxplayz.cosmicpowers.ancient.AncientCraftListener;
import com.deadlyxplayz.cosmicpowers.ancient.AncientPowerManager;
import com.deadlyxplayz.cosmicpowers.commands.AdminCommand;
import com.deadlyxplayz.cosmicpowers.commands.PlayerCommand;
import com.deadlyxplayz.cosmicpowers.data.PlayerDataManager;
import com.deadlyxplayz.cosmicpowers.inventory.gui.GUIListener;
import com.deadlyxplayz.cosmicpowers.inventory.gui.GUIManager;
import com.deadlyxplayz.cosmicpowers.listeners.PowerListener;
import com.deadlyxplayz.cosmicpowers.managers.ParticleManager;
import com.deadlyxplayz.cosmicpowers.managers.PowerManager;
import com.deadlyxplayz.cosmicpowers.managers.RitualManager;
import com.deadlyxplayz.cosmicpowers.managers.SpawnZoneManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class CosmicPowers extends JavaPlugin {

    @Getter private static CosmicPowers instance;
    @Getter private PlayerDataManager playerDataManager;
    @Getter private PowerManager powerManager;
    @Getter private RitualManager ritualManager;
    @Getter private AncientPowerManager ancientPowerManager;
    @Getter private SpawnZoneManager spawnZoneManager;
    @Getter private ParticleManager particleManager;
    @Getter private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        printBanner();

        this.playerDataManager = new PlayerDataManager(this);
        this.powerManager = new PowerManager(this);
        this.ritualManager = new RitualManager(this);
        this.ancientPowerManager = new AncientPowerManager(this);
        this.spawnZoneManager = new SpawnZoneManager(this);
        this.particleManager = new ParticleManager(this);
        this.guiManager = new GUIManager();

        ancientPowerManager.registerRecipes();

        Bukkit.getPluginManager().registerEvents(new PowerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new AncientCraftListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);

        getCommand("cp").setExecutor(new PlayerCommand(this));
        getCommand("cpadmin").setExecutor(new AdminCommand(this));

        getLogger().info("CosmicPowers enabled! Signed by DEADLY_XPLAYZ");
    }

    @Override
    public void onDisable() {
        playerDataManager.saveAll();
        getLogger().info("CosmicPowers disabled. All data saved.");
    }

    private void printBanner() {
        String[] banner = {
            "",
            "  &5&l  ██████╗ ██████╗ ███████╗███╗   ███╗██╗ ██████╗",
            "  &5&l ██╔════╝██╔═══██╗██╔════╝████╗ ████║██║██╔════╝",
            "  &d&l ██║     ██║   ██║███████╗██╔████╔██║██║██║     ",
            "  &d&l ██║     ██║   ██║╚════██║██║╚██╔╝██║██║██║     ",
            "  &5&l ╚██████╗╚██████╔╝███████║██║ ╚═╝ ██║██║╚██████╗",
            "  &5&l  ╚═════╝ ╚═════╝ ╚══════╝╚═╝     ╚═╝╚═╝ ╚═════╝",
            "  &d&l ██████╗  ██████╗ ██╗    ██╗███████╗██████╗ ███████╗",
            "  &5&l ██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗██╔════╝",
            "  &d&l ██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝███████╗",
            "  &5&l ██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗╚════██║",
            "  &d&l ██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║███████║",
            "  &5&l ╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝╚══════╝",
            "  &6&l          Signed by DEADLY_XPLAYZ",
            ""
        };
        for (String line : banner) {
            getLogger().info(org.bukkit.ChatColor.translateAlternateColorCodes('&', line));
        }
    }
}