minecrafter / RedisBungee

The leading player synchronization system for BungeeCord
https://www.spigotmc.org/resources/redisbungee.13494/
Eclipse Public License 1.0
159 stars 123 forks source link

Redis PubSub disconnecting resets channels #47

Open SystemUpdate opened 7 years ago

SystemUpdate commented 7 years ago

The RedisBungee API offers an API for plugins to register their own channels and then use the PubSubMessageEvent however if the pubsub throws an error, it won't register what channels external plugins did and doesn't provide a way for plugins to know of an error that caused its channel to be unregistered.

I propose that channels registered by plugins are stored in a set that can be used to register those channels when the PubSub recovers