trollfacenan

make me a skript that gives people symbols next to your nametag and when they get 50 kills they move up, first tier greensun, 2nd tier yellow sun, 3rd tier orange sun,4th tier red sun ,5th tier red warning symbol and last tier purple warning symbol and also make there be a /killtier set and also the symbols need to be on left side of nametag and right side of nametag make sure its not claimable after red warning and can you make it 10% instead of 1% and make them all warning and add a black warning tier that gives you 40 hearts can you add a /killtierblacklist and there will be 2 it will be a /killtierblacklist add and a /killtierblacklist remove and you cant make them claimable after tier 5 also make the nametag not be colored and make there be a command like /killtier applyonjoin true/false can you make the commands only useable for operators? and can you add to the blacklist /killtierblacklist add all and /killtierblacklist remove all can you make the commands only useable for operators? and can you add to the blacklist /killtierblacklist add all and /killtierblacklist remove all the tiers that i meant were 1:green , 2:yellow 3:orange 4:red 5:blue 6:purple 7: black can you make people be reset below blue warning with commands and also can you fix it making the tags be white can you make the tiers show in chat and death and kill msgs make sure commands are useable only for operators make sure you cant see the commands if your non opped can you fix it and make it 2 tags instead of 1 when you die and kill and chat and make sure the 2 tags are on my nametag

Kodari AI
KodariMar 30 at 3:39 pm 4,863 (v2)
KillTierSkript
A Skript-based kill tier system that tracks player kills and assigns warning symbols to nametags. Features 7 tiers (green, yellow, orange, red, blue, purple, black) each requiring 50 kills to advance. Symbols appear on both sides of the nametag. Includes /killtier set, /killtierblacklist add/remove commands, apply-on-join toggle, chat/kill/death message integration, and a special black tier that grants 40 hearts. All commands are operator-only.

Here’s a summary of everything included:

Tiers (every 50 kills):

Tier
Symbol
Name
1
&a⚠
Green Warning
2
&e⚠
Yellow Warning
3
&6⚠
Orange Warning
4
&c⚠
Red Warning
5
&9⚠
Blue Warning
6
&5⚠
Purple Warning
7
&0⚠
Black Warning

Features:

  • Symbols appear on both sides of the nametag (tab list + display name)

  • Nametag text is white (no color)

  • Tier symbols show in chat, kill messages, and death messages

  • Kill progress is stopped at tier 5 (can’t earn past blue naturally)

  • Black tier grants 40 hearts (80 HP)

  • /killtier set <player> <tier> — force-set tier

  • /killtier reset <player> — reset below tier 5 only

  • /killtier applyonjoin true/false — toggle nametag on join

  • /killtierblacklist add/remove <player|all> — blacklist management

  • All commands are operator-only and hidden from non-ops

trollfacenan

make it a plugin instead

Kodari AI
KodariMar 30 at 3:40 pm 13,396 (v2)

Let me read the Skript file first to understand what it does.

Now I have a full picture of the Skript. Here’s my plan:

  • KillTierPlugin — main class with managers registered

  • KillTierManager — stores tier/kills/blacklist data in data.yml, handles logic & nametag apply

  • KillTierListener — death, chat, join events

  • KillTierCommand + KillTierBlacklistCommand — command handlers

The Skript has been fully converted to a Java plugin with KillTierManager (data stored in data.yml), KillTierListener (death/chat/join events), and both commands — all behaviour is preserved 1:1 including tier symbols, 40-heart grant at tier 7, kill progression, blacklist, applyonjoin toggle, and the reset tier-5+ restriction.

trollfacenan

make the black tier have max health of 40 with the /attribute command and make the death messages more vanilla (it always says died)

Kodari AI
KodariMar 30 at 3:47 pm 7,237 (v2)

Two things to fix:

  • applyMaxHealth sets 80.0 — change to 40.0 to match /attribute base set 40

  • Death messages use hardcoded “killed”/“died” — replace player names in the vanilla death message string instead

  • Black tier max health is now 40.0 (matching /attribute base set 40) and death messages now take the vanilla message and replace player names with their tier-decorated equivalents, preserving cause text like “was slain by”, “drowned”, “fell from a high place”, etc.

trollfacenan

make only the black one 20 hearts

Kodari AI
KodariMar 30 at 3:51 pm 767 (v2)

The current code already only applies max health for tier 7 (Black), but the message incorrectly says 40 hearts — 40.0 Bukkit health = 20 hearts. Just fixing the message.

Fixed the message —40.0 Bukkit health equals 20 hearts, so the notification now correctly says “20 hearts”, and max health is already only applied for tier 7 (Black Warning).

[Generation stopped]

trollfacenan

also make the messages not colored

Kodari AI
KodariMar 30 at 3:52 pm 973 (v2)
  • Strip all \u00a7 (§) color codes from every message, prefix, tier name, tier symbol, and nametag formatting across all files

  • Keep the ⚠ symbols and plain text, just no color codes

[Generation stopped]

trollfacenan

make the tags colored but make the death messages not colored

Kodari AI
KodariMar 30 at 3:53 pm 3,799 (v2)
  • Add a getColoredTierSymbol(int tier) method to KillTierManager using legacy & color codes per tier

  • Update applyNametag, chat format, and tier-up messages to use the colored symbol

  • Keep the existing plain getTierSymbol for death messages only

Tier symbols are now colored (green/yellow/gold/red/blue/purple/dark gray per tier) in chat, nametags, tab list, and tier-up messages, while death messages continue using the plain ⚠ symbol via the unchanged getTierSymbol path.

trollfacenan

make the warning tags not be doubled when killed by a player just make it like ⚠️Player ⚠️ killed by ⚠️ player⚠️

Kodari AI
KodariMar 30 at 3:55 pm 7,557 (v2)

The issue is clear: Bukkit uses the player’s display name (already decorated with ⚠️ Name ⚠️) in the death message, and then the code does .replace(victim.getName(), vDecorated) — which finds the raw name inside the already-decorated string and wraps it again, doubling the tags.

Fix: replace the display name instead of the raw name.

Now replace() searches for the full already-decorated display name (e.g. ⚠️ Bob ⚠️) and swaps it with the same-format vDecorated/kDecorated, so the tags are never doubled.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
killtier.sk
Code
8 799
src/main/java/com/example/killtier/KillTierPlugin.java
package com.example.killtier;

import com.example.killtier.command.KillTierBlacklistCommand;
import com.example.killtier.command.KillTierCommand;
import com.example.killtier.listener.KillTierListener;
import com.example.killtier.manager.KillTierManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class KillTierPlugin extends JavaPlugin {

    @Getter
    private KillTierManager killTierManager;

    @Override
    public void onEnable() {
        killTierManager = new KillTierManager(this);
        killTierManager.load();

        getServer().getPluginManager().registerEvents(new KillTierListener(this), this);

        getCommand("killtier").setExecutor(new KillTierCommand(this));
        getCommand("killtierblacklist").setExecutor(new KillTierBlacklistCommand(this));
    }

    @Override
    public void onDisable() {
        if (killTierManager != null) {
            killTierManager.save();
        }
    }
}