NoweCraftRank SitesA free website and storeMake yours ›
1.10.41CraftRank Launcher is out Pobierz ›AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Dla właścicieli serwerówYour own launcher with your name, logo and one click onto your server See themes ›
Zasoby / Pluginy / skript-db

skript-db

Awesome direct database access for Skript

PluginyZa darmo1.18 – 26.x
autor: 4w3 · pobrane z Hangar
Pobierz ›

Opens Hangar · 546 downloads there

Co robi

Awesome direct database access for Skript

skript-db to plugin do serwerów Paper / Spigot, autor: 4w3. Obsługiwane wersje: Minecraft 1.18 – 26.x. Liczba pobrań w serwisie Hangar: 546. Zajmuje 197. miejsce w kategorii „pluginy do administracji i uprawnień” (łącznie: 398). Ostatnia aktualizacja: 16.09.2026.

Obsługiwane wersje

26.x1.211.201.191.18

Historia wersji

skript-db ma 2 wydań na Hangar od 14.03.2025. Jedna z nich wyszła w ostatnim roku. Najnowsza to 2.0.0, wydana 16.09.2026. Jest zrobiona dla Minecraft 1.21 – 26.3. Działa na Paper. Plik ma 2.2 MB.

WersjaWydanoMinecraftTyp
2.0.016.09.20261.21 – 26.3Wydanie
1.5.014.03.20251.18 – 1.21.4Wydanie
Opis autora na Hangar

skript-db

Awesome direct database access for Skript

This is a fork of btk5h's skript-db, rewritten to function with Minecraft versions 1.21 up to 26.x (Skript 2.14 and newer), including bug fixes, performance improvements, transactions and batch statements

What makes skript-db different from other SQL addons?

  • Automatic SQL injection protection
  • Support for connections to multiple databases
  • An amazingly intuitive list variable system for reading query outputs
  • Transactions and batch statements for many rows in one round trip

Syntax

[the] data(base|[ ]source) [(of|at)] %string% [with [a] [max[imum]] [connection] life[ ]time of %timespan%] [[(using|with)] [a] driver %-string%]

Examples

