shakiraishim

make a script for DeluxeCombat so the combat countdown is only numbers and the chat notification is off

Kodari AI
KodariApr 10 at 3:02 pm 4,808 (v2)

I’ll create a DeluxeCombat script plugin that customizes the combat countdown display.

DeluxeCombatScript
A custom script plugin for DeluxeCombat that modifies combat countdown behavior. Displays only numeric countdown without chat notifications. Integrates seamlessly with DeluxeCombat's API to provide clean, minimalist combat timer display. Automatically registers with DeluxeCombat on server startup and applies custom formatting to all combat tag events.

Let me read the complete DeluxeCombat documentation and create a script that customizes the combat countdown display.

DeluxeCombatScript
A custom script plugin for DeluxeCombat that modifies combat countdown behavior. Displays only numeric countdown without chat notifications. Integrates seamlessly with DeluxeCombat's API to provide clean, minimalist combat timer display. Automatically registers with DeluxeCombat on server startup and applies custom formatting to all combat tag events.

Plugin created! This script displays a clean numeric countdown for DeluxeCombat. Configure the display type and format in config.yml, and disable DeluxeCombat’s default chat messages in its own config for a fully minimalist experience.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.txt
Code
9 321
src/main/java/com/deluxecombatscript/DeluxeCombatScript.java
package com.deluxecombatscript;

import lombok.Getter;
import nl.marido.deluxecombat.api.DeluxeCombatAPI;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DeluxeCombatScript extends JavaPlugin {

    private DeluxeCombatAPI deluxeCombatAPI;
    private TimerManager timerManager;
    private ConfigManager configManager;

    @Override
    public void onEnable() {
        this.deluxeCombatAPI = new DeluxeCombatAPI();
        this.configManager = new ConfigManager(this);
        this.timerManager = new TimerManager(this);

        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getCommand("dcscript").setExecutor(new ReloadCommand(this));

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

    @Override
    public void onDisable() {
        if (timerManager != null) {
            timerManager.cancelAll();
        }
        getLogger().info("DeluxeCombatScript has been disabled!");
    }
}