P

Act as a professional Minecraft Java plugin developer and generate a complete, production-ready Paper 1.21.10 plugin that works for both Java and Bedrock players via Geyser + Floodgate. Create a One Piece–themed Devil Fruit system (powers only, no Sea Stone, no water or other weaknesses) where each player can have only one Devil Fruit, automatically assigned on first join. Bind the Devil Power to a Chorus Fruit that is UUID-locked, cannot be dropped, stored, traded, destroyed, or moved to any inventory, and activates abilities using Bedrock-safe interactions (left/right click, sneak + click—no Java-only keybinds). Implement these fruits and abilities: Mera Mera (fire form, fireballs, fire pillars, flame flight, burn regen), Goro Goro (lightning strikes, lightning dash, electric AoE stun), Hie Hie (freeze water/enemies, ice walls/platforms, ice spears/blizzard), Moku Moku (smoke form, smoke walls, tendrils, vertical mobility), Yami Yami (gravity pull, black hole, optional area suppression of other powers), Bari Bari (invisible barriers blocking players/mobs/projectiles), Ope Ope (ROOM zone, teleport, position swap, spatial control), and Hito Hito Model: Nika (rubber stretching attacks, extreme jump/speed, bouncy terrain). Add commands /devilpower give , /devilpower use , /devilpower see , and /devilpowers reroll (auto-used once on first join only), with permissions devilpower.admin/use/see. Include configurable cooldowns, damage, AoE radius, particles/sounds, and fruit toggles in config.yml, correct registration in plugin.yml, Bedrock detection via Floodgate, UUID/Floodgate ID player data storage, inventory protection logic, clean OOP structure, lag-safe events, and well-commented code. Output all files (main class, managers, listeners, commands, data handlers, plugin.yml, config.yml, folder structure) with nothing skipped, compiling cleanly on Paper 1.21.10 and functioning identically for Java and Bedrock players.

Kodari AI
KodariJan 31 at 6:08 pm 9,947 (v2)

I’ll create a One Piece Devil Fruits plugin with automatic fruit assignment on first join and Bedrock compatibility.

OnePieceDevilFruits
A Minecraft plugin inspired by One Piece, assigning each player a unique Devil Fruit on first join with themed abilities activated via a bound Chorus Fruit item and optional GUI for selection. Supports Java and Bedrock players via Geyser/Floodgate, with configurable settings, commands, and inventory protections for seamless cross-platform experience.
P

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 5 error(s):

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 10: cannot find symbol
import com.onepiecedevilfruits.managers.GUIManager;
                                       ^
  symbol: class GUIManager
  location: package com.onepiecedevilfruits.managers

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
            ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
                       ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 4: cannot find symbol
import com.cryptomorin.xseries.XParticle;
                              ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 212: cannot find symbol
    private final Map<String, Long> cooldowns = new HashMap<>();
                  ^
  symbol: class Map
  location: class AbilityHandler


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - GUIManager
  - XParticle
  - Map
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java
  - src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java
 exceeds maximum 

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

P

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 5 error(s):

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 10: cannot find symbol
import com.onepiecedevilfruits.managers.GUIManager;
                                       ^
  symbol: class GUIManager
  location: package com.onepiecedevilfruits.managers

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
            ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
                       ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 4: cannot find symbol
import com.cryptomorin.xseries.XParticle;
                              ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 212: cannot find symbol
    private final Map<String, Long> cooldowns = new HashMap<>();
                  ^
  symbol: class Map
  location: class AbilityHandler


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - GUIManager
  - XParticle
  - Map
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java
  - src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java
 exceeds maximum 

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

Kodari AI
KodariJan 31 at 6:12 pm 6,389 (v2)
Kodari AI
KodariJan 31 at 6:12 pm 15,250 (v2)
  • Incorrect import for GUIManager in DevilFruitsPlugin.java (should be gui package)

  • Incorrect import for XParticle and missing java.util imports in AbilityHandler.java

  • Updated AbilityHandler to use XSeries for materials, sounds, particles, potions to comply with guidelines

Fixed import issues, added missing imports, and updated to use XSeries for compatibility.

P

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 5 error(s):

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 10: cannot find symbol
import com.onepiecedevilfruits.managers.GUIManager;
                                       ^
  symbol: class GUIManager
  location: package com.onepiecedevilfruits.managers

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
            ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java at line 20: cannot find symbol
    private GUIManager guiManager;
                       ^
  symbol: class GUIManager
  location: class DevilFruitsPlugin

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 4: cannot find symbol
import com.cryptomorin.xseries.XParticle;
                              ^
  symbol: class XParticle
  location: package com.cryptomorin.xseries

ERROR in src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java at line 212: cannot find symbol
    private final Map<String, Long> cooldowns = new HashMap<>();
                  ^
  symbol: class Map
  location: class AbilityHandler


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - GUIManager
  - XParticle
  - Map
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java
  - src/main/java/com/onepiecedevilfruits/fruits/AbilityHandler.java
 exceeds maximum 

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

Kodari AI
KodariJan 31 at 6:18 pm 16,819 (v2)
  • Corrected GUIManager import package from managers to gui in DevilFruitsPlugin.java

  • Corrected XParticle import to use particles subpackage in AbilityHandler.java

  • Added/ensured java.util.Map and java.util.HashMap imports in AbilityHandler.java

Updated imports in the affected files to resolve all compilation errors.

P

Remove democracy floodgate croosplay

P

public void createBarrier(Player player) { player.sendMessage("Barrier created."); }

Kodari can make mistakes. Review important code before using.
Files
src
Code
17 943
src/main/java/com/onepiecedevilfruits/DevilFruitsPlugin.java
package com.onepiecedevilfruits;

import com.onepiecedevilfruits.commands.DevilPowerCommand;
import com.onepiecedevilfruits.data.PlayerDataManager;
import com.onepiecedevilfruits.fruits.DevilFruit;
import com.onepiecedevilfruits.listeners.InventoryListener;
import com.onepiecedevilfruits.listeners.ItemInteractionListener;
import com.onepiecedevilfruits.listeners.PlayerJoinListener;
import com.onepiecedevilfruits.managers.DevilFruitManager;
import com.onepiecedevilfruits.gui.GUIManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DevilFruitsPlugin extends JavaPlugin {

    private DevilFruitManager devilFruitManager;
    private PlayerDataManager playerDataManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        playerDataManager = new PlayerDataManager(this);
        devilFruitManager = new DevilFruitManager(this);
        guiManager = new GUIManager();

        getCommand("devilpower").setExecutor(new DevilPowerCommand(this));

        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ItemInteractionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new InventoryListener(this), this);
        Bukkit.getPluginManager().registerEvents(new com.onepiecedevilfruits.gui.GUIListener(guiManager), this);
    }

    @Override
    public void onDisable() {
        playerDataManager.saveAll();
    }

    public boolean isBedrockPlayer(org.bukkit.entity.Player player) {
        try {
            Class.forName("org.geysermc.floodgate.api.FloodgateApi");
            return org.geysermc.floodgate.api.FloodgateApi.getInstance().isFloodgatePlayer(player.getUniqueId());
        } catch (ClassNotFoundException e) {
            return false;
        }
    }
}