Help me with this code, I don't know why it doesn't work.
I don't know why when I do "/richieste italia" the GUI remains empty.
[doublepost=1616266695,1616183926][/doublepost]up!
Code:
# SCRIPT 1
command /add:
trigger:
add "%player%,%now%" to {italia.richieste.new::*}
Code:
# SCRIPT 2
command /richieste <text>:
usage: {@prefix} &aSintassi: &f/richieste <nazione>
trigger:
if arg 1 is "italia":
set metadata tag "gui_richieste_italia" of player to chest inventory with 6 rows named "&2&l» &a&lRICHIESTE IN ATTESA..."
loop {italia.richieste.new::*}:
set {_split::*} to loop-value split at ","
set {_x} to -1
add 1 to {_x}
set {_l::*} to "&f%{_split::2}%", "", "&8((&7 Click sinistro per rifiutare &8))" and "&8(( &7Click destro per accettare &8))"
set slot {_x} of metadata tag "gui_richieste_italia" of player to skull of {_split::1} with name "&e%{_split::1}%" with lore {_l::*}
open (metadata tag "gui_richieste_italia" of player) to player
I don't know why when I do "/richieste italia" the GUI remains empty.
[doublepost=1616266695,1616183926][/doublepost]up!