__1.rishabh.1.

Element SMP, where every player will have a unique element.

Kodari AI
KodariSep 15 at 5:22 pm 1
ElementSMP
ElementSMP is a Minecraft plugin that assigns each player a unique elemental power (Fire, Water, Earth, Air, Lightning, Ice, Nature, or Shadow) upon first join. Players unlock and upgrade abilities through leveling, with each element featuring distinct offensive, defensive, and utility skills. The plugin includes a GUI-based element selection menu, cooldown management, particle effects for visual feedback, and configurable XP progression. Element-specific combat bonuses and weaknesses create strategic rock-paper-scissors dynamics between players. Admins can reassign elements, configure ability parameters, and manage player data through intuitive commands.

I’ll create the Element SMP foundation with automatic per-player element assignment, persistent storage, passive abilities, admin reassignment, and /element commands.

Created the Element SMP foundation:

  • Automatic element assignment for every player, balanced across six elements:

    • Fire, Water, Earth, Air, Light, Shadow

  • Persistent player data stored in players.yml

  • Passive abilities:

    • Fire: fire and lava immunity

    • Water: water breathing

    • Earth: haste

    • Air: speed

    • Light: night vision

    • Shadow: jump boost

  • Commands:

    • /element

    • /element info [player]

    • /element list

    • /element set <player> <element> for admins

  • Added tab completion, configuration messages, Paper setup, and XSeries support.

__1.rishabh.1.

Make it gave every player an element on first join not on second join

Kodari AI
KodariSep 15 at 5:24 pm 1
  1. Assign the element during the login flow so it exists before the first join event.

  2. Apply the passive immediately on that first join instead of waiting for the repeating task.

Updated ElementListener so:

  • Every player receives an element during the login process, before their first join event.

  • The element is still safely checked on join.

  • Passive abilities are applied immediately on the first join instead of waiting for the repeating task.

__1.rishabh.1.

Download link

Kodari AI
KodariSep 15 at 5:24 pm 1

There isn’t a hosted download link available yet. The ElementSMP source is in the project files, but no compiled .jar has been generated.

Build it with:

Shell
./gradlew build

The plugin JAR will be created at:

Plain Text
build/libs/ElementSMP.jar

Then place it in your server’s plugins folder and restart the server.

__1.rishabh.1.

How can I download it ?

Kodari AI
KodariSep 15 at 5:25 pm 1

There is no direct download link yet because the plugin hasn’t been compiled into a .jar.

To download/use it:

  1. Download or export the project files from this workspace.

  2. Open a terminal in the project folder.

  3. Run:

Shell
./gradlew build

On Windows, use:

Shell
gradlew.bat build
  1. Find the compiled plugin here:

Plain Text
build/libs/ElementSMP.jar
  1. Copy ElementSMP.jar into your Minecraft server’s plugins folder and restart the server.

If your workspace has a Download, Export, or Download project button, use that to obtain the source files first.

__1.rishabh.1.

Make it .jar and give me download link

Kodari AI
KodariSep 15 at 5:28 pm 1

I can’t compile or host a .jar download link directly from this chat. The project source is ready, so build it locally:

Linux/macOS

Shell
./gradlew build

Windows

Shell
gradlew.bat build

The finished plugin will be located at:

Plain Text
build/libs/ElementSMP.jar

Copy that file into your Minecraft server’s plugins folder. To get a public download link, upload the generated JAR to GitHub Releases, Google Drive, or another file-hosting service.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 448
src/main/java/com/kodari/elementsmp/ElementSMP.java
package com.kodari.elementsmp;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class ElementSMP extends JavaPlugin {

    private ElementManager elementManager;
    private ElementListener elementListener;

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

        elementManager = new ElementManager(this);
        elementListener = new ElementListener(this, elementManager);
        getServer().getPluginManager().registerEvents(elementListener, this);

        ElementCommand elementCommand = new ElementCommand(this, elementManager);
        getCommand("element").setExecutor(elementCommand);
        getCommand("element").setTabCompleter(elementCommand);

        getServer().getScheduler().runTaskTimer(this, () ->
                Bukkit.getOnlinePlayers().forEach(elementListener::applyPassive), 0L, 200L);
    }

    @Override
    public void onDisable() {
        if (elementManager != null) {
            elementManager.save();
        }
    }
}