Discussion in 'Help' started by BlackRainbow, Feb 21, 2022.
Hello everyone I have an unexpected error, who can help? Link - https://crash.pmmp.io/view/5991579
Do you think that if I disable this plugin, there will be no error?
No, I was just commenting on the name of the plugin.
Your error was caused by you doing something with a player who wasn't online
Well, how can I find out which plugin does exactly that?
No idea. There's nothing in your backtrace to know what "plugin" caused it. This seems like it's an issue with your server itself
Or simply try uninstalling plugins one by one
So you think the problem isn't with the plugin?
Well that's my guess.
Hey! I have the exact same error with PMMP 4.2.1
I bet PurePerms causes the crash and it only happens after a player with "*" permission has been disconnected (by transfer) and a message is broadcasted. Right?
Yes! EXACTLY, why is it doing this ?
I think it happens in PlayerQuitEvent when PurePerms::unregisterPlayer() removes the PermissionAttachment. It causes that the player is added again to the broadcast channel subscribers, maybe because $player->removeAttachment() triggers permission recalculation.
A possible workaround would be to add the following line to the end of the function PurePerms::unregisterPlayer():
This patch seems to work, will tell you if the error is triggerred again! Tysm, appreciate the help.
I will maybe open a change request on the github page of Pureperms in order to patch the bug
Separate names with a comma.