Repository navigation
Storage
Command+ stores SignSpy and LogBlock history in a database. Everything else (freeze, lockdown, toggles) is kept in memory only and resets on restart.
The SQLite and MySQL drivers are bundled with Paper and Spigot, so there is nothing to download.
No setup. The database is a single file in plugins/CommandPlus/.
storage:
type: sqlite
sqlite-file: commandplus.dbBest for small and medium servers. To back it up, stop the server and copy the file.
- Create an empty database and a user with full access to it.
- Fill in the connection details.
- Restart the server.
storage:
type: mysql
mysql:
host: localhost
port: 3306
database: commandplus
username: commandplus
password: "your-password"
use-ssl: falseTables are created automatically on first start. They all start with commandplus_, so the database can be shared with other plugins.
Best for networks, or when you want to browse or back up history with normal database tools.
- All database work runs on a separate background thread, so it does not block the server tick.
- Block logs are queued and written in batches every
logblock.flush-secondsseconds. The queue is flushed when you run/logblockand when the server stops. - Old rows are deleted at startup based on
logblock.retention-daysandsignspy.retention-days. - If the connection is lost, MySQL reconnects automatically on the next operation.
History is not migrated between SQLite and MySQL. Switching starts with an empty history. The old data stays in the old database, so you can switch back.
The plugin keeps running, but /signspy history, /signspy tp, /signspy clear and /logblock will report that the database is unavailable. The console shows the reason. See the FAQ.