ProtocolLib

3M Downloads

getOptionalTeamParameters returns an Object

chasertw123 opened this issue ยท 1 comments

commented
  • 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.

commented

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?