Solved Save text in variable

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

lordmanu

Member
Apr 25, 2022
21
1
3
24
hello everyone. i am trying to save the text in the variable {player.%arg-1%.reviews::*} and overall the skript does not give errors. the only thing is that in game instead of giving me the text, it writes <none>. How can i solve it? thanks in advance.. I specify that I have minecraft 1.8.9 for that some syntax does not understand them

Skript:
command /votastaff <player> <number>:
trigger:
if arg-1 is not set:
send "&bCiao! &fUsa questo comando per votare uno staffer. Esempio: &7/votastaffer (nome staffer) (numero stelle da 1 a 5)" to executor
if arg-2 is not set:
send "&bCiao! &fUsa questo comando per votare uno staffer. Esempio: &7/votastaffer (nome staffer) (numero stelle da 1 a 5)" to executor
if arg-1 has permission "staffer":
if executor doesn't have permission "votastaff.%arg-1%":
if arg-2 is greater than 0:
if arg-2 is less than or equal to 5:
send "&aHai votato %arg-1% con successo!" to executor
send "&aNumero stelle assegnato:" to executor
send "&7%arg-2%" to executor
add "%executor% ha votato con %arg-2% stelle su 5!" to {player.%arg-1%.recensione::*}
add arg-2 to {votastaff.%arg-1%}
add 1 to {numerovotazioni.%arg-1%}
make console execute command "/lp user %executor% permission set votastaff.%arg-1% true"
if arg-1 is online:
send "&aHai una nuova recensione!" to arg-1
send "&7Il player %executor% ti ha lasciato:" to arg-1
send "&a%arg-2% stelle su 5!" to arg-1
else:
send "&cPuoi votare con un massimo di 5 stelle." to executor
else:
send "&cPuoi votare con un minimo di 1 stella." to executor
else:
send "&cHai già votato questo staff 1 volta." to executor
else:
send "&cPuoi votare solo staffer. %arg-1% non è uno staffer." to executor

command /myrecensioni:
permission: staffer
trigger:
send "&aCiao %executor%" to player
send "&aSto caricando le tue reciensioni, dammi un secondo..." to player
wait 3 seconds
send "&aEcco le tue recensioni!" to player
wait 2 seconds
send "&aVotazioni singole:" to player
send "&7%{player.%executor%.recensione::*}%"
send "&7&l--------------" to executor
send "&aSomma voti totali:" to executor
send "%{votastaff.%executor%}%" to executor
send "&7&l--------------" to executor
send "&aVoti totalizzati:" to executor
send "%{numerovotazioni.%executor%}%" to executor