Tuke-Nuke / TuSKe

TuSKe is a Skript addons which brings some new cool things and some simple plugins hook.
18 stars 36 forks source link

Error editing #38

Closed ghost closed 2 years ago

ghost commented 6 years ago

Hello! When editing a global GUI, it is not possible to use with lore on the new formats. If I remove the lore of this code, it works just fine.

set {online::kitpvp} to size of all bungeecord players on server "KitPvP"
edit gui "NAVIGATE":
    make gui slot 26 with 1 of iron sword named "&c&l&nKITPVP" with lore "||&eKlik her, for at gå til serveren!|||| &8>> &c%{online::kitpvp}%":
        send "{@prefix} &7Du bliver nu sendt til vores &aKitPvP &7server!" to player
        send "%player%" to bungeecord server "KitPvP"

'::kitpvp}%"' is not a valid item data (navigate.sk, line 49: make gui slot 26 with 1 of iron sword named "&c&l&nKITPVP" with lore "||&eKlik her, for at gå til serveren!|||| &8>> &c%{online::kitpvp}%":')

Snow-Pyon commented 6 years ago

the with lore expression comes from skQuery so that's probably why it isn't working

ghost commented 6 years ago

Well, in that case, how am I supposed to change my lore? Does TuSKe have a special syntax for adding a lore?

Under normal circumstances like make gui slot 0 of player with 1 of stone named "Stone" with lore "Stone" to do nothing it works just fine.

There is no way this GUI aimed plugin has no way of changing GUI lores...

Snow-Pyon commented 6 years ago

The thing is that everyone thought it was a vanilla Skript feature but it isn't. It'll be added to vanilla Skript soon anyways.

So, meanwhile you'll have to do:

set {_item} to stone named "test"
set {_item}'s lore to "something" and "something else"
make gui slot 0 of player with {_item} to do nothing 

I know it's a bit ugly but you'll have to be patient.

ghost commented 6 years ago

Alright!

I only need to do it with 5 items anyways, so may as well work. Thank you for your help!