So i'm trying to make a skript which allows me to link kills and deaths between minecraft servers using SkCrew. Right now i have this code:
It shows no errors but the kills and deaths are not linked. Before someone says i have filled out the info like the user and password of the database it's just not there for this example.
Code:
on script load:
set {kills::*} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
set {deaths::*} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
on death:
add 1 to {kills::%uuid of attacker%}
add 1 to {deaths::%uuid of victim%}
set {kills::*} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
set {deaths::*} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
It shows no errors but the kills and deaths are not linked. Before someone says i have filled out the info like the user and password of the database it's just not there for this example.