barquees

a simple dupe plugin that once done /dupe itll duplicate any item in your hand. If you do /dupe and then any number up 10 it will duplicate the item that many times. but the texts for after u do the commands will have a blue and bold [UltraDupes] (then the text).

Kodari AI
KodariSep 16 at 9:00 am 1
UltraDupes
UltraDupes is a Minecraft plugin that allows players to duplicate the item held in their hand. Executing /dupe duplicates the item once, while /dupe <amount> duplicates it up to 10 times. All command feedback is prefixed with a bold, blue [UltraDupes] tag for clear, stylish messaging. The plugin validates player inventory space and item existence, providing friendly error messages when duplication fails.
  1. Create the Gradle project and plugin metadata.

  2. Add the /dupe [1-10] command with inventory overflow handling and formatted messages.

Created the UltraDupes plugin.

  • /dupe duplicates the item in the player’s main hand once.

  • /dupe <1-10> duplicates it the specified number of times.

  • Invalid amounts and empty hands show messages.

  • All messages use a blue, bold [UltraDupes] prefix.

  • Non-player command usage is handled safely.

barquees

and if you do /dupedrop Enable itll make it drop like it normally does and if you do /dupedrop Disable itll make it just dupe in your hotbar

Kodari AI
KodariSep 16 at 9:04 am 1
  1. Add /dupedrop Enable|Disable to toggle whether duplicates are dropped naturally or placed into the player’s inventory/hotbar.

  2. Persist the setting during runtime and update /dupe behavior and messages.

Added /dupedrop <Enable|Disable>.

  • /dupedrop Enable — duplicated items drop normally.

  • /dupedrop Disable — duplicated items are added to your inventory/hotbar instead.

  • Setting is tracked separately for each player.

  • Default behavior remains normal item drops.

  • All feedback uses the blue, bold [UltraDupes] prefix.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 184
src/main/java/com/ultradupes/UltraDupesPlugin.java
package com.ultradupes;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

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

public final class UltraDupesPlugin extends JavaPlugin {

    private final Map<UUID, Boolean> dropSettings = new HashMap<>();

    @Override
    public void onEnable() {
        PluginCommand dupeCommand = getCommand("dupe");
        if (dupeCommand != null) {
            dupeCommand.setExecutor(new DupeCommand(this));
        }

        PluginCommand dupeDropCommand = getCommand("dupedrop");
        if (dupeDropCommand != null) {
            dupeDropCommand.setExecutor(new DupeDropCommand(this));
        }
    }

    public boolean shouldDrop(UUID playerId) {
        return dropSettings.getOrDefault(playerId, true);
    }

    public void setShouldDrop(UUID playerId, boolean shouldDrop) {
        dropSettings.put(playerId, shouldDrop);
    }
}