ProtocolLib

3M Downloads

[Paper 1.21.7] Legacy PlayerLoginEvent detected

x9nico opened this issue ยท 4 comments

commented
  • This issue is not solved in a development build

Describe the bug
A clear and concise description of what the bug is.

When I'm joining my Paper 1.21.7 Server with Protocollib on my Server, I have this warning:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Create 1.21.7 Paper Server
  2. Upload Protocollib on your Server
  3. Join your Server
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

it should works

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Version Info
Provide your ProtocolLib install info with /protocol dump through pastebin.

https://pastebin.com/zjzvEmxx

Additional context
Add any other context about the problem here.

commented

finally, a consequence of the paper hard fork. i feared this day would come. will require some thinking on how best to handle it since this event does not appear to exist in spigot

commented

finally, a consequence of the paper hard fork. I feared this day would come. will require some thinking on how best to handle it, since this event does not appear to exist in Spigot

Mmmh, you can't try like a condition with the paper's mapping? If the paper's mapping exists (for example), you're using this event instead of the new one.
Or, you're filtering the /version (by checking the MC version)?

commented

right, that's the basic idea. challenge is that we compile against spigot

commented

right, that's the basic idea. challenge is that we compile against spigot

After some search, it says that you can pass through reflections (like Bukkit.getServer().getClass().getPackage().getName();).

It shouldn't be a problem to compile against Spigot