Goho Production

Create a complete Minecraft Paper plugin named UltimateMaces for my SMP.

Minecraft Version: 26.3

Create 5 custom maces with unique abilities:

  1. SHADOW MACE

Passive:

  • Sneak + Right Click
  • Invisibility for 60 seconds.
  • Cooldown: 120 seconds.

Active:

  • Sneak + Left Click on enemy.
  • Give enemy Darkness for 120 seconds.
  • Cooldown: 180 seconds.
  1. THUNDER MACE

Passive:

  • Sneak + Right Click.
  • Speed III for 30 seconds.
  • Cooldown: 120 seconds.

Active:

  • Sneak + Left Click.
  • Lightning strikes all enemy players within 250 blocks.
  • Deal 8 hearts damage (16 HP).
  • Apply Slowness III for 15 seconds.
  • Lightning must not destroy blocks or create fire.
  • Cooldown: 60 seconds.
  1. INFERNO MACE

Passive:

  • Sneak + Right Click.
  • Fire Resistance for 60 seconds.
  • Cooldown: 120 seconds.

Active:

  • Sneak + Left Click on enemy.
  • Main target burns for 25 seconds.
  • All enemy players within 250 blocks also burn for 25 seconds.
  • Main target receives Weakness II for 6 seconds.
  • Create a powerful explosion above the main target.
  • Create a temporary crater made of magma blocks and lava.
  • Automatically restore original blocks.
  • Never permanently destroy terrain.
  • Cooldown: 60 seconds.
  1. FROST MACE

Passive:

  • Sneak + Right Click.
  • Resistance II for 60 seconds.
  • Cooldown: 120 seconds.

Active:

  • Sneak + Left Click.
  • Freeze main target for 25 seconds.
  • Freeze all enemy players within 150 blocks for 25 seconds.
  • Create ice spikes around the main target.
  • Ice spikes must be temporary.
  • Automatically restore original blocks.
  • Cooldown: 60 seconds.
  1. DRAGON MACE

Passive:

  • Sneak + Right Click.
  • Strength II for 60 seconds.
  • Cooldown: 120 seconds.

Active:

  • Sneak + Left Click.
  • Launch all enemy players within 135 blocks extremely high into the air.
  • Main target receives Knockback X equivalent.
  • Main target burns for 20 seconds.
  • Dragon particles and dragon roar sound.
  • Cooldown: 90 seconds.

PLUGIN FEATURES:

  • Unique PersistentDataContainer identifiers for all maces.
  • Custom names and lore.
  • Abilities work only with their respective maces.
  • Vanilla maces remain unaffected.
  • Cooldown actionbar.
  • Ability activation messages.
  • Custom particles and sounds.
  • /maces GUI displaying all 5 maces.
  • /mace give <player> <mace>
  • /mace giveall <player>
  • /mace list
  • /mace info <mace>
  • /mace reload
  • Admin permissions.
  • Configurable cooldowns, durations, damage, radius, particles, sounds and abilities.
  • WorldGuard protection support.
  • Friendly fire protection.
  • Optimized for multiplayer SMP.
  • Prevent ability exploits and duplicate activation.
  • Temporary blocks must restore safely.
  • No permanent terrain destruction.

IMPORTANT:

Implement every ability completely.

Do not provide pseudocode or incomplete code.

Do not include any resource pack or 3D model features.

Do not leave TODOs or placeholder methods.

Generate the complete plugin source code and compile it into a working UltimateMaces.jar compatible with Paper 26.3.

Fix compilation errors before delivering the final plugin.

Kodari AI
KodariNov 9 at 1:54 pm 3
UltimateMaces
UltimateMaces is a Minecraft Paper plugin that adds five powerful custom maces with unique active and passive abilities. Each mace features a sneak-right-click passive buff and a sneak-left-click active attack with distinct effects including invisibility, lightning strikes, fire explosions, ice freezing, and dragon launches. The plugin includes a GUI menu, admin commands, configurable cooldowns and durations, WorldGuard protection, friendly fire prevention, and safe temporary block restoration to prevent terrain destruction.
  • Build the Paper plugin entry point, commands, config, and permission metadata.

  • Add all five mace abilities with per-player cooldowns and safe temporary terrain restoration.

  • Add the maces GUI, admin commands, friendly-fire checks, and optional WorldGuard protection.

