Cross-server search (Velocity)¶
On a network where several Paper servers share one Spyglass database, the optional Velocity companion lets staff search all of them from the proxy.
It's read-only: it never logs anything and never rolls anything back. Each Paper server still needs Spyglass installed to record its own events and to run rollbacks.
Setup¶
- On each Paper server, give Spyglass a unique name and point it at the same database:
- Install the companion jar in the proxy's
plugins/folder and start the proxy once. It createsplugins/spyglass/config.conf. - Copy the
databaseblock from a Paper server'sconfig.confinto it and restart the proxy.
SQLite only works if the proxy can reach the same file (same machine or a shared folder). For a real network, use ClickHouse (recommended), MariaDB/MySQL or MongoDB.
Getting the companion jar
Releases from 1.1.1 on only include the Paper plugin. Build the companion from source with ./gradlew :spyglass-velocity:build; the jar is in spyglass-velocity/build/mc26.1.2/libs/.
Usage¶
The proxy uses its own command, /sgv, so it never hides the Paper /sg commands.
It takes the same search keys as /sg search, plus srv: to pick a server. Needs spyglass.search on the proxy; spyglass.search.ip reveals IP addresses.