※The English version of the README is below.
管理者(OP)がゲーム内から直接SQLを操作するための、軽量で安全なMinecraftサーバー用bukkitプラグインです。
- ゲーム内SQL実行: /sql でデータベースを即座に操作。
- 非同期処理 (Async): すべてのSQL実行は別スレッドで行われるため、サーバーがラグることはありません。
- MySQL / SQLite 両対応: config.yml から簡単に切り替え可能。
- タブ補完: SQLキーワードの補完機能により、ミスを防ぎ効率的な操作をサポート。
- Vault 連携: 経済系プラグインとの親和性を確保(Soft-depend)。
| コマンド | 権限 | 説明 |
|---|---|---|
| /sql <SQL文> | OP | SQLクエリを実行します。 |
| /sql help | OP | プラグインの現在のバージョンを表示します。 |
- Releases から最新の .jar をダウンロード。
- サーバーの plugins フォルダに入れ、サーバーを起動。
- plugins/SimpleSQL/config.yml を編集し、データベース情報を設定。
- /restart またはサーバーを再起動して反映。
# Storage type: sqlite or mysql
storage-type: mysql
sqlite:
file: simplesql.db
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: password
use-ssl: false
pool:
maximum-pool-size: 10
minimum-idle: 2
# Connection timeout is fixed at 3000 ms in code by request.
connection-timeout-ms: 3000
sql-send:
# Endpoint that will receive SQL execution payload via HTTP POST.
url: "https://example.com"
# Any custom headers are supported (Authorization, X-API-Key, etc.)
# 何も設定しなくてもok
headers:
Authorization: "Bearer xxx"
# Edit messages in lang.yml to customize startup/help/error text.このプロジェクトは MIT License の下で公開されています。詳細は LICENSE ファイルを参照してください。
A lightweight and secure Bukkit plugin for Minecraft servers, allowing administrators (OPs) to directly manipulate SQL from within the game.
-
In-game SQL execution: Instantly manipulate the database with /sql .
-
Asynchronous processing (Async): All SQL executions are performed on a separate thread, preventing server lag.
-
MySQL / SQLite compatible: Easily switch between them from config.yml.
-
Tab completion: SQL keyword completion prevents errors and supports efficient operation.
-
Vault integration: Ensures compatibility with economic plugins (Soft-depend).
| Command | Permissions | Description |
|---|---|---|
| /sql | OP | Executes an SQL query. |
| /sql help | OP | Displays the current version of the plugin. |
-
Download the latest .jar from Releases.
-
Place the file in the server's plugins folder and start the server.
-
Edit plugins/SimpleSQL/config.yml and configure the database information.
-
Restart the server using /restart to apply the changes.
# Storage type: sqlite or mysql
storage-type: mysql
sqlite:
file: simplesql.db
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: password
use-ssl: false
pool:
maximum-pool-size: 10
minimum-idle: 2
# Connection timeout is fixed at 3000 ms in code by request.
connection-timeout-ms: 3000
sql-send:
# Endpoint that will receive SQL execution payload via HTTP POST.
url: "https://example.com"
# Any custom headers are supported (Authorization, X-API-Key, etc.)
# No change OK
headers:
Authorization: "Bearer xxx"
# Edit messages in lang.yml to customize startup/help/error text.This project is released under the MIT License. See the LICENSE file for details.