Implemented UltimateMaces for Paper 26.3 with five PDC-identified maces, configurable abilities and cooldowns, actionbar updates, the /maces GUI, admin commands, friendly-fire checks, and optional WorldGuard protection. Temporary terrain changes are saved before placement and restored on expiry, shutdown, or restart.

To produce the jar, click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile in the window. When the build succeeds, click Download on that build.

Goho Production

Bhai in game toh koi power work he nahi kar rahi

Kodari AI
KodariNov 9 at 2:58 pm 1
  1. Check input handling and activation conditions for the mace abilities.

  2. Fix why the in-game triggers aren’t activating, then verify the listener registration and permission/config checks.

Ability triggers mein bug fix kar diya: cancelled interaction/hit events ko listener pehle ignore kar raha tha, isliye powers activate nahi hoti thi. Ab mace ke apne WorldGuard aur friendly-fire checks phir bhi apply honge.

Naya code apply karne ke baad updated jar compile karke server par purane jar ko replace karo, phir restart karo. Custom mace haath mein rakhkar sneak + right-click, ya sneak karke player ko hit karke test karo.

Goho Production

Fix my existing UltimateMaces plugin.

IMPORTANT: The custom maces currently work as items, but NONE of their passive or active abilities work in-game.

Do not recreate the plugin from scratch. Fix the existing plugin source code.

REQUIRED FIXES:

  1. Fix Sneak + Right Click detection for all 5 passive abilities.
  2. Fix Sneak + Left Click detection for all 5 active abilities.
  3. Ensure abilities activate only when the correct custom mace is held.
  4. Verify PersistentDataContainer identification for every mace.
  5. Fix Bukkit/Paper event listeners.
  6. Prevent vanilla mace mechanics from cancelling custom ability activation.
  7. Ensure ability activation is not cancelled by another listener.
  8. Fix cooldown checking and cooldown storage.
  9. Ensure potion effects are actually applied to players.
  10. Ensure radius abilities correctly find enemy players.
  11. Ensure lightning damage is real damage, not just visual lightning.
  12. Ensure freeze mechanics actually prevent player movement.
  13. Ensure temporary crater and ice spike mechanics execute correctly.
  14. Ensure dragon knock-up and knockback actually affect players.

DEBUGGING REQUIREMENTS:

  • Add console messages when each ability activates.
  • Add console messages when an ability fails.
  • Add debug messages showing which mace was detected.
  • Add debug messages showing which event triggered.
  • Add debug messages showing cooldown status.
  • Add debug messages showing affected player count.
  • Add a configurable debug mode in config.yml.

TESTING:

Test every passive and active ability separately.

Verify all 10 abilities work in-game.

Fix all implementation errors.

Compile the updated plugin.

Deliver the corrected UltimateMaces.jar.

Do not merely explain the problem.

Actually fix the existing Java source code.

Kodari AI
KodariNov 9 at 3:02 pm 2
  • Move both triggers to HIGHEST while still processing already-cancelled events; log trigger and detected mace in debug mode.

  • Add explicit success/failure and cooldown diagnostics, and make potion application force the configured effect.

  • Ensure radius effects, freeze movement, temporary terrain effects, and the inferno explosion execute as actual gameplay effects.

Ability handling is fixed in the existing plugin: both triggers now process even if another listener has already cancelled the event, and debug logs show the event, detected mace, cooldown result, activation/failure, and affected-player count. Potion effects are forced onto players; thunder deals real damage without retriggering the mace listener; frost blocks movement; and Inferno now creates a non-destructive explosion alongside its temporary crater.

Set debug: true in config.yml to enable diagnostics. I can’t run your live SMP server here, so the abilities still need in-game verification.

