mega_kn1ght_

can you makea plugin named Hunter's mark it enables the locator bar and it announces Hunter mark started for 30 minutes and after 5 seconds of that announcement it does [TargetName] Get your specific target kill them to gain a heart and after killing your target it gives you a new target

Kodari AI
KodariAug 30 at 9:15 am 1
HuntersMark
HuntersMark is a PvP minigame plugin that assigns each player a random target. Upon game start, a global announcement declares "Hunter's Mark started" for 30 minutes. Five seconds later, each player receives a private message revealing their specific target name. The plugin enables the vanilla boss bar locator to track the target's location. Killing your assigned target grants you an extra heart and immediately assigns a new target. The cycle continues until the 30-minute timer expires, with the plugin managing target assignments, heart rewards, and boss bar tracking throughout the session.
  1. Create the Paper plugin build and metadata.

  2. Add the Hunter’s Mark game manager with timed rounds, target assignment, kill rewards, and target replacement.

  3. Add locator-bar integration with a compass fallback for servers without the locator-bar API.

Created Hunter’s Mark.

  • Starts automatically when the plugin enables.

  • Announces: “Hunter’s Mark has started for 30 minutes!”

  • Assigns targets after 5 seconds.

  • Enables and uses the locator bar when available, with a compass fallback.

  • Killing your assigned target grants one additional heart.

  • Automatically assigns a new target after a successful kill.

  • Handles players joining, leaving, and the round ending.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 322
src/main/java/com/example/huntersmark/HuntersMarkPlugin.java
package com.example.huntersmark;

import org.bukkit.plugin.java.JavaPlugin;

public final class HuntersMarkPlugin extends JavaPlugin {
    private HunterMarkManager hunterMarkManager;

    @Override
    public void onEnable() {
        hunterMarkManager = new HunterMarkManager(this);
        getServer().getPluginManager().registerEvents(hunterMarkManager, this);
        hunterMarkManager.startRound();
    }

    @Override
    public void onDisable() {
        if (hunterMarkManager != null) {
            hunterMarkManager.stopRound(false);
        }
    }
}