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

Channel register & listening mistake #71

Open MorkaZ opened 4 years ago

MorkaZ commented 4 years ago

Hi, you did small mistake in your main/listener class.
You have registered:
https://github.com/minecrafter/RedisBungee/blob/934e4543d695f1e79f6690ac4ee435e3fa5d50d4/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java#L371 But listening to:
https://github.com/minecrafter/RedisBungee/blob/934e4543d695f1e79f6690ac4ee435e3fa5d50d4/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java#L151

Here is solution to fix it: if ((event.getTag().equals("legacy:redisbungee") || event.getTag().equals("RedisBungee")) && event.getSender() instanceof Server) {

I am reporting it because I can not use RedisBungee channel due to this error while registering channel into spigot:
Channel must contain : separator (attempted to use RedisBungee)