kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
49 stars 23 forks source link

Velocity 1.20.2: Trials and Tribulations of Cross-Server Chat #2509

Closed JerichoTorrent closed 8 months ago

JerichoTorrent commented 8 months ago

"/version ChatControlRed" - plugin version

10.22.5

Are you using MySQL?

Yes

Error log (if applicable)

No response

"/chc debug" output (strongly recommended)

debug.zip

Information about the issue/bug

I use VelocityControl on the proxy (Velocity 1.20.2) and ChatControl Red 10.22.5 on my 3 1.20.2 backend servers. I provided a debug from one backend. My issue is twofold.

  1. I can't find either in the wiki, discord, or through my trial and error a tried and true method to enable cross-server chat in my global channel. I have my settings.yml channels list written as follows:
    List:
    Survival:
      Format: chat
      Format_Spy: '@noprefix chat'
      Discord_Channel_Id: 1100905925507817533
      Format_Discord: none
    Global:
      Format: global-chat
      Discord_Channel_Id: 1182819310574518393
      Bungee: true
    Admin:
      Format: admin-chat
      Format_Console: '[Admin-chat {player}] {message}'
      Discord_Channel_Id: 1100917607642693672
      Bungee: true
      Format_Discord: none
    Ranged:
      Format: '&6[ranged] &7{pl_prefix+}{player}:{pl_suffix} {chat_color}{chat_decoration}{message}'
      Range: 100
      Bungee: false
    Staff:
      Format: staff
      Bungee: true

    All 3 backends are formatted very similarly. The only differences are the "survival" channel is of course named differently on other servers and has different discord channel IDs. That's just context and not relevant. I also have the bungee.integration set to true. I assume the word "Bungee" can be substituted for Velocity, since I'm not seeing an official full-suite integration of Velocity into this plugin. No matter what I try I can't read messages from other servers even though I am in the global channel. Same thing for staff and admin channels.

  2. I use VelocityControl as mentioned prior and I'm running into a couple issues. I have join and quit messages turned off on the backend in favor of VelocityControl's join, quit and switch messages which I like much more. However, sometimes VelocityControl misses a player joining. I'll see people chat without me seeing them having ever joined. I'll see people leave then see them still on the server, because VelocityControl missed when they joined back. Is there any help you can provide on how to set this up properly? It just seems like a lack of consistency with catching join and quit messages. Before it is asked, yes the server names in Velocity and VelocityControl are setup right. Any clarity you can provide on both issues would be most appreciated.
james090500 commented 8 months ago

Please make sure BungeeCord is enabled at the very bottom of settings.yml

image

Regarding velocity join messages I am aware and tryign to track it down

JerichoTorrent commented 8 months ago

Please make sure BungeeCord is enabled at the very bottom of settings.yml

image

Regarding velocity join messages I am aware and tryign to track it down

Thanks, yes BungeeCord is enabled. I will be patient if a fix has to be implemented, but if there’s anything I can do to get messages across backend servers to appear in the global chat channel I setup, please let me know. I can only see messages in the server I am currently playing in.

kangarko commented 8 months ago

Hey!

Can you try writing Bungee option with the value on true inside settings.yml where you have your global channel?

Screenshot 2023-12-23 at 18 55 57

I just tested, got it working even without that option but just in case. If that won't help, set Debug key in settings.yml on spigot and velocity to "[bungee]" and you should see some logs that might help.

And if even these won't, please ping @james090500 as this might be velocity related.

Matej

kangarko commented 8 months ago

Closing due to inactivity, comment below if you still need help?

JerichoTorrent commented 8 months ago

@kangarko @james090500 thank you both for your help. I have been very sick so have taken a step back from server development, sorry about that. I have no idea what I did, perhaps some combination of adding or removing the bungee integration and bungee: true from the list, to maybe a couple other changes but now it works perfectly. Wish I was able to provide a fix to others with the same issue but I’m assuming just doing the above as intended should work. As for VelocityControl missing join messages, looks like James was looking into that. Not really a big deal to me, but wish you luck if it’s something that requires a fix and it’s not on my end. Thanks again for the help.

kangarko commented 8 months ago

Thanks for following up and sharing how you fixed it. I am happy to help you further in case you got any more questions,

kangarko commented 8 months ago

And get well soon!