gt_devil

๐Ÿข TURTLESMP2

COMPLETE PRODUCTION-READY CUSTOM WEAPONS PLUGIN

Create a complete, production-ready Minecraft Paper plugin named:

TURTLESMP2

The plugin is intended for a Lifesteal/SMP server and must provide a professional custom-weapons system with abilities, cooldowns, INVENTORY GUI management, permissions, configuration, effects, and admin controls.

The implementation must be written independently from scratch.

IMPORTANT:

  • Do not copy or reuse proprietary source code or bytecode from any reference plugin.
  • Do not decompile and paste classes from another plugin.
  • Do not require another plugin's JAR at runtime.
  • Do not provide pseudo-code.
  • Do not provide TODOs.
  • Do not provide incomplete classes.
  • Every feature must be fully implemented and compilable.

==================================================

๐Ÿ“ฆ PROJECT DETAILS

==================================================

PLUGIN NAME:

TURTLESMP2

JAR NAME:

TURTLESMP2.jar

VERSION: 1.0.0

PLATFORM:

Paper 1.21.x

JAVA: 21

BUILD SYSTEM:

Maven

MAIN CLASS: org.Crimsonsmp.turtlesmp2.TurtleSmp2

PACKAGE: org.Crimsonsmp.turtlesmp2

==================================================

โš”๏ธ CUSTOM WEAPONS

==================================================

Create exactly these four custom weapons:

  1. โš”๏ธ TITAN BLADE
  2. ๐Ÿ”ฅ FIRE BLADE
  3. ๐Ÿข TURTLEMACE
  4. ๐Ÿน AUTO BOW

Do NOT create a weapon named:

HAMMER

The word Hammer must not appear as a weapon name, INVENTORY GUI item, configuration key, class name, or weapon identifier.

==================================================

๐Ÿข TURTLEMACE

==================================================

Weapon:

TURTLEMACE

Material:

MACE

PersistentDataContainer ID:

turtlesmp2_weapon = turtlemace

Display name:

&b๐Ÿข TURTLEMACE

Requirements:

  • Powerful custom melee weapon
  • Special ability
  • Configurable damage
  • Configurable knockback
  • Configurable cooldown
  • Impact particles
  • Impact sounds
  • Player support
  • Mob support
  • Unique PersistentDataContainer identification
  • No activation from normal MACE items

The weapon must actually function in gameplay.

==================================================

โš”๏ธ TITAN BLADE

==================================================

Weapon:

TITAN BLADE

Material:

NETHERITE_SWORD

PersistentDataContainer ID:

turtlesmp2_weapon = titan_blade

Requirements:

  • Powerful custom ability
  • Configurable damage
  • Configurable knockback
  • Particles
  • Sounds
  • Cooldown
  • Player support
  • Mob support
  • Custom lore
  • Custom display name

Normal Netherite Swords must remain unaffected.

==================================================

๐Ÿ”ฅ FIRE BLADE

==================================================

Weapon:

FIRE BLADE

Material:

NETHERITE_SWORD

PersistentDataContainer ID:

turtlesmp2_weapon = fire_blade

Requirements:

  • Fire-based ability
  • Fire particles
  • Smoke particles
  • Fire sound
  • Configurable damage
  • Configurable fire duration
  • Configurable cooldown
  • Player support
  • Mob support
  • Custom lore
  • Custom display name

Normal Netherite Swords must remain unaffected.

==================================================

๐Ÿน AUTO BOW

==================================================

Weapon:

AUTO BOW

Material:

BOW

PersistentDataContainer ID:

turtlesmp2_weapon = auto_bow

Requirements:

  • Custom shooting system
  • Projectile event handling
  • Configurable damage
  • Configurable cooldown
  • Projectile effects
  • Sound effects
  • Particle effects
  • Player support
  • Mob support
  • Custom display name
  • Custom lore

Normal Minecraft bows must continue working normally.

==================================================

๐Ÿงฌ ITEM IDENTIFICATION

==================================================

Use Bukkit/Paper:

PersistentDataContainer

Namespace:

turtlesmp2

Every custom weapon must contain a unique identifier.

Example:

turtlesmp2_weapon: titan_blade turtlesmp2_weapon: fire_blade turtlesmp2_weapon: turtlemace turtlesmp2_weapon: auto_bow

