Nickname

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

TullyMastully

Member
Aug 9, 2017
38
0
0
33
Category: Skript, Nickname.

Suggested name: NickName

What I want:
I want and need a Nickname skript, By doing /nick it will change your name in tab, name in chat, display name etc.
If you're already nicked, Do /nick to unnick yourself.
Ideas for commands: /nick

Ideas for permissions: The permission for it will be : tullycore.nickname

When I'd like it by: A reasonable time
 
code_language.skript:
commnad /nick [<text>]:
    trigger:
        if arg-1 is set:
            set player's displayname to "%player's prefix% %arg-1%"
            
            
            
on chat:
    set message format to "%player's displayname% %message%"
 
This covers everything but the overhead nametag, Since I don't know you version or what plugins/addons you have that's a bit harder to guess, but this set's a players tablist name and display name for chat. If you want to format them just add color codes before the percents in the parenthesis. If you want the player to be able to decide color, change arg 1 to colored arg 1
code_language.skript:
command /testnick [<text>]:
    permission: nick.use
    trigger:
        if {is-nicked.%player%} is not set:
            set {is-nicked.%player%} to false
        if arg 1 is not set:
            if {is-nicked.%player%} is true:
                set player's display name to "%player's name%"
                set the player's tablist name to "%player's name%"
                send "Your nick was reset!"
                set {is-nicked.%player%} to false
            else:
                send "You are not nicked. Use /nick <text>"
            stop
        else:
            set player's display name to "%arg 1%"
            set the player's tablist name to "%arg 1%"
            send "Changed your nickname to ""%arg 1%"""
            set {is-nicked.%player%} to true