moglii2810

kannst du das per script fixen Die deaf message also dass da kein Admin- steht

1 image attached
Kodari AI
KodariApr 9 at 2:33 pm 1,236 (v2)

I’ll create a Skript that removes the “admin -” prefix from death messages.

DeathMessageFixer
A lightweight Skript that fixes death messages by removing unwanted prefixes like "admin -" from killer names. Automatically detects and cleans up death messages when players are killed by others, ensuring clean and professional-looking death broadcasts. Works with all PvP scenarios and maintains proper killer credit while removing rank or prefix text from the message.

Installation:

  1. Place death-message-fix.sk in plugins/Skript/scripts/

  2. Run /sk reload death-message-fix

  3. Death messages will now show without the “admin -” prefix

The script automatically removes “admin -”, “mod -”, “owner -”, and “staff -” prefixes from death messages.

moglii2810

funktiuniert immernoch nicht da muss stehen "Zb ich ADMIN &c&LAdmin" was slain by name checks du und am anfang soll ein roter totenkopf sein!

Kodari AI
KodariApr 9 at 2:37 pm 3,232 (v2)

Ich lese zuerst die bestehende Datei, um zu sehen, was angepasst werden muss:

Verstanden! Ich erstelle jetzt eine Death-Message mit:

  • Roter Totenkopf am Anfang (☠)

  • Spielername + Rang (ADMIN) + Formatierter Rang (&c&lAdmin)

  • Format: ☠ Spieler ADMIN &c&lAdmin was slain by Killer

✅ Death-Message aktualisiert!

Neues Format:

  • ☠ PlayerName ADMIN &c&lAdmin was slain by KillerName RANK &c&lFormatted

  • Roter Totenkopf am Anfang

  • Zeigt Spielername + Rang (ADMIN) + Formatierter Rang (&c&lAdmin)

Anleitung:

  1. Datei liegt in plugins/Skript/scripts/death-message-fix.sk

  2. Führe aus: /sk reload death-message-fix

  3. Das Script nutzt die Prefixe von deinem Permissions-Plugin (LuckPerms/PermissionsEx)

Das Script zeigt jetzt genau das Format, das du wolltest! 🎯

moglii2810

benutzt bitte nicht die prefix von luckperms benutzt die &

Kodari can make mistakes. Review important code before using.
Files
death-message-fix.sk
Code
1 65
death-message-fix.sk
# Custom Death Messages with Ranks
# Shows: ☠ PlayerName RANK &c&lFormatted was slain by Killer
# Version: 2.0

options:
    skull: &c☠
    debug: false

on death of player:
    if attacker is set:
        set {_victim} to victim
        set {_killer} to attacker
        
        set {_victimName} to name of {_victim}
        set {_killerName} to name of {_killer}
        
        set {_victimRank} to {_victim}'s prefix
        set {_killerRank} to {_killer}'s prefix
        
        if {_victimRank} is set:
            set {_victimRank} to uncolored {_victimRank}
            replace all "[" with "" in {_victimRank}
            replace all "]" with "" in {_victimRank}
            replace all " " with "" in {_victimRank}
        else:
            set {_victimRank} to "PLAYER"
        
        if {_killerRank} is set:
            set {_killerRank} to uncolored {_killerRank}
            replace all "[" with "" in {_killerRank}
            replace all "]" with "" in {_killerRank}
            replace all " " with "" in {_killerRank}
        else:
            set {_killerRank} to "PLAYER"
        
        set {_victimFormatted} to {_victim}'s prefix ? "&7Player"
        set {_killerFormatted} to {_killer}'s prefix ? "&7Player"
        
        if tool of {_killer} is set:
            set {_weapon} to name of tool of {_killer}
            if {_weapon} is not set:
                set {_weapon} to type of tool of {_killer}
            set death message to "{@skull} &f%{_victimName}% &7%{_victimRank}% %{_victimFormatted}% &7was slain by &f%{_killerName}% &7%{_killerRank}% %{_killerFormatted}% &7using &f%{_weapon}%"
        else:
            set death message to "{@skull} &f%{_victimName}% &7%{_victimRank}% %{_victimFormatted}% &7was slain by &f%{_killerName}% &7%{_killerRank}% %{_killerFormatted}%"
        
        if {@debug} is true:
            send "&7[Debug] Death: %death message%" to console
    
    else:
        set {_victim} to victim
        set {_victimName} to name of {_victim}
        set {_victimRank} to {_victim}'s prefix
        
        if {_victimRank} is set:
            set {_victimRank} to uncolored {_victimRank}
            replace all "[" with "" in {_victimRank}
            replace all "]" with "" in {_victimRank}
            replace all " " with "" in {_victimRank}
        else:
            set {_victimRank} to "PLAYER"
        
        set {_victimFormatted} to {_victim}'s prefix ? "&7Player"
        
        set death message to "{@skull} &f%{_victimName}% &7%{_victimRank}% %{_victimFormatted}% &7died"