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 Change name of item?

Discussion in 'Skript' started by KarimAKL, Jun 9, 2018.

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

    KarimAKL Active Member

    Joined:
    Apr 20, 2018
    Messages:
    50
    Likes Received:
    1
    I've been trying to find a way to change the name of an item, here is what i'm currently trying:
    Code (Skript):
    1.  
    2. Command /rename [<text>]:
    3.     Executable by: Players
    4.     Permission: skript.rename
    5.     Permission message: &cYou do not have permission to this command!
    6.     Description: Rename the item in your hand.
    7.     Usage: /rename <name>
    8.     Trigger:
    9.         if player's tool is not air:
    10.             if arg-1 is set:
    11.                 change name of player's tool to "%all arguments%"
    12.             else:
    13.                 message "&cYou didn't type a name for the item!"
    14.         else:
    15.             message "&cYou don't have any item in your hand!"
    16.  
    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?

     
  2. Best Answer:
    Post #3 by DieHollander_, Jun 9, 2018
  3. Deducciones

    Deducciones Member

    Joined:
    Jul 19, 2017
    Messages:
    2
    Likes Received:
    0
    If you like, with color code can you put
    Code (Skript):
    1. change name of player's tool to colored arg-1
     
  4. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Its not "change name of player's tool" but "set name of player's tool".
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...