To build and download the updated UltimateMaces.jar:

  1. Click Compile in the top bar (on phone: ⋮ → Compile Project).

  2. Click Compile in the window.

  3. When it succeeds, click Download on that build.

Goho Production

Nah not working leave

Kodari AI
KodariNov 9 at 3:09 pm 1

Theek hai, yahin chhodte hain—aur koi changes nahi karunga.

Goho Production

Create a Minecraft Paper/Spigot plugin called Stormbreaker.

Create a legendary custom mace named ⚡ STORMBREAKER ⚡.

Requirements:

  1. Give the mace a unique custom identifier using PersistentDataContainer.
  2. Make it obtainable using "/stormbreaker give <player>".
  3. Only the custom Stormbreaker mace should activate its abilities.
  4. Add these abilities:
  • Thunder Smash: Creates a lightning shockwave when the player performs a mace smash.
  • Storm Call: Summons lightning around nearby enemies.
  • Skybreaker: Launches the player upward and creates a powerful impact when landing.
  1. Add individual cooldowns for every ability.
  2. Add blue lightning particles, thunder sounds, explosion particles and visual effects.
  3. Add action bar messages showing ability activation and cooldown.
  4. Add configurable damage, radius, duration and cooldown values in config.yml.
  5. Add permissions:

- stormbreaker.use - stormbreaker.admin

  1. Add "/stormbreaker give", "/stormbreaker reload" and "/stormbreaker info".
  2. Make the plugin compatible with Minecraft 26.3.
  3. Prevent abilities from activating when the player does not hold the custom Stormbreaker.
  4. Include a complete plugin.yml, config.yml and Java source code.

Make the plugin optimized, bug-free and compatible with multiplayer servers.

Kodari AI
KodariNov 9 at 3:13 pm 2
  • Replace the existing UltimateMaces entry point and metadata with Stormbreaker.

  • Implement PDC item identification, three distinct triggers, per-ability cooldowns, safe player-only damage/visual effects, and commands.

  • Add configurable ability values and permissions; then rely on the project verifier to check compilation.

Created the Stormbreaker plugin with PDC-based mace identification, three separate abilities and cooldowns, actionbar feedback, configurable values, permissions, and /stormbreaker give|reload|info. Thunder Smash triggers on a mace hit while falling; Storm Call is sneak + right-click; Skybreaker is sneak + left-click and impacts on landing. I can’t verify these in a live server here.

To build and download Stormbreaker.jar:

  1. Click Compile in the top bar (on phone: ⋮ → Compile Project).

  2. Click Compile in the window.

  3. When it succeeds, click Download on that build.

Goho Production

Enhance this plugin when we do sneak + right click then spawn lighting around 250 blocks

Kodari AI
KodariNov 9 at 3:27 pm 1

Storm Call abhi sirf 20-block radius use karta hai. Sneak + right-click par enemy players ko 250 blocks ke andar target karne ke liye config default aur fallback dono 250 kar raha hoon.

Storm Call ka default radius 250 blocks kar diya. Sneak + right-click par 250 blocks ke andar ke enemy players par lightning visual aur configured real damage lagega. Server par /stormbreaker reload chalao ya plugin restart karo taaki config update apply ho.

Goho Production

Create a complete, fully functional Minecraft Paper plugin named InfernoMace for Minecraft Java 26.3.

Create a legendary custom mace named 🔥 INFERNO MACE 🔥.

Custom Weapon

  • Display Name: 🔥 INFERNO MACE 🔥
  • Use PersistentDataContainer with a unique custom identifier.
  • Add custom lore describing all abilities.
  • Implement "/infernomace give <player>".
  • Only the custom Inferno Mace can activate abilities.
  • Vanilla maces must never activate these abilities.

ABILITY 1: INFERNO SMASH

  • When the player performs a successful mace smash with Inferno Mace, create a fiery explosion at the landing location.
  • Damage all nearby enemies.
  • Ignite enemies for configurable seconds.
  • Create massive flame, lava, smoke and explosion particles.
  • Play powerful explosion sounds.
  • Never damage the mace user.
  • Add configurable damage, radius and fire duration.

