Build the complete Paper Minecraft Java plugin requested below in this new project. Project name Ocean SMP S1. Target Paper 1.21.11, Java 21, compatible across Paper 1.21.x, standalone/no external plugins, optimized for SMP. Use standard Maven structure and create pom.xml, plugin.yml, config.yml and all required Java classes/packages. Plugin metadata name must be OceanSMP, version 1.0.0, main class path in plugin.yml, api-version suitable for Paper 1.21.11. Commands /oceansmp, /oceansmp help, /oceansmp reload, /oceansmp give <player> <item>; permissions oceansmp.admin, oceansmp.give, oceansmp.reload. Only players with oceansmp.admin can use admin commands; structure permissions sensibly so give/reload can also be granted individually as requested. Provide tab completion if appropriate.

Items: Ocean Sword DIAMOND_SWORD named §b§lOcean Sword, high durability, configured custom damage, Ocean Strike right-click water-themed attack around targeted living entity, cooldown configured and displayed. Ocean Axe DIAMOND_AXE named §3§lOcean Axe, configured damage, Tide Smash right-click small knockback, cooldown. Ocean Trident TRIDENT named §b§lOcean Trident, Ocean Surge right-click water-themed projectile/effect, cooldown. Ocean Bow BOW named §9§lOcean Bow, Water Arrow on arrow hit splash, cooldown. Armor Ocean Helmet DIAMOND_HELMET named §b§lOcean Helmet gives Water Breathing; chestplate DIAMOND_CHESTPLATE added protection; leggings DIAMOND_LEGGINGS small movement bonus; boots DIAMOND_BOOTS Depth Strider. Full set grants Water Breathing, small Speed and Resistance, removed immediately when set no longer equipped. Use custom PDC IDs to identify each custom item; never rely solely on names. Items persist across restart, prevent accidental duplication, recipe matching is correct, abilities only on corresponding PDC item. Use vanilla-compatible PersistentDataType tags and implement recipes safely with custom ingredients if applicable. Make recipe registration robust against duplicate keys/reload; recipe output has PDC item identity. Balanced crafting recipes for all 8 items using diamond, Heart of the Sea, prismarine, nautilus shell, and netherite materials where appropriate. No recipe ingredient should depend on an external custom plugin.

Create config.yml with weapon damage (Sword 12, Axe 14, Trident 11), cooldowns (Sword 10, Axe 12, Trident 8, Bow 6), armor bonuses/settings, recipe enable toggles, configurable messages, debug mode. Ensure configurable values are used. Messages use color formatting and cooldown placeholder %time%. Include example receive/header messages.

Implementation expectations: clean classes for main, command(s), listeners, item manager, recipe manager, ability manager, armor manager and utility as suitable. Use Paper/Adventure APIs as appropriate. Ensure custom damage works without globally altering normal weapons (e.g. event handling custom-item attacks); avoid applying damage twice. Bow cooldown should apply on shooting with custom bow; water splash only on hit with its arrow. Use safe targeting and effects, no griefing/place water blocks, and avoid unbounded ticking/task leaks. Armor bonuses should update promptly on equip/unequip, inventory/armor changes, death/respawn/world changes and login; only remove effects attributable to plugin, avoiding removal of stronger externally supplied effects if feasible. Command reload refreshes config without duplicate recipes/listeners/tasks. Give handles invalid online/offline target safely and inventory full by dropping remainder at player location. Java 21 source/target and Paper API dependency version 1.21.11-R0.1-SNAPSHOT if available in template. Do not use TODOs, placeholders, missing classes or ask for build verification. Implement the actual full code, then report files and design briefly; I will run the project build separately.

Kodari AI
KodariOct 5 at 6:21 am 3
OceanSMP
Ocean SMP is a Minecraft Paper plugin that adds a complete set of ocean-themed weapons and armor with unique abilities. It features four weapons including the Ocean Sword with Ocean Strike, Ocean Axe with Tide Smash, Ocean Trident with Ocean Surge, and Ocean Bow with Water Arrow projectiles. The plugin includes four armor pieces that grant Water Breathing, Speed, Resistance, and Depth Strider effects when the full set is equipped. All items use PersistentDataContainer identifiers for reliable tracking, have balanced crafting recipes using vanilla materials, and feature configurable damage, cooldowns, and messages. The plugin provides admin commands for item distribution and configuration reload, with proper permission handling and tab completion.
  1. Create the Maven/Paper project metadata and configurable defaults.

  2. Add PDC-backed custom items and reload-safe recipes.

  3. Implement commands, weapon abilities, and armor effects with cleanup and cooldown handling.

Created OceanSMP 1.0.0 with Maven metadata, Paper plugin/config files, and the main, command, item, recipe, ability, armor, and message utility classes.

Items use PDC IDs; recipes can be toggled and are re-registered safely on reload. Weapon abilities use configurable cooldowns and damage, while armor effects update on equipment changes and are cleaned up on death, logout, and plugin shutdown. /oceansmp give handles online targets and drops inventory overflow at the recipient’s location.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
10 927
src/main/java/com/oceansmp/OceanSMP.java
package com.oceansmp;

import com.oceansmp.armor.ArmorManager;
import com.oceansmp.command.OceanSMPCommand;
import com.oceansmp.items.ItemManager;
import com.oceansmp.items.RecipeManager;
import com.oceansmp.listeners.AbilityManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class OceanSMP extends JavaPlugin {
    private ItemManager itemManager;
    private RecipeManager recipeManager;
    private ArmorManager armorManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemManager = new ItemManager(this);
        recipeManager = new RecipeManager(this, itemManager);
        armorManager = new ArmorManager(this, itemManager);

        Bukkit.getPluginManager().registerEvents(new AbilityManager(this, itemManager), this);
        Bukkit.getPluginManager().registerEvents(armorManager, this);
        recipeManager.registerRecipes();

        OceanSMPCommand command = new OceanSMPCommand(this, itemManager);
        getCommand("oceansmp").setExecutor(command);
        getCommand("oceansmp").setTabCompleter(command);
        armorManager.start();
    }

    @Override
    public void onDisable() {
        if (armorManager != null) {
            armorManager.shutdown();
        }
    }

    public ItemManager getItemManager() {
        return itemManager;
    }

    public void reloadOceanSMP() {
        reloadConfig();
        recipeManager.registerRecipes();
        armorManager.refreshOnlinePlayers();
    }

    public void debug(String message) {
        if (getConfig().getBoolean("debug", false)) {
            getLogger().info(message);
        }
    }
}