Jatin

Create a plugin for me in which every player receives a wand when they join the server. The wand should be an Elemental Wand, and there should be ten different types of Elemental Wands. Please create a plugin like this for me.

Kodari AI
KodariSep 14 at 2:10 pm 1
ElementalWandSystem
This plugin grants every player an Elemental Wand upon joining the server. Ten distinct wand types exist, each themed around a different element such as fire, water, earth, air, lightning, ice, nature, shadow, light, and arcane. Each wand possesses unique right-click abilities and visual particle effects. Players receive a random elemental wand on first join, and can obtain additional wands through commands. The plugin includes a persistent data system to track player wand ownership, a crafting recipe system for each wand type, and a GUI menu for selecting and managing wands. Cooldowns and mana costs balance each elemental ability, providing engaging combat and utility gameplay.
  1. Create the Gradle project and plugin metadata.

  2. Add ten elemental wand definitions with cross-version item handling.

  3. Give each joining player a random wand and implement distinct right-click abilities.

  4. Add /elementalwand to obtain a specific element for testing or selection.

Created the ElementalWands plugin.

  • Players receive a random elemental wand when joining.

  • Added ten wand types:

    • Fire

    • Water

    • Earth

    • Air

    • Lightning

    • Ice

    • Nature

    • Shadow

    • Light

    • Arcane

  • Each wand has a unique right-click ability and cooldown.

  • Added /elementalwand <element|random> with tab completion.

  • Added configurable join behavior and cooldown in config.yml.

  • Included Paper metadata, Gradle setup, XSeries compatibility, and permissions.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 428
src/main/java/com/kodari/elementalwands/ElementalWandsPlugin.java
package com.kodari.elementalwands;

import org.bukkit.plugin.java.JavaPlugin;

public final class ElementalWandsPlugin extends JavaPlugin {

    private WandManager wandManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.wandManager = new WandManager(this);
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new WandInteractionListener(this), this);

        ElementalWandCommand command = new ElementalWandCommand(this);
        getCommand("elementalwand").setExecutor(command);
        getCommand("elementalwand").setTabCompleter(command);
    }

    public WandManager getWandManager() {
        return wandManager;
    }
}