1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved disguise nick as real player

Discussion in 'Skript' started by Runakai, May 11, 2018.

Thread Status:
Not open for further replies.
  1. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    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.
     
    #1 Runakai, May 11, 2018
    Last edited: May 12, 2018
  2. Best Answer:
    Post #2 by JustADev, May 14, 2018
  3. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Yes,

    It Requires skQuery for the addon
    Code (Skript):
    1. command /nick [<text>]:
    2.     trigger:
    3.         if arg-1 isn't set:
    4.             send "Put a nick here"
    5.         else:
    6.             if {Nick::%player's uuid%} is set:
    7.                 remove {Nick::%player's uuid%} from {ServerNickNames::*}
    8.                 set {Nick::%player's uuid%} to arg-1
    9.                 set player's display name to arg-1
    10.                 send "Your new nick is now: %coloured arg-1%"
    11.                 add {Nick::%player's uuid%} to {ServerNickNames::*}
    12.             else:
    13.                 set {Nick::%player's uuid%} to arg-1
    14.                 set player's display name to arg-1
    15.                 send "Your new nick is now: %coloured arg-1%"
    16.                 add {Nick::%player's uuid%} to {ServerNickNames::*}          
    17.            
    18. on tab complete:
    19.     loop {ServerNickNames::*}:
    20.         add loop-value to completions
     
  4. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Well.. I marked it as solved because it actually should work but it doesn't work for me. 'cant understand this event'
     
  5. PuchiGFX

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    246
    Likes Received:
    5
    Thats because "on tab complete" event is for 1.9 version
     
Thread Status:
Not open for further replies.

Share This Page

Loading...