
Attachment does not belong to this permissible.
bobhenl opened this issue ยท 5 comments
Server Implementation
Paper
Server Version
1.21.4
Describe the bug
1.21.4 version -> didn't happen on 1.21.1
Hello, when some player disconnects, I receive this error:
[08:40:28] [Server thread/ERROR]: Could not pass event PlayerQuitEvent to FastAsyncWorldEdit v2.12.4-SNAPSHOT-1011;7160792
java.lang.IllegalArgumentException: Attachment does not belong to this permissible.
at me.lucko.luckperms.bukkit.inject.permissible.LuckPermsPermissible.removeAttachment(LuckPermsPermissible.java:283) ~[?:?]
at org.bukkit.craftbukkit.entity.CraftHumanEntity.removeAttachment(CraftHumanEntity.java:270) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.fastasyncworldedit.bukkit.BukkitPermissionAttachmentManager.removeAttachment(BukkitPermissionAttachmentManager.java:41) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.sk89q.worldedit.bukkit.BukkitPlayer.unregister(BukkitPlayer.java:454) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.fastasyncworldedit.bukkit.FaweBukkit.onPlayerQuit(FaweBukkit.java:276) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor2451.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:556) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:540) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.network.ServerGamePacketListenerImpl.removePlayerFromWorld(ServerGamePacketListenerImpl.java:2271) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2251) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2238) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.network.Connection.handleDisconnection(Connection.java:919) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:268) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.tickConnection(MinecraftServer.java:1965) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.dedicated.DedicatedServer.tickConnection(DedicatedServer.java:498) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1938) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1370) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:344) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Previous Luckperms version: 146
Now: 151 https://luckperms.net/download
Can it be fixed please?
To Reproduce
Player disconnected &error occurred, I'm not sure what could cause it.
Expected behaviour
No error
Screenshots / Videos
No response
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/e50b294a18b244bbb9ee1da2e31b3b8a
Fawe Version
[15:40:01 INFO]: FastAsyncWorldEdit version 2.12.4-SNAPSHOT-1011;7160792 [15:40:01 INFO]: Blazingly fast world manipulation for builders, large networks and developers. [15:40:01 INFO]: Website: https://www.spigotmc.org/resources/13932/ [15:40:01 INFO]: Authors: Empire92, MattBDev, IronApollo, dordsor21 and NotMyFault
Checklist
- I have included a Fawe debugpaste.
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
No response
Hello,
I am facing a very similar issue but my stacktrace contains no LuckPerms reference, suggesting the issue do not come from that plugin:
[00:38:16 INFO]: indyteo lost connection: Disconnected
[00:38:16 ERROR]: Could not pass event PlayerQuitEvent to FastAsyncWorldEdit v2.12.4-SNAPSHOT-1011;7160792
java.lang.IllegalArgumentException: Given attachment is not part of Permissible object CraftPlayer{name=indyteo}
at org.bukkit.permissions.PermissibleBase.removeAttachment(PermissibleBase.java:160) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.entity.CraftHumanEntity.removeAttachment(CraftHumanEntity.java:275) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.fastasyncworldedit.bukkit.BukkitPermissionAttachmentManager.removeAttachment(BukkitPermissionAttachmentManager.java:41) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.sk89q.worldedit.bukkit.BukkitPlayer.unregister(BukkitPlayer.java:454) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar/com.fastasyncworldedit.bukkit.FaweBukkit.onPlayerQuit(FaweBukkit.java:276) ~[FastAsyncWorldEdit-Paper-2.12.4-SNAPSHOT-1011.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:513) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:500) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.network.ServerGamePacketListenerImpl.removePlayerFromWorld(ServerGamePacketListenerImpl.java:2088) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2067) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2053) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.network.Connection.handleDisconnection(Connection.java:866) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:270) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.MinecraftServer.tickConnection(MinecraftServer.java:1761) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.dedicated.DedicatedServer.tickConnection(DedicatedServer.java:427) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1737) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1529) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1251) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-69-bdfad1c]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
If needed, I can provide other debug info as well, just ask me.
Thanks!
Duplicate of #3025
Don't think this is LuckPerms issue, we're seeing same exceptions with our custom permission plugin.
I think misconfiguration of WorldGuard would cause this. In addition to exception we also had an issue where permissions would not be applied (and especially removed properly), removing FAWE fixed the issue, but I found out just now it's actually WorldGuard issue (removing FAWE would effectively remove WG too), more specifically bad wepif.yml file, combined with plugin loading order where Vault and permission plugin registering in Vault would be loaded before WG.
Loading WG after Vault and permission plugin are fully set-up would fix the issue, disabling all resolvers in wepif.yml would also fix the issue. Hope this helps, not really FAWE issue tho.