atanasov543

Make minecraft plugin that when one player kills another one , and the killed player has no armor to send to all players that have op and to console a message saying "Player has killed player_victim that has been naked."

Kodari AI
KodariApr 19 at 12:58 pm 4,036 (v2)

I’ll create a plugin that notifies operators when a player kills another player who isn’t wearing any armor.

NakedKillNotifier
A lightweight PvP monitoring plugin that alerts server operators and console when a player kills another player who is not wearing any armor. Useful for tracking unfair kills or monitoring naked player deaths on PvP servers. Features customizable messages and automatic armor detection across all Minecraft versions.

Plugin created! This monitors PvP deaths and alerts operators when a player kills another player who isn’t wearing any armor. The message is configurable and can be toggled on/off in the config.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 120
src/main/java/com/nakedkill/notifier/NakedKillNotifier.java
package com.nakedkill.notifier;

import com.nakedkill.notifier.listener.DeathListener;
import org.bukkit.plugin.java.JavaPlugin;

public class NakedKillNotifier extends JavaPlugin {

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        
        getLogger().info("NakedKillNotifier has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("NakedKillNotifier has been disabled!");
    }
}