DiscordSRV

DiscordSRV

86.8k Downloads

False-detection of client as Lunar Client

james090500 opened this issue ยท 6 comments

commented

Expected behavior

Only show lunar message to lunar clients

Actual behavior

Lunar message is shown to all clients

Steps to reproduce

This is a Velocity setup with 3 sub servers. (Hub, Survival, Creative). Each has DiscordSRV installed.

Step 1. Join Velocity.
Step 2. Switch servers.
Message will appear

image

Server software and version

git-Paper-234

Checks

  • I am not using an outdated version of DiscordSRV.
  • I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Anything else

If I join the hub first, then join creative it will show on creative only. Only shows on server switch

commented

I added a few debug messages related to the detection on snapshots. Please do the following,

  • Download & install the latest snapshot https://snapshot.discordsrv.com
  • Enable debug mode by setting DebugLevel to 1 and run /discordsrv reload on the server that the message appears on
  • Try reproducing the issue again (by switching to that server)
  • Post the debug messages you get here

Do you know of any other plugins that may be using LunarClient's messaging channels on your backend servers or your proxy?

commented

Hi,

Hope this helps!

I am using none Lunar messaging channels as far as I am aware.

[13:56:59 INFO]: UUID of player james090500 is ba4161c0-3a42-496c-8ae0-7d13372f3371
[13:56:59 INFO]: [DiscordSRV] [LP_CONTEXTS DEBUG] Player CraftPlayer{name=james090500} was not in cache when LP contexts were requested, unable to provide contexts data (online player: null)
[13:56:59 INFO]: [LuckPerms] [Messaging] Sending user ping for 'james090500' with id: a78d3ed9-6c6a-4dc2-9758-470cccb22355
[13:56:59 INFO]: [DiscordSRV] [MINECRAFT_TO_DISCORD DEBUG] Not handling possible unban for player james090500 (ba4161c0-3a42-496c-8ae0-7d13372f3371) because doing so is disabled in the config
[13:57:00 INFO]: james090500[/212.159.93.40:35480] logged in with entity id 87 at ([spawn]22.959460410608365, 74.8748536181636, -17.881673860545735)
[13:57:00 INFO]: [DiscordSRV] james090500 was sent a notice for having a degraded user experience due to LunarClient (You can use EnableIncompatibleClientAlert to disable the message if you'd like (Not recommended))
[13:57:00 INFO]: [DiscordSRV] [UNCATEGORIZED DEBUG] Received message channel register from channel lunarclient:pm for james090500
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] Group synchronization (#1) on authority for {james090500:U:james090500(231385835054956544)}. Synchronization cause: Player joined
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] Synchronisation is one way (Minecraft -> Discord)
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] Player james090500's Vault groups: [founder] (Player is online)
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {legend:R:LEGEND(598617504981450759)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {elder:R:ELDER(930580215707611206)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {donators:R:Donators(930580633170890792)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {default:R:GUEST(930579786542227488)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {premium:R:PREMIUM(401199308394725376)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {veteran:R:VETERAN(485904549195022351)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {member:R:MEMBER(930580100397797396)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {respected:R:RESPECTED(401199394763833344)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {vip:R:VIP(399902301319593984)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {regular:R:REGULAR(930580013995143252)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {champion:R:CHAMPION(666376095725256745)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {linked:R:Linked(930579469960355892)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] {player:R:PLAYER(930579891760541807)} adds Discord role
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] The following groups were granted due to having the discordsrv.sync.<group name> permission(s): legend | elder | donators | default | premium | veteran | member | respected | vip | regular | champion | linked | player
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] Synchronization failed for MB:james090500(U:james090500(231385835054956544) / G:CapeCraft(361888626990383115)): can't interact with member (server owner)
[13:57:00 INFO]: [DiscordSRV] [GROUP_SYNC DEBUG] Bot's top role in G:CapeCraft(361888626990383115): R:CapeBots(477607858201165826) (22)**
commented

What plugins do you have on Velocity?

commented

Badlion-ModApi-Velocity
LiteBans
VelocityControl-3.10.0
buycraftx-nanseee
LuckPerms-Velocity-5.4.2
VelocityGUI-1.2-SNAPSHOT
CapeCraft-3.0.0-SNAPSHOT
protocolize-velocity
VelocityWhitelist-1.0.1-SNAPSHOT
floodgate-velocity
TAB.v3.1.0

commented

Mind testing if it still happens on the latest snapshot, I disabled one of the three ways it checks if the client is Lunar, https://snapshot.discordsrv.com

commented

Looks to have stopped it.

No more Lunar warnings