ABILITY 2: FIRESTORM

  • Activate using RIGHT CLICK.
  • Create a massive swirling firestorm around the player.
  • Summon fire particles around nearby enemies.
  • Deal damage continuously during the firestorm.
  • Ignite enemies.
  • Play fire and explosion sounds.
  • Do not damage the ability user.
  • Add configurable radius, damage, duration and cooldown.

ABILITY 3: METEOR STRIKE

  • Activate using SNEAK + RIGHT CLICK.
  • Launch the player high into the sky.
  • When the player lands, create a gigantic meteor explosion.
  • Deal massive damage to enemies nearby.
  • Knock enemies away from the impact location.
  • Create lava, flame, smoke and explosion particles.
  • Play dramatic meteor impact sounds.
  • Never damage the ability user.
  • Prevent activation if another Meteor Strike is already active.
  • Add configurable launch power, damage, radius and cooldown.

COOLDOWN SYSTEM

  • Each ability must have an independent cooldown.
  • Display activation messages in the action bar.
  • Display remaining cooldown when an ability is unavailable.
  • Prevent abilities from activating during cooldown.
  • Cooldowns must be configurable in config.yml.

VISUAL EFFECTS

Use:

  • FLAME particles
  • LAVA particles
  • LARGE_SMOKE particles
  • EXPLOSION particles
  • Appropriate Minecraft fire and explosion sounds
  • Smooth particle animations
  • Impressive visual effects optimized for multiplayer

CONFIGURATION

Create a complete config.yml containing:

  • Inferno Smash damage
  • Inferno Smash radius
  • Inferno Smash fire duration
  • Inferno Smash cooldown
  • Firestorm damage
  • Firestorm radius
  • Firestorm duration
  • Firestorm cooldown
  • Meteor Strike damage
  • Meteor Strike radius
  • Meteor Strike launch power
  • Meteor Strike cooldown
  • Particle settings
  • Sound settings
  • Ability enable/disable settings

COMMANDS

Implement:

  • "/infernomace give <player>"
  • "/infernomace reload"
  • "/infernomace info"

PERMISSIONS

  • "infernomace.use"
  • "infernomace.admin"

TECHNICAL REQUIREMENTS

  • Minecraft Java 26.3 compatibility.
  • Paper API compatibility with the exact target version.
  • Complete plugin.yml.
  • Complete config.yml.
  • Complete Maven pom.xml.
  • All required Java source files.
  • Correct event handling.
  • Correct custom weapon detection.
  • Correct cooldown handling.
  • Proper task cancellation and cleanup.
  • No memory leaks.
  • No unnecessary entity scanning.
  • Optimized for multiplayer servers.

CRITICAL REQUIREMENTS

  • Every ability MUST ACTUALLY WORK in-game.
  • Do not implement abilities only as visual effects.
  • Every ability must deal its configured damage.
  • All abilities must activate correctly using their specified controls.
  • Normal vanilla maces must never trigger abilities.
  • Verify all event listeners and activation conditions.
  • Do not leave TODOs, placeholders or incomplete methods.
  • Do not generate pseudo-code.
  • Generate a complete, ready-to-build plugin project.
  • Ensure the plugin compiles successfully and all abilities function correctly in-game.
Kodari AI
KodariNov 9 at 3:40 pm 2
  • Replace the Stormbreaker plugin with InfernoMace and add the requested Maven build descriptor while keeping Kodari’s Gradle build usable.

  • Implement the PDC mace, three independent cooldowns, smash/firestorm/meteor gameplay effects, and task cleanup.

  • Add the command, permissions, full config, and plugin metadata.

