Mirreski / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
7 stars 2 forks source link

Name of {_itemstack} not working. [V6] #14

Closed Mirreski closed 9 years ago

Mirreski commented 9 years ago
command /test:
    trigger:
        set {_item} to stone of sharpness 5 named "He" with lore "Poop"
        message "%{_item}%"
        message "%name of {_item}%"

Outputs:

stone of sharpness 5 named "He"
<none>

Notice the <none> when %name of {_item}% gets called.

However this is only when using a variable with the name of... These works fine:

command /test:
    trigger:
        message "%name of tool of player%"

But not:

command /test:
    trigger:
        set {_item} to tool of player
        message "%name of {_item}%"
Mirreski commented 9 years ago

Added in V6