l8bx

The compilation failed with this error:

code
Compilation failed with 5 error(s):

ERROR in src/main/java/com/bowenchants/listener/ProjectileListener.java at line 304: cannot find symbol
                        world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, y, z),
                                                    ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/bowenchants/listener/ProjectileListener.java at line 317: cannot find symbol
                        world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, ringY, z),
                                                    ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/bowenchants/listener/ProjectileListener.java at line 340: cannot find symbol
                        world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, y, z),
                                                    ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/bowenchants/listener/ProjectileListener.java at line 355: cannot find symbol
                        world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, ringY, z),
                                                    ^
  symbol: variable REDSTONE
  location: class Particle

ERROR in src/main/java/com/bowenchants/listener/ProjectileListener.java at line 361: cannot find symbol
                world.spawnParticle(Particle.EXPLOSION_HUGE, loc.clone().add(0, 1, 0), 4, 0.5, 0.5, 0.5, 0);
                                            ^
  symbol: variable EXPLOSION_HUGE
  location: class Particle


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/bowenchants/listener/ProjectileListener.java

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

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
14 1,099
src/main/java/com/bowenchants/BowEnchantmentsPlugin.java
package com.bowenchants;

import com.bowenchants.command.EbooksCommand;
import com.bowenchants.command.EbowCommand;
import com.bowenchants.command.InfoCommand;
import com.bowenchants.listener.AnvilListener;
import com.bowenchants.listener.ChestPopulationListener;
import com.bowenchants.listener.ProjectileListener;
import com.bowenchants.listener.VillagerTradeListener;
import com.bowenchants.manager.EnchantmentManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BowEnchantmentsPlugin extends JavaPlugin {

    private EnchantmentManager enchantmentManager;

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

        this.enchantmentManager = new EnchantmentManager(this);

        getServer().getPluginManager().registerEvents(new ChestPopulationListener(this), this);
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        getServer().getPluginManager().registerEvents(new VillagerTradeListener(this), this);
        getServer().getPluginManager().registerEvents(new AnvilListener(this), this);

        EbowCommand ebowCommand = new EbowCommand(this);
        getCommand("ebow").setExecutor(ebowCommand);

        EbooksCommand ebooksCommand = new EbooksCommand(this);
        getCommand("ebooks").setExecutor(ebooksCommand);
        getServer().getPluginManager().registerEvents(ebooksCommand, this);

        getCommand("info").setExecutor(new InfoCommand());

        getLogger().info("OK");
    }

    @Override
    public void onDisable() {
        getLogger().info("BowEnchantments disabled");
    }
}