Created the InfernoMace plugin with the requested PDC-identified weapon, /infernomace commands, permissions, config, and Maven pom.xml.

  • Inferno Smash: a successful mace smash damages and ignites nearby enemy players.

  • Firestorm: right-click starts a rotating firestorm that repeatedly damages and ignites nearby enemies.

  • Meteor Strike: sneak + right-click launches the wielder; landing damages and knocks back nearby enemies.

  • Each ability has its own configurable cooldown. Tasks are cleaned up on logout and plugin shutdown; ability damage excludes the wielder.

I couldn’t test it on a live Minecraft 26.3 server here. To build and download the jar, click Compile in the top bar, then Compile in the window; download the jar when the build succeeds.

Goho Production

Create a Minecraft Paper/Spigot plugin called VoidSpear.

Create a legendary custom spear named §5§lVOID SPEAR.

Requirements

  1. Custom Weapon
  • Create a custom spear weapon using Minecraft's appropriate spear item/material.
  • Give the weapon a unique custom identifier using PersistentDataContainer.
  • Make it obtainable using "/voidspear give <player>".
  • Only the custom Void Spear should activate its abilities.
  • Normal spears must never activate Void Spear abilities.
  1. Passive Ability – Infinite Speed
  • While the player holds Void Spear in their main hand, automatically give them Speed V.
  • Speed V must have an unlimited duration.
  • The effect must continuously remain active while holding Void Spear.
  • When the player switches to another item or removes Void Spear, remove the Speed effect granted by Void Spear.
  • Do not interfere with Speed effects from other sources unnecessarily.
  1. Active Ability – TIME FREEZE

Activation: Sneak + Right Click

  • Detect Sneak + Right Click while holding Void Spear.
  • Search for enemy players within a 100-block radius.
  • Freeze all eligible enemy players for exactly 7 seconds.
  • Frozen players must not be able to move, jump, sprint, teleport or escape using normal movement.
  • Their movement must be completely restricted during the freeze.
  • Prevent frozen players from moving through teleportation or other normal movement methods.
  • After 7 seconds, automatically restore their movement.
  • Display a visual freezing effect using blue/purple particles.
  • Play suitable freezing sounds.
  • Display action bar messages to affected players.
  • Add a configurable cooldown for Time Freeze.
  1. Ultimate Ability – TNT NUKE

Activation: Sneak + Left Click

  • Detect Sneak + Left Click while holding Void Spear.
  • Spawn a powerful TNT Nuke at the targeted location.
  • The Nuke must contain the equivalent of 50 TNT explosions.
  • Its blast effects should cover approximately a 100-block radius.
  • Create a dramatic explosion animation with particles, sounds and shockwave effects.
  • Add configurable damage and cooldown values.
  • The Nuke must affect enemy players and mobs according to configuration.
  • Do not damage the caster unless explicitly enabled in config.
  • Display an action bar message when the Nuke activates.

IMPORTANT OPTIMIZATION:

  • Never spawn 50 actual primed TNT entities simultaneously.
  • Implement an optimized custom explosion system or controlled explosion sequence to prevent server lag and crashes.
  • Do not create unnecessary entities.
  • Do not cause uncontrolled chain explosions.
  • Make the ability safe for multiplayer server performance.
  1. Cooldown System
  • Time Freeze and TNT Nuke must have separate cooldowns.
  • Cooldowns must be configurable in config.yml.
  • Display remaining cooldown in the action bar.
  • Prevent ability activation during cooldown.
  1. Visual Effects
  • Blue and purple particles.
  • Lightning effects.
  • Explosion particles.
  • Shockwave animations.
  • Appropriate Minecraft sounds.
  • Unique effects for Time Freeze and TNT Nuke.
  1. Configuration

