#Skript-db | Error (Cannot invoke java.lang.reflect.Field.get(Object) because "com.btk5h.skriptdb.Sk)

1 messages · Page 1 of 1 (latest)

leaden copper
#

Server version: 1.16.5
Skript version: latest
Skript-DB version: latest
Database: MariaDB

Here is the code:

on script load:
    set {sql} to the database "mysql://(HOST):3306/(DB)?user=(USER)&password=(PASSWORD)&useSSL=false"
    
    
command /join <text>:
    trigger:
        execute "INSERT INTO msg_on_server (name, greeting) VALUES (%name of player%, 'Aboba')" in {sql}
        send arg-1 to player

Error in text file

chrome delta
#

1 - 1.16 is very outdated, consider updating
2 - Skript-DB is also outdated and likely doesn't work with the skript version that you're using

leaden copper
chrome delta
#

vanilla skript already has MySQL database support in the config
if you really need to use mariadb then try downgrading Skript to a version that is tested with skript-db
otherwise, i recommend not using mariadb (just use mysql with skript) and removing skript-db (skuniversal is outdated too btw) and updating your server to the latest version
i dont know what you mean by 'analogues' but im pretty sure the reason why you're getting that error is because skript-db isn't compatible with the latest Skript version

leaden copper
chrome delta
#

just go into the config.sk and scroll all the way down, there's a ton of really good examples there