Home›Java›Mods›skript-db (Updated)
Code (Text):
Awesome direct database access for Skript
What makes skript-db different from other SQL addons?
This is a fork of btk5h's skript-db with some changes, refer to our git repository for changelog and more syntaxes.
Documentation/Source - Releases

Quickstart (MySQL example, but you can use SQLite, MariaDB, PostgreSQL too)
Code (Text):
on script load:
  set {-sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
Code (Text):
command /dbtest:
  trigger:
    execute "select * from table" in {-sql} and store the result in {_output::*}
    send "First entry in column: %{_output::columnname::1}%"
Code (Text):
command /insertmyprofile:
   trigger:
    execute "INSERT INTO table (uuid,name,lastjoin) VALUES (%uuid of player%,%name of player%,%rounded unix timestamp of now%) ON DUPLICATE KEY UPDATE name=VALUES(name),lastjoin=VALUES(lastjoin)" in {-sql}
Support
You can receive support by creating an issue at the git repository, alternatively you can receive live chat support in my Matrix chatroom.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

skript-db (Updated) is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11, 1.12 and newer. Downloaded 4,147 times (via Spigot). Download it and open it directly in the game.

Explore more