Include config.yml with configurable:

  • Speed amplifier.
  • Freeze duration.
  • Freeze radius.
  • Time Freeze cooldown.
  • Nuke radius.
  • Nuke damage.
  • Nuke cooldown.
  • Explosion intensity.
  • Particle effects.
  • Sound effects.
  • Friendly fire.
  • Caster damage.
  • Maximum affected players.
  • Ability permissions.
  1. Permissions
  • "voidspear.use"
  • "voidspear.admin"
  1. Commands
  • "/voidspear give <player>"
  • "/voidspear reload"
  • "/voidspear info"
  1. Compatibility
  • Compatible with Minecraft 26.3 Paper servers.
  • Use the correct Java version and API for Minecraft 26.3.
  • If a standard Bukkit API cannot implement a feature, use an appropriate Paper API implementation.
  • Do not use deprecated or incompatible methods unnecessarily.
  1. Important Rules
  • Abilities must ONLY work when holding the custom Void Spear.
  • Prevent abilities from activating with normal spears.
  • Ensure all cooldowns work correctly.
  • Ensure freeze effects automatically expire.
  • Prevent permanent freezing if the plugin reloads or a player disconnects.
  • Clean up scheduled tasks and temporary effects.
  • Ensure multiplayer compatibility.
  • Avoid excessive entity spawning and server lag.
  • Handle errors properly.
  1. Deliverables

Provide:

  • Complete Java source code.
  • Main plugin class.
  • plugin.yml.
  • config.yml.
  • Maven pom.xml or Gradle build configuration.
  • Complete instructions to compile the plugin.
  • Instructions to install the plugin on a Paper 26.3 server.
  • Ensure the final plugin JAR actually works.

Do not provide pseudocode or incomplete implementations. Implement every ability completely and make sure all abilities function correctly in-game.

Kodari AI
KodariNov 10 at 7:36 am 3
  • Replace the existing InfernoMace entry point, command, item, and listener with VoidSpear.

  • Implement PDC identification, held-item Speed V, movement-locked freezes, and a non-destructive custom nuke with separate cooldowns.

  • Update Paper 26.3 metadata, configuration, Gradle and Maven build descriptors; cancel active tasks and clear temporary effects safely.

Implemented VoidSpear in the existing project, replacing InfernoMace. It includes the custom PDC-identified spear, /voidspear give|reload|info, permissions, and Paper 26.3 Gradle and Maven build files.

  • Holding the custom spear grants Speed V; switching away removes the plugin-granted effect and restores a weaker effect that was already active.

  • Sneak + right-click freezes eligible nearby players for the configured duration, blocking movement and teleports.

  • Sneak + left-click launches the configurable nuke: it damages configured player and mob targets, applies knockback, and creates a 50-intensity visual shockwave without spawning TNT or destroying terrain.

  • The abilities have separate cooldowns. Temporary effects and scheduled tasks are cleaned up on disconnect or plugin shutdown.

To build and install:

  1. Click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile in the build window.

  2. Download the jar after the build succeeds and put it in the server’s plugins/ folder.

  3. Restart the server, then use /voidspear give <player>. Configure abilities and cooldowns in plugins/VoidSpear/config.yml.

I can’t test it on a live Paper 26.3 server from here.

Goho Production

Create a Minecraft Paper/Spigot plugin called AbyssTrident.

Create a legendary custom trident named §b§l⚡ ABYSS TRIDENT ⚡.

  1. Custom Weapon
  • Create a custom trident with a unique PersistentDataContainer identifier.
  • Make it obtainable using "/abyss give <player>".
  • Only the custom Abyss Trident should activate its abilities.
  • Normal tridents must never activate Abyss Trident abilities.
  1. Passive Ability – Infinite Dolphin Speed
  • While holding Abyss Trident in the main hand, give the player permanent Speed V.
  • Automatically remove the effect when the player stops holding Abyss Trident.
  • Do not interfere unnecessarily with other potion effects.
  1. Active Ability – Ocean Prison

Activation: Sneak + Right Click

  • Freeze enemy players within 100 blocks.
  • Freeze duration: 7 seconds.
  • Prevent movement, jumping and sprinting.
  • Create blue water particles around frozen players.
  • Play freezing sounds.
  • Automatically restore movement after 7 seconds.
  • Add configurable radius, duration and cooldown.
  1. Ultimate Ability – Tsunami

