A

add doomsday where admin start doomsday where anyone dies perm ban and the person killing in that period get 30 points and if we kill a team leader in doomsday then we get 50 points and doomsday end and add leaderboard of point in this plugin

Kodari AI
KodariFeb 27 at 2:06 am 21,218 (v2)

I’ll add the doomsday feature with points tracking and a leaderboard. Let me first examine the existing code structure.

I’ll implement the doomsday feature with points tracking and leaderboard.

Plan:

  • Add points field to PlayerData

  • Create DoomsdayManager to track active state

  • Update PlayerDeathListener to handle doomsday logic (permanent ban, point rewards, leader kill ends doomsday)

  • Create DoomsdayCommand for admin control

  • Create LeaderboardCommand to display points

  • Update config with doomsday messages

Doomsday feature implemented with points tracking and leaderboard. Players who die during doomsday are permanently banned, killers get 30 points (50 for team leader kills which also ends doomsday), and the /leaderboard command displays top 10 players by points.

A

give me commands of doomsday and add special sound effect when a player die

Kodari AI
KodariFeb 27 at 2:07 am 10,657 (v2)

I’ll read the relevant files to understand the current implementation and then add the requested features.

Now I’ll:

  1. Add sound effect configuration to config.yml

  2. Add death sound effect to PlayerDeathListener

Doomsday Commands

/doomsday start

  • Permission: hardcoreteams.admin

  • Description: Starts the Doomsday event where:

    • Anyone who dies is permanently banned

    • Killing a player awards 30 points

    • Killing a team leader awards 50 points AND ends Doomsday

    • Plays a dramatic sound effect to all online players

/doomsday end

  • Permission: hardcoreteams.admin

  • Description: Manually ends the Doomsday event

Sound Effects Added

  • Player Death Sound: Plays at the death location when any player dies (configurable: sounds.player-death in config.yml)

  • Doomsday Start Sound: Plays to all online players when Doomsday begins (configurable: sounds.doomsday-start)

  • Team Eliminated Sound: Already existed, now configurable via sounds.team-eliminated in config.yml

All sounds use XSeries for cross-version compatibility (1.8-1.21+).

A

add glow to team leader and when team disband then remove the glow

Kodari AI
KodariFeb 27 at 2:42 am 12,050 (v2)

I’ll add glow effects to team leaders and remove them when teams disband. Let me first check the existing code structure.

I’ll add glow effects to team leaders and remove them when teams disband or leadership changes.

Now I need to ensure that when players join the server, their glow status is restored if they’re a team leader:

Glow effect added to team leaders and removed when teams disband or leadership changes.

A

if doomsday not activated them every kill +3 points and death -3 points and also a command /team teamname points which can be used to see our team points and other team points and also when doomsday activated or end make a announce on screen

Kodari AI
KodariFeb 27 at 3:55 am 10,430 (v2)

I’ll add the kill/death point system, the points command, and doomsday announcements. Let me read the relevant files first.

Now I’ll implement the features:

Analysis

  • Add +3/-3 points for kills/deaths when doomsday is inactive

  • Add /team points <teamname> command to view team points

  • Add title announcements for doomsday start/end

All changes implemented:

  • Non-doomsday kills now give +3 points to killer’s team and -3 to victim’s team

  • Added /team points <teamname> command to check any team’s points

  • Doomsday start/end now shows title announcements to all players on screen

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
21 2,418
src/main/java/com/hardcoreteams/HardcoreTeams.java
package com.hardcoreteams;

import com.hardcoreteams.commands.DoomsdayCommand;
import com.hardcoreteams.commands.EggHuntCommand;
import com.hardcoreteams.commands.LeaderboardCommand;
import com.hardcoreteams.commands.TeamAdminCommand;
import com.hardcoreteams.commands.TeamCommand;
import com.hardcoreteams.listeners.EggHuntListener;
import com.hardcoreteams.listeners.PlayerDeathListener;
import com.hardcoreteams.listeners.PlayerJoinListener;
import com.hardcoreteams.listeners.PlayerRespawnListener;
import com.hardcoreteams.managers.ConfigManager;
import com.hardcoreteams.managers.DoomsdayManager;
import com.hardcoreteams.managers.EggHuntManager;
import com.hardcoreteams.managers.PlayerDataManager;
import com.hardcoreteams.managers.TeamManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class HardcoreTeams extends JavaPlugin {

    private ConfigManager configManager;
    private TeamManager teamManager;
    private PlayerDataManager playerDataManager;
    private EggHuntManager eggHuntManager;
    private DoomsdayManager doomsdayManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.teamManager = new TeamManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.eggHuntManager = new EggHuntManager(this);
        this.doomsdayManager = new DoomsdayManager(this);

        configManager.loadConfig();
        teamManager.loadTeams();
        playerDataManager.loadData();

        registerCommands();
        registerListeners();

        getLogger().info("HardcoreTeams has been enabled!");
    }

    @Override
    public void onDisable() {
        if (eggHuntManager != null) {
            eggHuntManager.cleanup();
        }
        if (teamManager != null) {
            teamManager.saveTeams();
        }
        if (playerDataManager != null) {
            playerDataManager.saveData();
        }

        getLogger().info("HardcoreTeams has been disabled!");
    }

    private void registerCommands() {
        getCommand("team").setExecutor(new TeamCommand(this));
        getCommand("teamadmin").setExecutor(new TeamAdminCommand(this));
        EggHuntCommand eggHuntCommand = new EggHuntCommand(this);
        getCommand("egghunt").setExecutor(eggHuntCommand);
        getCommand("egghunt").setTabCompleter(eggHuntCommand);
        getCommand("doomsday").setExecutor(new DoomsdayCommand(this));
        getCommand("leaderboard").setExecutor(new LeaderboardCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerRespawnListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new EggHuntListener(this), this);
    }
}