ProtocolLib
ProtocolLib copied to clipboard
getOptionalTeamParameters returns an Object
- [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:
- Create a packet container of type PacketType.Play.Server.SCOREBOARD_TEAM
- Call packetContainer#getOptionalTeamParameters and read the 0 index.
- 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.
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?