Activation: Sneak + Left Click

  • Create a massive tsunami at the targeted location.
  • Generate a powerful water shockwave.
  • Push nearby enemies away.
  • Deal configurable damage.
  • Create blue water particles and explosion effects.
  • Add configurable radius, damage, knockback and cooldown.
  • Use optimized particle effects without excessive entity spawning.
  1. Special Ability – Trident Throw
  • Normal trident throwing must work correctly.
  • Loyalty and Riptide enchantments must function properly.
  • Only the custom Abyss Trident should activate custom abilities.
  • Prevent duplication exploits.
  1. Cooldowns
  • Ocean Prison and Tsunami must have individual cooldowns.
  • Display cooldowns using action bar messages.
  • Prevent ability activation while cooldown is active.
  1. Visual Effects
  • Blue lightning particles.
  • Water splash particles.
  • Bubble particles.
  • Explosion particles.
  • Ocean-themed sounds.
  • Unique visual effects for every ability.
  1. Configuration

Include config.yml with configurable:

  • Passive speed amplifier.
  • Freeze radius.
  • Freeze duration.
  • Freeze cooldown.
  • Tsunami radius.
  • Tsunami damage.
  • Tsunami knockback.
  • Tsunami cooldown.
  • Particle settings.
  • Sound settings.
  • Friendly fire.
  • Caster damage.
  1. Permissions
  • "abyss.use"
  • "abyss.admin"
  1. Commands
  • "/abyss give <player>"
  • "/abyss reload"
  • "/abyss info"
  1. Compatibility
  • Minecraft Paper 26.3.
  • Use the correct Java version and Paper API.
  • Ensure multiplayer compatibility.
  • Avoid deprecated methods where possible.
  1. Deliverables

Provide:

  • Complete Java source code.
  • Main plugin class.
  • plugin.yml.
  • config.yml.
  • Maven pom.xml.
  • Compilation instructions.
  • Installation instructions.
  • Fully functional compiled plugin.

IMPORTANT:

Do not provide pseudocode or incomplete implementations. All abilities must work correctly in-game. Ensure the plugin is optimized, bug-free, and does not cause server lag or crashes.

Kodari AI
KodariNov 10 at 7:48 am 1
  • Replace the existing VoidSpear implementation with AbyssTrident and add its /abyss commands, metadata, and configuration.

  • Implement the custom trident, passive speed handling, timed Ocean Prison, and targeted Tsunami with independent cooldowns and cleanup.

  • Preserve native trident throwing, Loyalty, and Riptide behavior; confirm build settings and dependencies before patching.

Replaced the existing VoidSpear source with AbyssTrident, including the PDC-identified custom trident, /abyss give|reload|info, permissions, config, and Maven build file.

  • Infinite Dolphin Speed: maintained while the custom trident is held in the main hand; removed when it’s no longer held, with an existing weaker Speed effect restored when possible.

  • Ocean Prison: sneak + right-click freezes eligible nearby players for the configured duration, blocking movement, sprinting, and teleporting.

  • Tsunami: sneak + left-click damages and knocks back eligible targets at the aimed location, with an expanding water-particle shockwave. Caster damage is disabled by default.

  • Normal trident throwing and its Loyalty/Riptide mechanics are left intact. Vanilla tridents don’t activate the abilities.

To build and download AbyssTrident.jar, click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile in the window. After it succeeds, download the jar, put it in the Paper server’s plugins/ folder, and restart the server. I can’t verify gameplay on a live 26.3 server from here.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
pom.xml
settings.gradle
Code
10 994
src/main/java/com/kodari/voidspear/VoidSpear.java
package com.kodari.voidspear;

import com.kodari.voidspear.command.VoidSpearCommand;
import com.kodari.voidspear.item.VoidSpearItem;
import com.kodari.voidspear.listener.VoidSpearListener;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;

