Changing Name Of Player's tool, changes name to <none>

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

Dractical

Member
Dec 30, 2019
14
0
1
Skript Version: 2.5-alpha6-MH
Errors: None
Code:
Code:
command /upgrade:
   permission: tester
   trigger:
       set {_toolname} to uncoloured name of player's tool
       set {_0} to lore of player's tool
       set {_1::*} to split {_0} at "||"
       set {_0} to size of {_1::*}
       if line {_0} of lore of player's tool is "&f&lCOMMON":
           set line {_0} of lore of player's tool to "&a&l&kA &r&a&lUNCOMMON &r&a&l&kA"
           set name of player's tool to "&a%{_toolname}%"
[doublepost=1597036802,1597036714][/doublepost]Changes name to <none>, I tried other things but I need the name to include caps. The name includes colors so that is not an issue.
 
Status
Not open for further replies.