I'm trying to get a random command with this code to make an event, but apparently this way with commands does not work, any idea to get a random command from a specific command list?
code_language.skript:
on rightclick:
if event-location == {medialet}:
if event-block is end portal frame:
add "eco give %player% 3000" to {_premios::*}
add "eco give %player% 2000" to {_premios::*}
set {_premio} to random command of {_premios::*}
wait 3 seconds