public final class VoidSpear extends JavaPlugin {
    private final Map<UUID, Map<String, Long>> cooldowns = new HashMap<>();
    private NamespacedKey spearKey;
    private VoidSpearListener listener;
    private BukkitTask cooldownCleanupTask;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        spearKey = new NamespacedKey(this, "voidspear_id");
        listener = new VoidSpearListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);
        listener.start();

        VoidSpearCommand command = new VoidSpearCommand(this);
        Objects.requireNonNull(getCommand("voidspear"), "voidspear command missing from plugin.yml")
                .setExecutor(command);
        Objects.requireNonNull(getCommand("voidspear"), "voidspear command missing from plugin.yml")
                .setTabCompleter(command);
        cooldownCleanupTask = Bukkit.getScheduler().runTaskTimer(this, this::cleanCooldowns, 1200L, 1200L);
        getLogger().info("VoidSpear enabled.");
    }

    @Override
    public void onDisable() {
        if (cooldownCleanupTask != null) {
            cooldownCleanupTask.cancel();
        }
        if (listener != null) {
            listener.shutdown();
        }
        cooldowns.clear();
    }

    public NamespacedKey getSpearKey() {
        return spearKey;
    }

    public ItemStack createSpear() {
        return VoidSpearItem.create(this);
    }

    public boolean isVoidSpear(ItemStack item) {
        if (item == null || item.getType().isAir() || !item.hasItemMeta()) {
            return false;
        }
        String id = item.getItemMeta().getPersistentDataContainer()
                .get(spearKey, PersistentDataType.STRING);
        return "voidspear".equals(id);
    }

    public boolean activateAbility(Player player, String ability) {
        String permission = getConfig().getString("permissions." + ability, "voidspear.use");
        if (permission == null || !player.hasPermission(permission)) {
            sendActionbar(player, getConfig().getString("messages.no-permission", "&cNo permission."));
            return false;
        }

        String path = "abilities." + ability;
        if (!getConfig().getBoolean(path + ".enabled", true)) {
            sendActionbar(player, getConfig().getString("messages.disabled", "&cThat ability is disabled."));
            return false;
        }

        long now = System.currentTimeMillis();
        Map<String, Long> playerCooldowns = cooldowns.computeIfAbsent(player.getUniqueId(), ignored -> new HashMap<>());
        long expiresAt = playerCooldowns.getOrDefault(ability, 0L);
        if (expiresAt > now) {
            long seconds = (expiresAt - now + 999L) / 1000L;
            sendActionbar(player, getConfig().getString("messages.cooldown", "&5{ability} &7cooldown: {seconds}s")
                    .replace("{ability}", displayAbility(ability))
                    .replace("{seconds}", Long.toString(seconds)));
            return false;
        }

        long cooldownSeconds = Math.max(0L, getConfig().getLong(path + ".cooldown-seconds", 0L));
        playerCooldowns.put(ability, now + cooldownSeconds * 1000L);
        return true;
    }

    public void sendActivation(Player player, String ability) {
        String fallback = "&5" + displayAbility(ability) + " activated!";
        sendActionbar(player, getConfig().getString("messages.activated." + ability, fallback));
    }

    public void sendActionbar(Player player, String message) {
        if (message != null && !message.isBlank() && player.isOnline()) {
            player.sendActionBar(LegacyComponentSerializer.legacyAmpersand().deserialize(message));
        }
    }

    public static String color(String text) {
        return ChatColor.translateAlternateColorCodes('&', text == null ? "" : text);
    }

    private void cleanCooldowns() {
        long now = System.currentTimeMillis();
        Iterator<Map.Entry<UUID, Map<String, Long>>> players = cooldowns.entrySet().iterator();
        while (players.hasNext()) {
            Map<String, Long> values = players.next().getValue();
            values.values().removeIf(expiry -> expiry <= now);
            if (values.isEmpty()) {
                players.remove();
            }
        }
    }

    private String displayAbility(String ability) {
        String[] words = ability.split("-");
        StringBuilder result = new StringBuilder();
        for (String word : words) {
            if (!result.isEmpty()) {
                result.append(' ');
            }
            result.append(Character.toUpperCase(word.charAt(0))).append(word.substring(1));
        }
        return result.toString();
    }
}