-
Notifications
You must be signed in to change notification settings - Fork 5
Redis Cross Server Sync
Redis enables real-time vanish state synchronization across multiple servers on the same network.
Use Redis if you have multiple Paper/Spigot servers (e.g. a lobby + survival + creative) and want a player's vanish state to be reflected across all of them simultaneously.
Install Redis on your server or use a managed Redis service. Default port is 6379.
📁
plugins/Vanishpp/config.yml:storage: redis: enabled: true host: "localhost" port: 6379 password: "" # Leave empty if no auth is configured🔧 In-game:
/vconfig storage.redis.enabled true
🔄 Apply:/vreload
Enable Redis on every server in your network that runs Vanish++. All servers must point to the same Redis instance.
Redis works alongside your primary storage (YAML, MYSQL, or POSTGRESQL). Redis handles live sync messages only - persistent data still goes to the primary backend.
When a player vanishes or unvanishes on any server:
- Vanish++ publishes a sync message to a Redis channel
- All other servers subscribed to that channel receive the message
- They update their local vanish state for that player
Duplicate sync messages (caused by network flakiness or message replays) are ignored - the same state change will not be applied twice.
The Redis subscriber thread is gracefully shut down on plugin reload and server stop, with a timeout and proper resource cleanup to prevent connection leaks.