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.

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

Discussion in 'Skript' started by Dractical, Aug 10, 2020.

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

    Dractical Member

    Joined:
    Dec 30, 2019
    Messages:
    16
    Likes Received:
    0
    Skript Version: 2.5-alpha6-MH
    Errors: None
    Code:
    Code (Text):
    1. command /upgrade:
    2.    permission: tester
    3.    trigger:
    4.        set {_toolname} to uncoloured name of player's tool
    5.        set {_0} to lore of player's tool
    6.        set {_1::*} to split {_0} at "||"
    7.        set {_0} to size of {_1::*}
    8.        if line {_0} of lore of player's tool is "&f&lCOMMON":
    9.            set line {_0} of lore of player's tool to "&a&l&kA &r&a&lUNCOMMON &r&a&l&kA"
    10.            set name of player's tool to "&a%{_toolname}%"
    --- Double Post Merged, Aug 10, 2020, Original Post Date: Aug 10, 2020 ---
    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.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...