SkDB gives your Skript scripts a powerful, cloud-based database backend. No SQL knowledge required - just simple Skript syntax you already know.
# Connect to your database
on skript load:
connect to skdb with api key "{YOUR_API_KEY}"
and project id "{YOUR_PROJECT_ID}"
# Create a table if it doesn't exist
if table "players" doesn't exist:
create table "players" with fields:
"uuid" as text
"name" as text
"coins" as number
"joined" as timestamp
# Store player data on join
on join:
insert into "players":
set "uuid" to "%player's uuid%"
set "name" to "%player%"
set "coins" to 100
set "joined" to now
# Retrieve player data
command /balance:
trigger:
set {_data} to query "players" where "uuid" is
"%player's uuid%"
send "Your balance: %{_data::coins}% coins"
Built specifically for Minecraft server owners and Skript developers
Use familiar Skript syntax instead of learning complex SQL queries. No database knowledge needed.
Store your data securely in the cloud. Access it from multiple servers and scripts without file conflicts.
Lightning-fast response times with optimized API endpoints. Scale easily as your server grows.
Create separate projects for different aspects of your server. Keep your economy data separate from your game stats.
Your data is protected with API keys and project-specific authentication. Control exactly who can access your data.
Browse and manage your data through our intuitive web interface. Perfect for debugging and manual edits.
Get up and running in just a few minutes
Sign up for free and get your API key instantly. No credit card required to start.
Add the SkDB addon to your server and configure it with your API key and project ID.
Write Skript code to store and retrieve data. That's it - no complex configuration needed!
SkDB powers all kinds of Minecraft server features
Build robust economy systems with persistent currency storage. Track transactions and player balances across server restarts.
command /pay <player> <number>:
trigger:
set {_sender} to query "players" where "uuid" is "%player's uuid%"
set {_receiver} to query "players" where "name" is "%arg-1%"
if {_sender::coins} >= arg-2:
# Update sender balance
update "players" where "uuid" is "%player's uuid%":
subtract arg-2 from "coins"
# Update receiver balance
update "players" where "name" is "%arg-1%":
add arg-2 to "coins"
send "Sent %arg-2% coins to %arg-1%!"
Track player statistics like kills, deaths, wins, and playtime. Create leaderboards and reward your most active players.
on death of player:
if attacker is a player:
# Update killer's stats
update "player_stats" where "uuid" is "%attacker's uuid%":
add 1 to "kills"
# Update victim's stats
update "player_stats" where "uuid" is "%victim's uuid%":
add 1 to "deaths"
command /stats:
trigger:
set {_stats} to query "player_stats" where "uuid" is "%player's uuid%"
send "Kills: %{_stats::kills}% | Deaths: %{_stats::deaths}%"
Create custom home and warp systems. Let players set multiple homes and teleport between them with ease.
command /sethome <text>:
trigger:
insert into "homes":
set "player" to "%player's uuid%"
set "name" to "%arg-1%"
set "world" to "%player's world%"
set "x" to "%player's x-coordinate%"
set "y" to "%player's y-coordinate%"
set "z" to "%player's z-coordinate%"
send "Home %arg-1% has been set!"
command /home <text>:
trigger:
set {_home} to query "homes" where "player" is
"%player's uuid%" and "name" is "%arg-1%"
if {_home} is set:
teleport player to location({_home::x}, {_home::y},
{_home::z}, {_home::world})
send "Teleported to %arg-1%!"
Store custom items, player inventories, and backpacks. Perfect for RPG servers and custom gameplay mechanics.
on quit:
set {_inventory} to player's inventory as json
# Save player's inventory
if query "inventories" where "uuid" is "%player's uuid%" exists:
update "inventories" where "uuid" is "%player's uuid%":
set "contents" to "%{_inventory}%"
else:
insert into "inventories":
set "uuid" to "%player's uuid%"
set "contents" to "%{_inventory}%"
on join:
set {_data} to query "inventories" where "uuid" is
"%player's uuid%"
if {_data} is set:
set player's inventory to {_data::contents} parsed as items
Server owners and Skript developers love SkDB
"SkDB has completely changed how I develop features for my survival server. No more dealing with YAML files or SQL queries!"
Survival Server Owner
"The ability to store and query data across my network of servers has been a game-changer. Our economy system is now synchronized everywhere."
Network Administrator
"I was spending hours debugging my data storage scripts. With SkDB, I can see and manage all my data through the web interface. Huge time saver!"
Skript Developer
Everything you need to know about SkDB
Join hundreds of Minecraft server owners who have simplified their data management with SkDB.