libraryaddict / LibsDisguises

Minecraft disguise plugin
https://www.spigotmc.org/resources/libs-disguises.32453/
Other
253 stars 130 forks source link

Received packet for unknown team client warning. #627

Closed mibby closed 2 years ago

mibby commented 2 years ago

LibsDisguises dev 1004 Purpur dev 1417 (Paper 1.17.1)

Noticed this in my client logs when I join the server. Is there any way to prevent this from occurring? https://github.com/libraryaddict/LibsDisguises/blob/master/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java#L1423-L1440

I don't use any side scoreboards and let other plugins such as BungeeTabListPlus & TAB handle nametags / tab menu.

Client log on login to server.

[20:01:03] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_a: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_8: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_4: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_6: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_NoName: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_2: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_1: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_0: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_3: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_9: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_7: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_b: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_5: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_f: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_e: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_d: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Received packet for unknown team LD_Color_c: team action: REMOVE, player action: null
[20:01:03] [Render thread/WARN]: Unknown custom packed identifier: minecraft:register
[20:01:04] [Render thread/INFO]: [CHAT] /----------------=Welcome to censored=---------------\
[20:01:04] [Render thread/INFO]: [CHAT] |              There are currently 1 players online.
[20:01:04] [Render thread/INFO]: [CHAT] |     Website: censored - Discord: censored
[20:01:04] [Render thread/INFO]: [CHAT] \--------------------------------------------------/
[20:01:04] [Render thread/INFO]: [CHAT] You have no new mail.
[20:01:04] [Render thread/INFO]: Loaded 0 advancements
[20:01:04] [Render thread/INFO]: [CHAT] [+] mibby has joined the server.

Server LibsDisguises start-up log.

[23:01:14] [Server thread/INFO]: [LibsDisguises] Enabling LibsDisguises v10.0.26-SNAPSHOT
[23:01:14] [Server thread/INFO]: [LibsDisguises] File Name: LibsDisguises.jar
[23:01:14] [Server thread/INFO]: [LibsDisguises] Discovered nms version: v1_17_R1
[23:01:14] [Server thread/INFO]: [LibsDisguises] Jenkins Build: #1004
[23:01:14] [Server thread/INFO]: [LibsDisguises] Build Date: 11/10/2021 02:40
[23:01:14] [Server thread/INFO]: [LibsDisguises] Found a premium Lib's Disguises jar (v10.0.26, build #972, created 16/07/2021 20:00)
[23:01:14] [Server thread/INFO]: [LibsDisguises] Registered to: 819 (18)
[23:01:14] [Server thread/INFO]: [LibsDisguises] Premium enabled, thank you for supporting Lib's Disguises!
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded 168 translations for DISGUISES with 0 changed
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded 265 translations for MESSAGES with 6 changed
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded 185 translations for DISGUISE_OPTIONS with 0 changed
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded 1647 translations for DISGUISE_OPTIONS_PARAMETERS with 0 changed
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded custom disguise Warrior
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded custom disguise Topsy
[23:01:16] [Server thread/INFO]: [LibsDisguises] Loaded 2 custom disguises
[23:01:16] [Server thread/INFO]: [LibsDisguises] Config is up to date!
[23:01:16] [Server thread/INFO]: [LibsDisguises] The author sees Metrics disabled, the author is sad

nametags.yml

# This config file is about the names that appear over heads! A fair bit of player disguise stuff is in players.yml however

# This is only called into action when the disguise is constructed using the commands.
# And when the disguise supports that. This will not be used at all for plugins constructing the disguises for instance.
# Such as prophunt. Its also false because its kind of a retarded feature.
# This is pretty simple. It shows the players displayname (Name as it appears in chat) above their head.
# This also overrides any custom name they have set in their disguise options.
# This does not take effect on player disguises
# Permission to disable is libsdisguises.disablename
ShowNamesAboveDisguises: false

# This supports the above option.
# If this is true, then the name shown above the head appears regardless of if you are looking at the disguise directly or not.
NameAboveHeadAlwaysVisible: false

# What should the name be shown as?
# Two placeholders can be used.
# %simple% = The very basic name, 'libraryaddict'
# %complex% = Name will be grabbed from scoreboard or display name if scoreboard fails.
NameAboveDisguise: '%complex%'

# There are four options you can use
# VANILLA - Names are limited to 16 chars but can't be changed without resending disguise
# TEAMS - Names are limited to 32 chars but can be changed willy nilly
# EXTENDED - Names are limited to 48 chars but can't be changed without resending disguise
# ARMORSTANDS - Names are limited to 256 chars, uses a mix of armorstands and teams to do this. Slightly hacky.
# Downside of armorstand names is that there's a chance of it becoming desynced from the player disguise
# And names will always display even if the entity is invisible using potion effects
# With ArmorStands & the Premium version, you can also use multiple lines in the nametag, use \n as a seperator.
# Read the next option for more information.
PlayerNames: 'TEAMS'

# If doing ARMORSTANDS in the above option, should CustomNames for non-player disguises be overridden to use armorstands too?
# This allows multiline names if you have purchased the plugin
# Use \n for a new line, though if you're doing it in a config you may need to use \\n as " and ' are treated differently.
OverrideCustomNames: true

# More options in case you want to disable a specific setting of the scoreboard
# You can customize self disguises scoreboard in players.yml
Scoreboard:
  # Should it modify the scoreboard to turn collisions off?
  Collisions: true
  # Should it modify the scoreboard teams to disable seeing friendly invisibles?
  DisableFriendlyInvisibles: false
  # Should the scoreboard warn you if it detects a potential conflict?
  # If self disguises are disabled, or the scoreboard is using IGNORE_SCOREBOARD then this does nothing.
  WarnConflict: true
  # When disguising as a player, should the prefix/suffix of the player disguise name copy the team info?
  # Only takes effect if using PlayerNames TEAMS or ARMORSTANDS
  CopyPlayerTeamInfo: true

I assume setting Collisions: false would fix it? I'm just not sure why it's being set when the player isn't disguised and is receiving packets for unknown LD teams.

I force players to reconnect automatically on server restarts as well -- could it be players joining before LD created the teams post-initialization?

libraryaddict commented 2 years ago

Closing as I don't think I'm doing anything funny with scoreboard teams.