Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teams suffix/prefix limits is based on server version #960

Open
f4n74z14 opened this issue Aug 21, 2024 · 7 comments
Open

Teams suffix/prefix limits is based on server version #960

f4n74z14 opened this issue Aug 21, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@f4n74z14
Copy link

Describe the bug
If you have packet-based plugins for teams, PacketEvents do not support them (extended limits and etc.) because determines version from the server rather than the client.

Software brand
PaperSpigot 1.8.8

Plugins
ViaVersion, GrimAC (2.3.67), TAB

How To Reproduce
Steps to reproduce the behavior:

  1. Set prefix more than 16 chars in TAB on 1.8.8 server
  2. Try decode PlayServerTeam
  3. The error will appear

Expected behavior
PacketEvents determines version from the client rather than the server.

@f4n74z14 f4n74z14 added the bug Something isn't working label Aug 21, 2024
@AoElite
Copy link
Contributor

AoElite commented Aug 21, 2024

@f4n74z14 You need to send the error

@f4n74z14
Copy link
Author

@f4n74z14 You need to send the error

https://pastebin.com/ZZVpkiKn

@SamB440
Copy link
Contributor

SamB440 commented Aug 25, 2024

How does via handle this?

@f4n74z14
Copy link
Author

I haven't looked into Via's code, but logically I don't see why the server version is used when writing/reading a client-only packet.

@SamB440
Copy link
Contributor

SamB440 commented Aug 26, 2024

Server version is used in all packets because via expects packets sent from the server to be of that version, likewise packetevents does, otherwise you get errors due to differing client and server versions.

@f4n74z14
Copy link
Author

You are right! Perhaps this could be done by combining the client and server versions, for example: the packet structure would be server based and the limits would be client based. (I looked how it is done in BungeeCord, there the limits are the same for all - Short.MAX_VALUE).

@f4n74z14 f4n74z14 changed the title Teams packet is based on server version Teams suffix/prefix limits is based on server version Aug 26, 2024
@f4n74z14
Copy link
Author

It's also an issue for team name limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants