Kuba Yokim

skript pod komenda /zmiennick i wpisujesz jaki chcesz miec nick i zmienia nick na ktory wpiszesz widac ten tick nad glawa na tab na czacie a komecna /resetujnick resetuje nick do twojego domyslengo nicku

Kodari AI
KodariNov 14 at 9:40 pm 1
NickChanger
Skript plugin allowing players to change their display name via /zmiennick command. Players type the desired nickname, which updates their name tag above head, tab list, and chat messages. The /resetujnick command restores the original default username. Includes permission checks and nickname validation to prevent inappropriate or overly long names.

Utwórz nick.sk i wgraj do plugins/Skript/scripts/. Skript bez dodatku nie zmienia nicku nad głową gracza, ale poniższy skrypt ustawia go na czacie i w tabliście.

Po dod użyaniuj /sk reload nick.

Kodari can make mistakes. Review important code before using.
Files
nick.sk
Code
1 27
nick.sk
options:
    prefix: &6[Nick]&r

command /zmiennick <text>:
    trigger:
        set {nick::%uuid of player%} to arg-1
        set player's display name to arg-1
        set player's tab list name to arg-1
        send "{@prefix} Ustawiono nick na &e%arg-1%&r." to player

command /resetujnick:
    trigger:
        delete {nick::%uuid of player%}
        set player's display name to name of player
        set player's tab list name to name of player
        send "{@prefix} Przywrócono domyślny nick." to player

on join:
    if {nick::%uuid of player%} is set:
        set player's display name to {nick::%uuid of player%}
        set player's tab list name to {nick::%uuid of player%}

on chat:
    if {nick::%uuid of player%} is set:
        set chat format to "%{nick::%uuid of player%}%&7: &f%message%"
    else:
        set chat format to "%player%&7: &f%message%"