Never identify weapons only using:

  • Display name
  • Lore
  • Material

Renaming a normal item must NOT turn it into a custom weapon.

==================================================

๐ŸŽฎ ABILITY SYSTEM

==================================================

Create a reusable ability framework.

Support:

  • Right-click
  • Shift + Right-click
  • Left-click when required
  • Entity hit
  • Projectile hit
  • Ability activation
  • Cooldown checking
  • Damage
  • Knockback
  • Particles
  • Sounds
  • Potion/status effects where required

Prevent abilities from triggering accidentally on unrelated items.

==================================================

โฑ๏ธ COOLDOWN SYSTEM

==================================================

Create a centralized:

CooldownManager

Requirements:

  • Per-player cooldowns
  • Per-weapon cooldowns
  • Per-ability cooldowns
  • Configurable duration
  • Remaining cooldown calculation
  • Cooldown prevention
  • Action-bar feedback
  • Automatic cleanup
  • No memory leaks

Example:

&cAbility is on cooldown! &7Wait &e%seconds%s

==================================================

๐Ÿ”„ COOLDOWN RESET

==================================================

Command:

/rc

Permission:

turtlesmp2.rc

Default:

OP

Function:

Reset the cooldown of the custom weapon currently held by the player.

Requirements:

  • Detect current item
  • Verify PersistentDataContainer
  • Reset correct weapon cooldown
  • Send success message
  • Show error if no supported weapon is held
  • Do not reset unrelated cooldowns

==================================================

๐Ÿ–ฅ๏ธ ADMIN WEAPON INVENTORY GUI

==================================================

Command:

/turtlesmp2

Permission:

turtlesmp2.admin

Default:

OP

Open an administrator weapon INVENTORY GUI.

INVENTORY GUI must contain exactly:

โš”๏ธ TITAN BLADE ๐Ÿ”ฅ FIRE BLADE ๐Ÿข TURTLEMACE ๐Ÿน AUTO BOW

Requirements:

  • Configurable INVENTORY GUI title
  • Configurable INVENTORY GUI size
  • Configurable slots
  • Click to obtain weapon
  • Prevent item stealing
  • Prevent unwanted item movement
  • Safe full-inventory handling
  • Permission checking
  • Proper inventory event handling

Clicking an item must give the correctly identified custom weapon.

==================================================

๐Ÿข TURTLESMP COUNTDOWN

==================================================

Command:

/turtlesmp start

Permission:

turtlesmp2.start

Default:

OP

Start a configurable TURTLESMP countdown.

Requirements:

  • Configurable countdown duration
  • Broadcast messages
  • Title
  • Subtitle
  • Action bar
  • Countdown sounds
  • Final start sound
  • Prevent duplicate countdowns
  • Safe cancellation
  • Proper scheduler cleanup

Example:

๐Ÿข TURTLESMP starting in 10...

๐Ÿข TURTLESMP starting in 5...

๐Ÿข TURTLESMP STARTED!

==================================================

๐Ÿ” PERMISSIONS

==================================================

Create:

turtlesmp2.*

turtlesmp2.admin

turtlesmp2.rc

turtlesmp2.use

turtlesmp2.start

Defaults:

turtlesmp2.* = OP

turtlesmp2.admin = OP

turtlesmp2.rc = OP

turtlesmp2.use = TRUE

turtlesmp2.start = OP

==================================================

โš™๏ธ CONFIGURATION

==================================================

Create a complete config.yml.

Include:

messages: prefix no-permission cooldown cooldown-reset no-weapon weapon-given countdown-start countdown-finished

weapons:

titan-blade: enabled display-name damage knockback cooldown particles sounds

fire-blade: enabled display-name damage fire-duration cooldown particles sounds

turtlemace: enabled display-name damage knockback cooldown particles sounds

auto-bow: enabled display-name damage cooldown particles sounds

countdown: duration title subtitle actionbar sounds

INVENTORY GUI: title size titan-blade-slot fire-blade-slot turtlemace-slot auto-bow-slot

==================================================

๐Ÿ“ PROJECT STRUCTURE

==================================================

Use a clean architecture:

src/main/java/org/Crimsonsmp/turtlesmp2/

