ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

getOptionalTeamParameters returns an Object

Open chasertw123 opened this issue 1 year ago • 1 comments

  • [x] This issue is not solved in a development build

Describe the bug AbstractStructure#getOptionalTeamParameters returns an abstract structure containing just a java.lang.Object.

To Reproduce Steps to reproduce the behavior:

  1. Create a packet container of type PacketType.Play.Server.SCOREBOARD_TEAM
  2. Call packetContainer#getOptionalTeamParameters and read the 0 index.
  3. Cast to expected type.

Expected behavior For said method to return the correct type.

Version Info Latest Dev

Additional Information Not 100% sure but this seems to be due to retrieving the Internal Structure as I believe this is having the same issue.

chasertw123 avatar Jun 27 '24 14:06 chasertw123

Can you be a bit more specific about the types that you're expecting & the types you're getting? Also which server version are you running on?

derklaro avatar Jun 28 '24 07:06 derklaro