Solved Change name of item?

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

KarimAKL

Active Member
Apr 20, 2018
50
2
0
29
I've been trying to find a way to change the name of an item, here is what i'm currently trying:
code_language.skript:
Command /rename [<text>]:
    Executable by: Players
    Permission: skript.rename
    Permission message: &cYou do not have permission to this command!
    Description: Rename the item in your hand.
    Usage: /rename <name>
    Trigger:
        if player's tool is not air:
            if arg-1 is set:
                change name of player's tool to "%all arguments%"
            else:
                message "&cYou didn't type a name for the item!"
        else:
            message "&cYou don't have any item in your hand!"
But this doesn't work because it doesn't understand "change name of player's tool to "%all arguments%"" :7
How would i do this?
 
If you like, with color code can you put
code_language.skript:
change name of player's tool to colored arg-1
 
Status
Not open for further replies.