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.

Nickname skript

Discussion in 'Skript' started by skate7789, Jan 26, 2022.

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

    skate7789 Member

    Joined:
    Jan 26, 2022
    Messages:
    3
    Likes Received:
    0
    Skript Version: 2.6
    Game Version: 1.17.1
    Addons: SkQuery
    Full code (Example):
    command /sknick:
    permission: op
    trigger:
    set player's display name to "NickTest"
    set player's tab list name to "NickTest"
    send "&aNicked"

    Errors: <none>
    Problem:
    When i use /sknick, my name doesn't change in other command <player> variable.
    Like it shows TestNick on the tab and above my head but when i do any command like
    /punish <player> (my skript command) it still shows my real ign in the player recommend list (Look below in the pic to see what i mean)
    --- Double Post Merged, Jan 26, 2022, Original Post Date: Jan 26, 2022 ---
    Ignore the no spaces in code
     

    Attached Files:

  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Hey Skate! You can solve these issues using SkBee and Tablisknu.
    https://skripthub.net/docs/?id=4378
    https://skripthub.net/docs/?id=4374
    https://skripthub.net/docs/?id=3403
    Code (Text):
    1. # To change the nametag above your head:
    2. command /sknick:
    3.     permission: op
    4.     trigger:
    5.         set metadata value "nicked" of player to "NickTest"
    6.         set player's nametag to "NickTest"
    7.         set player's display name to "NickTest"
    8.         set player's tab list name to "NickTest"
    9.         send "&aNicked"
    10.  
    11. # To change their name in tab completion
    12. on tab complete:
    13.     set tab completions to all players where [metadata value "nicked" of player isn't set]
    14.     loop all players:
    15.         add metadata value "nicked" of player to tab completions if metadata value "nicked" of player is set
    16.    
     
  3. skate7789

    skate7789 Member

    Joined:
    Jan 26, 2022
    Messages:
    3
    Likes Received:
    0
    Thanks but i'm on 1.17.1 and Tablisknu is only for 1.14. Any alternatives?
     
  4. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Did you try running Tablisknu anyway? I believe Tablisknu isn't maintained anymore, but still functional on 1.17. Tablisknu is your best bet, as there isn't an addon that does the same thing.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...