โ”œโ”€โ”€ TurtleSmp2.java โ”‚ โ”œโ”€โ”€ command/ โ”‚ โ”œโ”€โ”€ TurtleSmp2Command.java โ”‚ โ”œโ”€โ”€ ResetCooldownCommand.java โ”‚ โ””โ”€โ”€ TurtleSmpCommand.java โ”‚ โ”œโ”€โ”€ weapon/ โ”‚ โ”œโ”€โ”€ CustomWeapon.java โ”‚ โ”œโ”€โ”€ WeaponManager.java โ”‚ โ”œโ”€โ”€ TitanBlade.java โ”‚ โ”œโ”€โ”€ FireBlade.java โ”‚ โ”œโ”€โ”€ TurtleMace.java โ”‚ โ””โ”€โ”€ AutoBow.java โ”‚ โ”œโ”€โ”€ ability/ โ”‚ โ”œโ”€โ”€ Ability.java โ”‚ โ””โ”€โ”€ AbilityManager.java โ”‚ โ”œโ”€โ”€ cooldown/ โ”‚ โ””โ”€โ”€ CooldownManager.java โ”‚ โ”œโ”€โ”€ INVENTORY GUI/ โ”‚ โ””โ”€โ”€ WeaponGUI.java โ”‚ โ”œโ”€โ”€ listener/ โ”‚ โ”œโ”€โ”€ WeaponInteractListener.java โ”‚ โ”œโ”€โ”€ WeaponDamageListener.java โ”‚ โ”œโ”€โ”€ WeaponProjectileListener.java โ”‚ โ””โ”€โ”€ GUIListener.java โ”‚ โ””โ”€โ”€ util/ โ”œโ”€โ”€ ItemUtil.java โ”œโ”€โ”€ EffectUtil.java โ””โ”€โ”€ MessageUtil.java

src/main/resources/

โ”œโ”€โ”€ plugin.yml โ””โ”€โ”€ config.yml

==================================================

๐Ÿ“œ PLUGIN.YML

==================================================

name: TURTLESMP2 version: 1.0.0 main: org.Crimsonsmp.turtlesmp2.TurtleSmp2 api-version: '1.21'

commands:

turtlesmp2: description: Open TURTLESMP2 weapon menu permission: turtlesmp2.admin

rc: description: Reset custom weapon cooldown permission: turtlesmp2.rc

turtlesmp: description: Start TURTLESMP countdown permission: turtlesmp2.start

permissions:

turtlesmp2.*: default: op

turtlesmp2.admin: default: op

turtlesmp2.rc: default: op

turtlesmp2.use: default: true

turtlesmp2.start: default: op

==================================================

๐Ÿ›ก๏ธ PERFORMANCE

==================================================

The plugin must:

  • Be optimized for Paper 1.21.x
  • Support multiple players
  • Avoid memory leaks
  • Avoid excessive particle spawning
  • Avoid excessive sound spam
  • Handle disconnected players safely
  • Handle dead entities safely
  • Handle unloaded worlds safely
  • Clean up scheduled tasks
  • Avoid unnecessary repeating tasks
  • Avoid NMS unless absolutely necessary
  • Use Java 21
  • Use Paper/Bukkit APIs correctly
  • Avoid console errors
  • Avoid duplicate event registration

==================================================

๐Ÿงช FINAL TESTING

==================================================

Verify all of the following:

โœ“ Maven compilation succeeds

โœ“ Java 21 compatibility

โœ“ TURTLESMP2.jar generated

โœ“ Plugin loads without errors

โœ“ /turtlesmp2 works

โœ“ /rc works

โœ“ /turtlesmp start works

โœ“ Admin INVENTORY GUI works

โœ“ Titan Blade works

โœ“ Fire Blade works

โœ“ TURTLEMACE works

โœ“ Auto Bow works

โœ“ Cooldowns work

โœ“ Permissions work

โœ“ Configuration works

โœ“ Players can use weapons

โœ“ Mobs can be affected

โœ“ Normal Minecraft items remain unaffected

โœ“ Custom item IDs persist after restart

โœ“ Full inventory is handled safely

โœ“ Multiple players can use abilities simultaneously

==================================================

๐Ÿšซ STRICT FINAL RULES

