skript-db issue

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

Status
Not open for further replies.

helomi

Member
Feb 9, 2017
18
0
0
25
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:
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
 
Status
Not open for further replies.