LuckPerms

LuckPerms

41.4k Downloads

[Forge] Use luckperms when player logout from death cause exception

Yann151924 opened this issue ยท 5 comments

commented

Description

I make a quick repo to have a better explanation of the problem. But the issue come when a player is killed and go to the title screen an exception is raised saying the capability is missing on him. It will trigger the PlayerLoggedOutEvent on forge but on a classic disconnect it work like normal like ESC -> disconnect or ALT+F4

Reproduction Steps

Kill yourself or /kill YourPseudo and then press title screen and title screen again and the exception appear
Kill yourself or /kill YourPseudo and then press respawn and no exception only the log i put

Expected Behaviour

No exception need to be made when i kill myself and disconnect from the server

Server Details

forge 1.18.2-40.1.60

LuckPerms Version

v5.4.30

Logs and Configs

Latest.log : https://pastebin.com/VMqYy7JD
Debug.log : https://pastebin.com/mX6hF4nx

Luckperms is the default one

Extra Details

The repositories for the mod to test : https://github.com/Mineaurion/testlp

I made this for better understanding but this is part of 2 pr i made for FTB Mods to add lp support : FTBTeam/FTB-Mods-Issues#285

commented

I did another test round for debugging and the problem doesn't appear after the server is restarted

commented

Will accept a PR to fix :)

commented

ce6031a

Please re-test using LP v5.4.61 -- https://luckperms.net/download

commented

Does this issue still occur on latest? If so, provide new logs.

commented

With the last version, the issue is not here anymore.
For detail in case i test with the v5.4.67 version