==================================================

DO NOT create:

HAMMER hammer Hammer

as a weapon.

The third weapon MUST be:

๐Ÿข TURTLEMACE

Use:

TurtleMace.java

turtlemace

turtlesmp2_weapon = turtlemace

throughout the implementation.

==================================================

โœ… FINAL DELIVERABLE

==================================================

Generate the COMPLETE Maven project with:

  • pom.xml
  • plugin.yml
  • config.yml
  • All Java classes
  • All commands
  • All listeners
  • All weapon implementations
  • Ability system
  • Cooldown system
  • Admin INVENTORY GUI
  • Configuration system
  • Utility classes

Build the final JAR as:

TURTLESMP2.jar

The finished plugin must be independently implemented, production-ready, functional, optimized, and suitable for a Paper 1.21.x Lifesteal/SMP server.

Kodari AI
KodariAug 22 at 10:32 am 3
  1. Create the Maven/Paper 1.21 project and complete configuration.

  2. Implement the four PDC-identified weapons, reusable abilities, cooldowns, listeners, and effects.

  3. Add admin GUI, cooldown reset, countdown commands, permissions, and safe lifecycle cleanup.

Created the complete Maven project for TURTLESMP2.

  • Paper 1.21.x / Java 21 configuration

  • PDC-based identification using turtlesmp2:turtlesmp2_weapon

  • Titan Blade, Fire Blade, Turtlemace, and Auto Bow

  • Reusable ability and cooldown systems

  • Configurable particles, sounds, damage, knockback, fire duration, and cooldowns

  • /turtlesmp2 administrator weapon GUI

  • /rc held-weapon cooldown reset

  • /turtlesmp start countdown command

  • Permissions, configuration, safe full-inventory handling, projectile handling, and cleanup

  • XSeries bundled through Maven

  • Maven output configured as TURTLESMP2.jar

Run mvn package with Java 21 to generate the final JAR.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
24 1,207
src/main/java/org/Crimsonsmp/turtlesmp2/TurtleSmp2.java
package org.Crimsonsmp.turtlesmp2;

import org.Crimsonsmp.turtlesmp2.command.ResetCooldownCommand;
import org.Crimsonsmp.turtlesmp2.command.TurtleSmp2Command;
import org.Crimsonsmp.turtlesmp2.command.TurtleSmpCommand;
import org.Crimsonsmp.turtlesmp2.ability.AbilityManager;
import org.Crimsonsmp.turtlesmp2.cooldown.CooldownManager;
import org.Crimsonsmp.turtlesmp2.gui.WeaponGUI;
import org.Crimsonsmp.turtlesmp2.listener.GUIListener;
import org.Crimsonsmp.turtlesmp2.listener.WeaponDamageListener;
import org.Crimsonsmp.turtlesmp2.listener.WeaponInteractListener;
import org.Crimsonsmp.turtlesmp2.listener.WeaponProjectileListener;
import org.Crimsonsmp.turtlesmp2.weapon.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class TurtleSmp2 extends JavaPlugin {
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private WeaponManager weaponManager;
    private TurtleSmpCommand turtleSmpCommand;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        cooldownManager = new CooldownManager(this);
        abilityManager = new AbilityManager();
        weaponManager = new WeaponManager(this, cooldownManager, abilityManager);

        Bukkit.getPluginManager().registerEvents(new WeaponInteractListener(this, weaponManager), this);
        Bukkit.getPluginManager().registerEvents(new WeaponDamageListener(this, weaponManager), this);
        Bukkit.getPluginManager().registerEvents(new WeaponProjectileListener(weaponManager), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(), this);

        TurtleSmp2Command menuCommand = new TurtleSmp2Command(this, weaponManager);
        getCommand("turtlesmp2").setExecutor(menuCommand);
        getCommand("rc").setExecutor(new ResetCooldownCommand(this, weaponManager, cooldownManager));
        turtleSmpCommand = new TurtleSmpCommand(this);
        getCommand("turtlesmp").setExecutor(turtleSmpCommand);
    }

    @Override
    public void onDisable() {
        if (turtleSmpCommand != null) {
            turtleSmpCommand.stopCountdown();
        }
        if (cooldownManager != null) {
            cooldownManager.clearAll();
        }
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}