NouveauCraftRank SitesSite web et boutique gratuitsCrée la tienne ›
1.10.41CraftRank Launcher est sorti Télécharger ›AshlarLogiciel serveur gratuit basé sur Paper, avec protection DDoS et anti-backdoor Voir Ashlar ›Propriétaires de serveursTon propre launcher avec ton nom, ton logo et un clic jusqu'à ton serveur Voir les thèmes ›
Ressources / Plugins / skript-db

skript-db

Awesome direct database access for Skript

PluginsGratuit1.18 – 26.x
par 4w3 · repris depuis Hangar
Télécharger ›

Téléchargement direct depuis Hangar · 546 téléchargements

Ce qu'il fait

4w3 a créé skript-db (plugin) pour les serveurs Paper / Spigot. Awesome direct database access for Skript.

Versions prises en charge : Minecraft 1.18 – 26.x. On compte 546 téléchargements sur Hangar. Il arrive ainsi en position n° 206 sur les 418 plugins d'administration et de permissions listés ici. La dernière mise à jour date du 16/09/2026.

Versions prises en charge

26.x1.211.201.191.18

Historique des versions

skript-db a publié 2 versions sur Hangar depuis le 14/03/2025. L'une d'elles est sortie au cours de l'année passée. La plus récente est 2.0.0, sortie le 16/09/2026. Elle est faite pour Minecraft 1.21 – 26.3. Elle fonctionne sur Paper. Le téléchargement fait 2.2 MB.

VersionPubliéMinecraftType
2.0.016/09/20261.21 – 26.3Stable
1.5.014/03/20251.18 – 1.21.4Stable
Description de l'auteur sur 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}

Écrite par 4w3. À lire avec les images sur Hangar.

Comment installer skript-db

  1. Vérifie que ton serveur tourne sous Paper et Spigot en Minecraft 1.18 – 26.x.

  2. Installe d'abord ce dont il a besoin : Skript.

  3. Télécharge le fichier .jar depuis Hangar et place-le dans le dossier plugins de ton serveur.

  4. Redémarre le serveur. Évite /reload, beaucoup de plugins le supportent mal.

  5. Tape /plugins dans la console : skript-db doit apparaître en vert. Ses fichiers de config sont créés dans le dossier plugins au premier démarrage.

Compatibilité

Versions de Minecraft
26.x, 1.21, 1.20, 1.19, 1.18
Fonctionne sur
Paper, Spigot
Édition
Java
Nécessite
Skript
Licence
MIT
Prix
Gratuit
Suivi
Mis à jour activement (10/11/2026)

skript-db comparé à des ressources similaires Comparer toutes les alternatives

RessourceTéléchargementsVersionsMise à jourPrix
skript-dbcelle que tu regardais5461.18 – 26.x16 sept. 2026Gratuit
SkriptAPickledWalrus284K1.20 – 26.xil y a 20 joursGratuit
LoginToYager40068K1.8 – 26.xil y a 26 joursGratuit
pluginuploaderRylix58K1.2119 sept. 2025Gratuit

Questions

Est-ce que skript-db fonctionne sur Minecraft 26.x ?

Oui. skript-db prend en charge Minecraft 26.x. Toutes les versions prises en charge : 26.x, 1.21, 1.20, 1.19, 1.18.

Est-ce que skript-db est gratuit ?

Oui. skript-db se télécharge gratuitement sur Hangar.

Sur quel logiciel serveur fonctionne skript-db ?

skript-db fonctionne sur les serveurs Paper et Spigot.

skript-db a-t-il besoin d'autre chose ?

Oui : Skript. Installe-le avant skript-db.

skript-db est-il encore mis à jour ?

Oui. La dernière mise à jour date des dernières 24 heures.

Quelles sont les meilleures alternatives à skript-db ?

Les plus proches sont Skript, LoginTo et pluginuploader. Comparer toutes les alternatives

Alternatives à skript-db

SkriptPlugins · 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…

Gratuit283,522 téléchargements
LoginToPlugins · 1.8 – 26.x

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

Gratuit67,900 téléchargements
pluginuploaderPlugins · 1.21

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

Gratuit57,756 téléchargements
MailboxGUIPlugins · 1.18 – 26.x

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

Gratuit54 téléchargements
ccPlaytimePlugins · 26.x

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

Gratuit22 téléchargements
Comparer toutes les alternatives ›

Avis

–★★★★★
0 avis
50
40
30
20
10

Connecte-toi pour laisser un avis.