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

Vanilla Item Name

Discussion in 'Skript' started by LeStegii, Jun 25, 2019.

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

    LeStegii Member

    Joined:
    Mar 18, 2019
    Messages:
    3
    Likes Received:
    0
    Hey, im currently creating a custom enchantments Script without using Tuske and i'm having a problem.

    Spigot: 1.12.2
    Plugins: Tuske, Skript
    Skript: 2.4-alpha3
    Tuske: 1.8.2-Pikachu-Patch-3

    Code (Text):
    1. command /enchantmytool:
    2.     trigger:
    3.         set {_name} to display name of player's held item
    4.         set name of player's tool to "&b%{_name}%"

    [​IMG]

    The problem is, that the tool doesn't have a name/display name, so it will be called "<none>". Is there any way i can fix this without manually checking the item and setting a name for it?
     
  2. TPGamesNL

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    1,311
    Likes Received:
    73
    Medals:
    You can check `if {_name} is set`
     
Thread Status:
Not open for further replies.
Loading...