Hello, i wrote this little skript. The skript does loop only 1x but the list contains 5 objects. When i remove rows with mysql everything works fine:
Code:
Server info:
Java 8
Spigot 1.13.2
Skript 2.3.5
Code:
Code:
on join:
broadcast "test"
add "stats_box", "stats_economy", "stats_playtime", "stats_pvp_pve" and "stats_world_manipulation" to {_list::*}
add "stats_dq" to {_list::*}
broadcast "%{_list::*}%"
loop {_list::*}:
broadcast "%loop-value%"
execute "select * from `%loop-value%` WHERE username = '%player%'" in {sql} and store the result in {_output::*}
IF {_output::username::1} != player:
execute "INSERT INTO `%loop-value%` (`username`, `uuid`) VALUES ('%player%', '%player's uuid%')" in {sql}
Server info:
Java 8
Spigot 1.13.2
Skript 2.3.5