Nickname skript

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

skate7789

Member
Jan 26, 2022
3
0
1
26
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)
[doublepost=1643224432,1643224381][/doublepost]Ignore the no spaces in code
 

Attachments

  • eöhuadhk.png
    eöhuadhk.png
    51.2 KB · Views: 145
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:
# To change the nametag above your head:
command /sknick:
    permission: op
    trigger:
        set metadata value "nicked" of player to "NickTest"
        set player's nametag to "NickTest"
        set player's display name to "NickTest"
        set player's tab list name to "NickTest"
        send "&aNicked"

# To change their name in tab completion
on tab complete:
    set tab completions to all players where [metadata value "nicked" of player isn't set]
    loop all players:
        add metadata value "nicked" of player to tab completions if metadata value "nicked" of player is set
 
Thanks but i'm on 1.17.1 and Tablisknu is only for 1.14. Any alternatives?
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.
 
Status
Not open for further replies.