A simple plugin that lets you integrate any SQLite DB with your Minecraft server and lets you execute all sorts of queries.
See To-Do.md for plugin progress.
| Supported Platforms |
|---|
| Bukkit |
| Spigot |
| Paper |
| Purpur |
| Folia |
| Canvas |
The platforms stated above have been tested to work with the plugin. Any forks of the above platforms should also work.
- In-Game Queries: Execute queries instantly with
/sqlite query <query>. - Multiple Databases: Configure several SQLite files and switch between them in-game.
- Secure Web Panel: Run a simple login-protected query console with session cookies and CSRF checks.
- Mode Switching: Expose console/player commands, the web panel, or both through config.
- Configurable Row Limit: Keep the default 50-row cap or set
query.row-limitto-1for unlimited results. - Async and Highly Performant: Database tasks run asynchronously to keep your server ticking perfectly.
- Fail-Safe: Read-only and read-write modes and be configured in the config, default is read-only to prevent any overrides.
- Download the latest jar file.
- Drop it into your server's
plugins/folder. - Restart your server.
- Open the
plugins/SQLiteConnectMC/config.ymlthat gets generated and add the databases you want to inspect. Older config files are migrated automatically and backed up asconfig.v<old-version>.bak.yml. - Set
access.modetoCONSOLE_PLAYER,WEB_PANEL, orBOTH, and adjustquery.row-limitif you want something other than the default 50 rows. - If you want the panel, create a login with
/sqlite panel mail add <mail> pass set <pass>. - If you want remote panel access, keep
panel.hoston0.0.0.0and choose a freepanel.portthat your host exposes or forwards to the server. - Run
/sqlitereloadto apply config changes and start or restart the panel.
/sqlite query <query>- Run a query safely on the selected database./sqlite list tables- List all tables in the selected database./sqlite list databases- List all configured databases./sqlite select database <name>- Switch the selected database./sqlite help panel- Show the panel status, URL, and account command usage./sqlite panel mail add <mail> pass set <pass>- Create or reset a web panel login./sqlite help- Displays an in-game help menu./sqlitereload- Reload the config and reconnect to the database.
sqliteconnectmc.admin: Required for all commands (Defaults to Server Operators).
For more details on configuration, please check the doc.md file! [Warning: The doc file is AI generated to save time but is still pretty helpful.]