zzkiko19

create a plugin for enchantment copy and paste and author should be kiko and the plugin should be like the player should be able to use it in game with command ecopy and epaste for copy one item or tools enchantment to other but for operators only not all players should be using it

zzkiko19

create a plugin for enchantment copy and paste and author should be kiko and the plugin should be like the player should be able to use it in game with command ecopy and epaste for copy one item or tools enchantment to other but for operators only not all players should be using it

zzkiko19

EnchantCopyPaste Plugin for Paper 1.21.x

This plugin allows players with the enchantcopy.admin permission (or OPs) to copy, cut, and paste enchantments between items using simple commands.

Features

/ecopy: Copies enchantments from the item in your main hand to your personal clipboard.

/ecut: Copies enchantments to your clipboard and removes them from the item in your hand.

/epaste: Applies the copied enchantments to the item in your main hand.

Technical Details

Version: 1.0.0

API Target: Paper 1.21.1+ (Java 21)

Permission Node: enchantcopy.admin (Default: OP)

Installation

Compile the project using Maven: mvn clean package.

Drop the generated .jar file into your server's plugins folder.

Restart the server or load with a plugin manager.

Kodari AI
KodariMar 18 at 4:45 pm 9,384 (v2)

I’ll create a comprehensive enchantment copy/paste plugin for Paper 1.21.x with clipboard management and three commands.

EnchantCopyPaste
A Paper plugin that allows administrators to copy, cut, and paste enchantments between items. Players with the enchantcopy.admin permission can use /ecopy to copy enchantments to their personal clipboard, /ecut to copy and remove enchantments, and /epaste to apply stored enchantments to any item. Supports all vanilla and custom enchantments with unsafe enchantment application for maximum flexibility.

Plugin created! All three commands are implemented with a centralized clipboard manager that stores enchantments per player.

Features implemented:

  • /ecopy copies all enchantments from held item to personal clipboard

  • /ecut copies enchantments and removes them from the item

  • /epaste applies clipboard enchantments to held item (uses unsafe enchanting for flexibility)

  • Permission enchantcopy.admin required (defaults to OP)

  • Color-coded feedback messages showing which enchantments were processed

  • Proper validation for empty hands, missing enchantments, and empty clipboards

The plugin uses Paper 1.21.1 API with Java 21 and stores enchantments in memory per player UUID.

zzkiko19

and owner author or creator of plugin is Kiko

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 336
src/main/java/com/example/enchantcopypaste/EnchantCopyPaste.java
package com.example.enchantcopypaste;

import com.example.enchantcopypaste.command.CopyCommand;
import com.example.enchantcopypaste.command.CutCommand;
import com.example.enchantcopypaste.command.PasteCommand;
import com.example.enchantcopypaste.manager.ClipboardManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class EnchantCopyPaste extends JavaPlugin {
    private ClipboardManager clipboardManager;

    @Override
    public void onEnable() {
        this.clipboardManager = new ClipboardManager();

        getCommand("ecopy").setExecutor(new CopyCommand(this));
        getCommand("ecut").setExecutor(new CutCommand(this));
        getCommand("epaste").setExecutor(new PasteCommand(this));

        getLogger().info("EnchantCopyPaste has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("EnchantCopyPaste has been disabled!");
    }
}