Solved disguise nick as real player

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Runakai

Supporter
Apr 27, 2018
496
32
28
20
Hey! I am doing my Nick system and i wanted to ask if it is possible to add the player to the real players? Like: When i nick myself as... e.g "Lucax" and type in L and THEN press tab, the Nickname will automatically be completed. Also when using commands.
 
Last edited:
Yes,

It Requires skQuery for the addon
code_language.skript:
command /nick [<text>]:
    trigger:
        if arg-1 isn't set:
            send "Put a nick here"
        else:
            if {Nick::%player's uuid%} is set:
                remove {Nick::%player's uuid%} from {ServerNickNames::*}
                set {Nick::%player's uuid%} to arg-1
                set player's display name to arg-1
                send "Your new nick is now: %coloured arg-1%"
                add {Nick::%player's uuid%} to {ServerNickNames::*}
            else:
                set {Nick::%player's uuid%} to arg-1
                set player's display name to arg-1
                send "Your new nick is now: %coloured arg-1%"
                add {Nick::%player's uuid%} to {ServerNickNames::*}           
            
on tab complete:
    loop {ServerNickNames::*}:
        add loop-value to completions
 
Yes,

It Requires skQuery for the addon
code_language.skript:
command /nick [<text>]:
    trigger:
        if arg-1 isn't set:
            send "Put a nick here"
        else:
            if {Nick::%player's uuid%} is set:
                remove {Nick::%player's uuid%} from {ServerNickNames::*}
                set {Nick::%player's uuid%} to arg-1
                set player's display name to arg-1
                send "Your new nick is now: %coloured arg-1%"
                add {Nick::%player's uuid%} to {ServerNickNames::*}
            else:
                set {Nick::%player's uuid%} to arg-1
                set player's display name to arg-1
                send "Your new nick is now: %coloured arg-1%"
                add {Nick::%player's uuid%} to {ServerNickNames::*}          
           
on tab complete:
    loop {ServerNickNames::*}:
        add loop-value to completions
Well.. I marked it as solved because it actually should work but it doesn't work for me. 'cant understand this event'
 
Status
Not open for further replies.