D

make me a plugin for bedwars1058 25.2 like hypixel team selector which have a wool or any items of my cchoice as a team selector in game also if a player is in party and join a map they should not join a team automatically instead the team leader joined will auto place those members of party on that team also if a players have not slected any team it shoud put them those non selected players in same teams make sure it should work properly in any arean no matter it is solo duo trio or squad or any and give me final compile addon plugin of it in jar

D

what happened just finalize everything and give me final plugin jar of it

Kodari AI
KodariJun 19 at 4:14 am 1

I don’t have any previous conversation context about a plugin — this appears to be the start of our session, so I’m not sure what “finalize everything” refers to.

A few things to clarify:

  1. What plugin? — Could you describe the plugin you want built, or paste the previous conversation/requirements?

  2. I can’t compile JARs directly — I write the full plugin source code (all Java files, plugin.yml, build.gradle, etc.), but the actual .jar compilation happens on your machine or build server. You’d run:

    Plain Text
    ./gradlew build
    

    and the jar appears in build/libs/.

Tell me what you want built (or re-paste the requirements) and I’ll generate the complete, ready-to-compile plugin code right away.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 850
src/main/java/com/kodari/bwteamselector/TeamSelectorAddon.java
package com.kodari.bwteamselector;

import com.andrei1058.bedwars.api.BedWars;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public class TeamSelectorAddon extends JavaPlugin {

    private static TeamSelectorAddon instance;

    private BedWars             bwApi;
    private TeamSelectorConfig  cfg;
    private TeamSelectorManager manager;

    @Override
    public void onEnable() {
        instance = this;

        RegisteredServiceProvider<BedWars> reg =
                Bukkit.getServicesManager().getRegistration(BedWars.class);

        if (reg == null) {
            getLogger().severe("BedWars1058 was not found! Disabling BwTeamSelector.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        bwApi   = reg.getProvider();
        saveDefaultConfig();
        cfg     = new TeamSelectorConfig(this);
        manager = new TeamSelectorManager(this);

        Bukkit.getPluginManager().registerEvents(new TeamSelectorListener(this), this);

        getLogger().info("BwTeamSelector enabled — Hypixel-style team selector active.");
    }

    @Override
    public void onDisable() {
        if (manager != null) manager.cleanup();
    }

    public static TeamSelectorAddon getInstance() {
        return instance;
    }

    public BedWars getBwApi() {
        return bwApi;
    }

    public TeamSelectorConfig getCfg() {
        return cfg;
    }

    public TeamSelectorManager getManager() {
        return manager;
    }
}