Trying to use variables to set nicknames with Tablisknu

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

    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.

RanomPanda

Member
Nov 25, 2020
1
0
1
Hey there!
I've been trying to make a custom nickname command that saves across server reboots. The only way I know about doing this is through variables, which isn't really working.
Code:
command /nick <player=%player%> <string>:
    executable by: players
    permission: nick.change
    description: Sets a player's nick
    usage: /nick <player> <tag>
    trigger:
        set {nick.%argument 1%} to argument 2
        set argument 1's default nametag to argument 2
        set display name of argument 1's tab to "%{nick.%argument 1%}%"

This is my code, I'm trying to set argument one to have a default of the player. Which it doesn't seem to like. At the bottom I have both of my attempts on different lines and both of them error. Please help me figure this out I've been trying for an hour and the docs don't help.

Thanks!
 
Status
Not open for further replies.