2FA icon indicating copy to clipboard operation
2FA copied to clipboard

PlayerJoinEvent

Open 123Happy123y11 opened this issue 9 months ago • 2 comments

it said Could not pass event PlayerJoinEvent to 2FA v1.7.1 on the console

[2FA] Plugin 2FA v1.7.1 generated an exception while executing task 11098 java.lang.NullPointerException: Cannot invoke "com.lielamar.auth.bukkit.utils.version.Version$ServerVersion.above(com.lielamar.auth.bukkit.utils.version.Version$ServerVersion)" because "this.this$0.version" is null at 2FA-1.7.1.jar/com.lielamar.auth.bukkit.handlers.AuthHandler$1.run(AuthHandler.java:219) ~[2FA-1.7.1.jar:?] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[paper-1.21.1.jar:1.21.1-131-84281ce] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.1.jar:1.21.1-131-84281ce] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.1.jar:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?

123Happy123y11 avatar Mar 23 '25 03:03 123Happy123y11

Same.

This server is running CraftBukkit version 4458-Spigot-73860e0-fb3f2b6 (MC: 1.21.4) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

[01:43:07] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to 2FA v1.7.1 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:601) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:588) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.players.PlayerList.a(PlayerList.java:299) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.a(ServerConfigurationPacketListenerImpl.java:168) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.a(SourceFile:22) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.a(SourceFile:8) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$0(PlayerConnectionUtils.java:35) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:164) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1319) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:210) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.util.thread.IAsyncTaskHandler.B(SourceFile:138) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.bv(MinecraftServer.java:1298) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.B(MinecraftServer.java:1291) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:147) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1248) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.x_(MinecraftServer.java:1258) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1101) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[spigot-1.21.4.jar:4458-Spigot-73860e0-fb3f2b6] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] Caused by: java.lang.NullPointerException: Cannot invoke "com.lielamar.auth.bukkit.utils.version.Version$ServerVersion.above(com.lielamar.auth.bukkit.utils.version.Version$ServerVersion)" because "this.version" is null at com.lielamar.auth.bukkit.handlers.AuthHandler.removeQRItem(AuthHandler.java:339) ~[?:?] at com.lielamar.auth.bukkit.listeners.OnPlayerConnection.onPlayerJoin(OnPlayerConnection.java:37) ~[?:?] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?] ... 22 more

kotaru34 avatar Apr 05 '25 23:04 kotaru34

Hey, this issue will be fixed in 2.0, it happens due to Version detection not finding a fitting value in a list of supported versions.

Sadly it'll take time to update the 2FA to 2.0 as there are many changes required to improve and fix the plugin, and testing is very limited (unless some people would volunteer to test the system on their server).

There are many challenges such as fixing some possible security vulnerabilities that might exist in the default proxy communication system (no redis or rabbitmq).

DirtyConcept avatar Jun 19 '25 13:06 DirtyConcept