set {sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
set {sql} to the database "mariadb://localhost:3306/mydatabase?user=admin&password=12345"
set {sql} to the database "postgresql://localhost:5432/mydatabase?user=admin&password=12345&ssl=false"
set {sql} to the database "sqlite:plugins/database.db"

Extra parameters:

set {sql} to the database "postgresql://localhost:5432/mydatabase?user=admin&password=12345&ssl=false" with a maximum connection lifetime of 30 minutes
set {sql} to the database "postgresql://localhost:5432/mydatabase?user=admin&password=12345&ssl=false" with a maximum connection lifetime of 30 minutes using driver "org.postgresql.Driver"


Effect Execute Statement

Executes a statement on a database and optionally stores the result in a variable. Expressions
embedded in the query are bound as parameters, so they can never change the meaning of the statement.
A list expression such as %{_ids::*}% expands to one parameter per value, which makes IN (...) easy.

If a single variable, such as {test}, is passed, the variable will be set to the number of
affected rows, or the number of rows of a query. With generated keys it receives the first key created by an insert.

If a list variable, such as {test::*}, is passed, the query result will be mapped to the list
variable in the form {test::::}. {test::} holds the column name, so
loop {test::*} iterates over the columns. The list is emptied before the result is stored.

with arguments binds the given values to the question marks of the statement. with batch arguments runs the
statement once per sub list of a list variable, all in one round trip and one transaction.

If quickly is specified, the SQL query will be done without jumping back to the main thread, which saves waiting
for the next tick, however that makes code after it to also be on a separate thread, you can jump back to the main
thread by adding wait a tick.

Syntax

[quickly] execute %string% (in|on) %datasource% [with [batch] arg[ument][s] %-objects%] [and store [the] [generated keys] [(output|result)[s]] (to|in) [the] [var[iable]] %-objects%]

Examples

execute "select * from players" in {sql} and store the result in {output::*}
execute "select * from players where name = %{_name}% and score > %{_min}%" in {sql} and store the result in {output::*}
execute "select name from players where id in (%{_ids::}%)" in {sql} and store the result in {output::}
execute "insert into scores (name, score) values (?, ?)" in {sql} with arguments "Steve", 100 and store the generated keys in {_id}
set {_rows::1::*} to "Steve", 100
set {_rows::2::*} to "Alex", 250
execute "insert into scores (name, score) values (?, ?)" in {sql} with batch arguments {_rows::*} and store the result in {_count}


Section Transaction

Runs every statement inside the section on one connection as a single transaction and commits at the end of the
section. If a statement fails, everything is rolled back, the rest of the section is skipped and
last sql error holds the reason. Do not leave the section with stop, exit or return.

Syntax

[(sql|database)] transaction (on|in) %datasource%:

Examples

transaction on {sql}:
execute "update accounts set balance = balance - %{_amount}% where id = %{_from}%" in {sql}
execute "update accounts set balance = balance + %{_amount}% where id = %{_to}%" in {sql}
if last sql error is set:
send "Transfer failed: %last sql error%"


Expression Last Data Source Error => text

Stores the error from the last executed statement or transaction of the current trigger, if there was one.

Syntax

[the] [last] (sql|db|data(base|[ ]source)) error


Expression Unsafe Expression => text

Opts out of automatic SQL injection protection for a specific expression in a statement. Needed for table and
column names, which cannot be parameters. Never use it with player input.

Syntax

unsafe %text%

Examples

execute "select %unsafe {columns variable}% from %unsafe {table variable}%" in {sql}
execute unsafe {fully dynamic query} in {sql}

Autor: 4w3. Z obrazkami na Hangar.

Jak zainstalować skript-db

  1. Upewnij się, że twój serwer działa na Paper i Spigot w Minecraft 1.18 – 26.x.

  2. Najpierw zainstaluj to, czego potrzebuje: Skript.

  3. Pobierz plik .jar z Hangar i wrzuć go do folderu plugins na serwerze.

  4. Zrestartuj serwer. Unikaj /reload, wiele pluginów źle to znosi.

  5. Wpisz /plugins w konsoli: skript-db powinien być na zielono. Pliki konfiguracyjne tworzą się w folderze plugins przy pierwszym starcie.

Kompatybilność

Wersje Minecraft
26.x, 1.21, 1.20, 1.19, 1.18
Działa na
Paper, Spigot
Edycja
Java
Wymaga
Skript
Licencja
MIT
Cena
Za darmo
Utrzymanie
Aktywnie aktualizowany (10.11.2026)

skript-db w porównaniu z podobnymi Porównaj wszystkie alternatywy

ZasóbPobraniaWersjeAktualizacjaCena
skript-dbten, który oglądałeś5461.18 – 26.x16 wrz 2026Za darmo
SkriptAPickledWalrus284K1.20 – 26.x19 d. temuZa darmo
LoginToYager40068K1.8 – 26.x25 d. temuZa darmo
pluginuploaderRylix58K1.2119 wrz 2025Za darmo

Pytania

Czy skript-db działa w wersji Minecrafta 26.x?

Tak. skript-db działa w wersji Minecrafta 26.x. Wszystkie obsługiwane wersje: 26.x, 1.21, 1.20, 1.19, 1.18.

Czy skript-db jest za darmo?

Tak. skript-db można pobrać za darmo z serwisu Hangar.

Na jakim oprogramowaniu serwera działa skript-db?

skript-db działa na serwerach Paper i Spigot.

Czy skript-db potrzebuje czegoś jeszcze?

Tak: Skript. Zainstaluj to przed skript-db.

Czy skript-db jest nadal aktualizowany?

Tak. Ostatnia aktualizacja wyszła w ciągu ostatniej doby.

Jakie są najlepsze alternatywy dla skript-db?

Najbliższe to Skript, LoginTo i pluginuploader. Porównaj wszystkie alternatywy

Alternatywy dla skript-db

SkriptPluginy · 1.20 – 26.x

Skript is a Paper plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone…

Za darmoPobrania: 283,522
LoginToPluginy · 1.8 – 26.x

A complete authentication solution for Minecraft servers, providing secure login, database storage, premium autologin and secure otp code with qrcode

Za darmoPobrania: 67,900
pluginuploaderPluginy · 1.21

This is a custome plugin with that you can upload custome plugin with the direct download link. command: /pluginupload <link>

Za darmoPobrania: 57,756
MailboxGUIPluginy · 1.18 – 26.x

GUI mailboxes with letters, packages, money mail, scheduled delivery, public access points, and powerful admin tools.

Za darmoPobrania: 54
ccPlaytimePluginy · 26.x

Modern playtime tracking with leaderboards, rewards, placeholders and database support.

Za darmoPobrania: 21
Porównaj wszystkie alternatywy ›

Opinie

–★★★★★
Opinie: 0
50
40
30
20
10

Zaloguj się, aby wystawić opinię.