Wizard Ness

Create a plugin named SkrtEnchantments , where players can do /enchanter which opens an gui including 5 Enchantments teir , Common, Uncommon , Epic , Legendary, Mythic , every enchantment tier cost different exp to buy enchantments, instead of giving random custom enchantments players can choose which Enchantments To Buy , Like Double Damage , Vampire , Lifesteal and 20+ enchantments on every single tier

Kodari AI
KodariSep 4 at 5:39 am 9
SkrtEnchantments
A GUI-based enchantment shop plugin where players use /enchanter to open a tiered menu (Common, Uncommon, Epic, Legendary, Mythic). Each tier costs different experience levels to purchase enchantments. Players browse and select from 20+ custom enchantments per tier including Double Damage, Vampire, and Lifesteal. The plugin features a centralized GUI manager, button-based inventory system, and configurable experience costs for each enchantment tier.
  • Create the Paper plugin build and command registration.

  • Build tier and enchantment data with 21 selectable enchantments in each of the five tiers.

  • Add inventory menus, item persistence, XP purchasing, and combat effect handling.

Created SkrtEnchantments with:

  • /enchanter GUI featuring Common, Uncommon, Epic, Legendary, and Mythic tiers.

  • Unique XP-level costs per tier: 5, 12, 25, 45, and 75.

  • 21 player-selectable enchantments per tier, including Double Damage, Vampire, Lifesteal, Executioner, Poison, Frost, Phoenix, and more.

  • Enchantments apply to the held item, persist through item data, and appear in item lore.

  • Combat effects for weapon and armor enchantments, including damage boosts, healing, potion effects, defensive effects, dodge chance, knockback, and fatal-hit protection.

Wizard Ness

The plugin will support Paper/Purpur , Minecraft Version - 1.21.11 - 1.8.8

Kodari AI
KodariSep 4 at 5:42 am 7
  1. Compile the shared plugin against the 1.8.8 API with Java 8 bytecode and remove the modern-only descriptor requirement.

  2. Replace newer Bukkit and Java language APIs with legacy-safe item, storage, and combat handling so the same jar loads on Paper/Purpur through 1.21.1.

  1. Added a Java 8 / Spigot 1.8.8 compatibility baseline, allowing the jar to load on Paper and Purpur through modern releases.

  2. Removed 1.20-only APIs: PDC storage now uses hidden lore data, held-item access uses legacy-safe APIs, health checks use getMaxHealth(), and the plugin descriptor no longer blocks legacy servers.

  3. Converted Java 16+/17+ syntax and List.of() calls to Java 8-compatible code.

Wizard Ness

Compile everything and give download file jar

Kodari AI
KodariSep 4 at 5:44 am 1

The project is set up for automatic compilation verification. I can’t generate or attach a downloadable JAR from this environment because Gradle/Maven build tools and artifact export aren’t available here.

Build it locally with:

Shell
./gradlew build

Your compiled plugin will be at:

Plain Text
build/libs/SkrtEnchantments-1.0.0.jar

Place that JAR in your Paper/Purpur server’s plugins folder.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 651
src/main/java/com/skrt/enchantments/SkrtEnchantmentsPlugin.java
package com.skrt.enchantments;

import com.skrt.enchantments.command.EnchanterCommand;
import com.skrt.enchantments.enchant.EnchantmentListener;
import com.skrt.enchantments.enchant.EnchantmentService;
import com.skrt.enchantments.menu.EnchanterMenuListener;
import com.skrt.enchantments.menu.EnchanterMenuService;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class SkrtEnchantmentsPlugin extends JavaPlugin {
    private EnchanterMenuService menuService;

    @Override
    public void onEnable() {
        EnchantmentService enchantmentService = new EnchantmentService(this);
        this.menuService = new EnchanterMenuService(this, enchantmentService);

        getServer().getPluginManager().registerEvents(new EnchanterMenuListener(menuService), this);
        getServer().getPluginManager().registerEvents(new EnchantmentListener(enchantmentService), this);

        PluginCommand command = getCommand("enchanter");
        if (command != null) {
            command.setExecutor(new EnchanterCommand(menuService));
        }
    }

    public EnchanterMenuService getMenuService() {
        return menuService;
    }
}