Njol / 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
104 stars 60 forks source link

[BUG] Set the lore of a loop-item ? #310

Closed Zerkhan closed 10 years ago

Zerkhan commented 10 years ago

Hi Njol,

I have downloaded Skript 2.1.1 (https://dl.dropboxusercontent.com/u/48570304/Skript/Skript-2.1.1.jar), and I have write this :

command /test:
    trigger:
        give iron sword of sharpness 1 named "NAME" to player
        loop all items in player's inventory:
            loop-item's name is "NAME":
                # The text is broadcasted.
                broadcast "1"
                # ... but the lore isn't set D:
                set line 1 of loop-item's lore to "LORE"

I have also tried with,

set {_p} to "LORE"
set line 1 of loop-item's lore to {_p}
set {_p} to "LORE" parsed as text
set line 1 of loop-item's lore to {_p}

May be you are already aware of this problem, sorry in this case.

Njol commented 10 years ago

No, I was not aware of this. This is now officially the last bug fixed for 2.1.1, as I just uploaded it to Bukkit.

Zerkhan commented 10 years ago

Yeah \o/ !