So i had this working with skellett's syntax but i'm running into an (expected) issue now ith skript-db
It now throws this:
A return statement after a delay is useless, as the calling trigger will resume when the delay starts (and won't get any returned value) (duel.sk, line 17: return false')
is there not a way to wait for the database to complete the request in functions like it was possible with skellett?
EDIT:
Oh, and i also get the error mentioned above using mariadb
http://www.paste.org/88803
my max connections are set to 151. After i encounter that error the database becomes unaccessible for all other things too, i had to stop the minecraft server to free up connections again.
EDIT2:
tl;dr basically the issues of the 2 people before me
code_language.skript:
command /isonline <string>:
permission: *
trigger:
send "%isonline(arg-1)%"
function isonline(p: string) :: boolean:
execute "SELECT server FROM playerdata.status WHERE ign='%{_p}%' and (faction=true or safe=true or vanilla=true or lobby=true)" in {playerdatadb} and store result in {_r}
if {_r} is set:
return true
else:
return false
A return statement after a delay is useless, as the calling trigger will resume when the delay starts (and won't get any returned value) (duel.sk, line 17: return false')
is there not a way to wait for the database to complete the request in functions like it was possible with skellett?
EDIT:
Oh, and i also get the error mentioned above using mariadb
http://www.paste.org/88803
my max connections are set to 151. After i encounter that error the database becomes unaccessible for all other things too, i had to stop the minecraft server to free up connections again.
EDIT2:
tl;dr basically the issues of the 2 people before me
Last edited: