Himel

⚔️ Combat Tag — 15-second combat timer. 🚫 No /home while in combat. 🚫 No /tpa while in combat. 🚫 No /rtp while in combat. 🚫 No /spawn while in combat. 💀 Combat Logout — leaving during combat causes death. 🔄 Combat timer resets whenever you fight. 📢 Small purple messages using &d. 🛡️ Combat ends automatically after the timer reaches 0. 🔔 Action-bar countdown showing remaining combat time.

Kodari AI
KodariSep 29 at 1:42 am 1
CombatGuard
A Minecraft plugin that implements a 15-second combat tag system. When a player attacks or is attacked, they enter combat mode with a visible action-bar countdown. While tagged, players cannot use /home, /tpa, /rtp, or /spawn commands. The timer resets with each new combat interaction. If a player logs out during combat, they die as a penalty. Combat ends automatically when the timer expires, with small purple (&d) chat messages notifying players of combat start, reset, and end states.
  1. Create the Gradle project and plugin metadata.

  2. Add a 15-second combat manager with action-bar countdown and logout death handling.

  3. Register combat tagging and block /home, /tpa, /rtp, and /spawn during combat.

Created the CombatTag plugin with a 15-second combat timer, action-bar countdown, combat logout death, and blocks for /home, /tpa, /rtp, and /spawn while tagged. Hits from players and player-fired projectiles tag both combatants.

Himel

How to download

Kodari AI
KodariSep 29 at 1:44 am 1

Download the project as a ZIP using the editor’s Download or Export option. To make the server-ready plugin JAR, unzip it and run ./gradlew build (Windows: gradlew.bat build). The JAR will be in build/libs/; put it in your server’s plugins folder and restart the server.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 195
src/main/java/com/kodari/combattag/CombatTagPlugin.java
package com.kodari.combattag;

import org.bukkit.plugin.java.JavaPlugin;

public final class CombatTagPlugin extends JavaPlugin {
    private CombatManager combatManager;

    @Override
    public void onEnable() {
        combatManager = new CombatManager(this);
        getServer().getPluginManager().registerEvents(new CombatListener(combatManager), this);
    }

    @Override
    public void onDisable() {
        if (combatManager != null) {
            combatManager.shutdown();
        }
    }
}