Closed KowalskyExperto closed 2 years ago
Describe the bug This bug show's a lot of errors on terminal when somebody joins to the server, it says a lot of bugs of something about AsyncPlayerPreLoginEvent and PlayerJoinEvent to PunishmentsX
To Reproduce Steps to reproduce the behavior:
- Start the server.
- Join to the server.
- The error appears on console.
Console
[22:45:01 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.UnsupportedOperationException: null at java.util.AbstractList.add(AbstractList.java:153) ~[?:?] at java.util.AbstractList.add(AbstractList.java:111) ~[?:?] at io.github.punishmentsx.profiles.Profile.addIp(Profile.java:75) ~[PunishmentsX-1.0-shaded.jar:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerPreLogin(JoinListener.java:78) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor347.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerLoginPacketListenerImpl$LoginHandler.fireEvents(ServerLoginPacketListenerImpl.java:396) ~[?:?] at net.minecraft.server.network.ServerLoginPacketListenerImpl$1.run(ServerLoginPacketListenerImpl.java:285) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] [22:45:01 INFO]: UUID of player KowalskyExperto is 1bae2369-11bc-3d50-be37-06c7e7b77b19 [22:45:01 ERROR]: Could not pass event PlayerJoinEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.UnsupportedOperationException: null at java.util.AbstractList.add(AbstractList.java:153) ~[?:?] at java.util.AbstractList.add(AbstractList.java:111) ~[?:?] at io.github.punishmentsx.profiles.Profile.addIp(Profile.java:75) ~[PunishmentsX-1.0-shaded.jar:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerJoin(JoinListener.java:95) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor346.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:363) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:305) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:305) ~[?:?] at net.minecraft.network.Connection.tick(Connection.java:526) ~[?:?] at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:201) ~[?:?] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1636) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-198] at java.lang.Thread.run(Thread.java:833) ~[?:?] [22:45:01 INFO]: KowalskyExperto joined the server
Server Information:
- Sever Software: 1.18.1 PaperSpigot
- Database: sqlite
- Java Version: Java 17
I can't seem to reproduce the issue. I created a 1.18.1 paperspigot server with Java Runtime 17 and used PunishmentsX with default config (SQLite) and the plugin was fully functional on my end. Do you have any more information that could help me to reproduce your issue?
I update the plugin to 1.1.10, the bug still continue, but then, i stop the server, deleted the folder PunishmentsX and started the server, then the bug don't show, but now, when the plugin nlogin kick someone by wrong password, show's this:
[17:23:55 INFO]: KowalskyExperto joined the server [17:23:55 INFO]: KowalskyExperto[/127.0.0.1:50126] logged in with entity id 259 at ([lobby]0.5, 72.0, 0.5) [17:23:59 ERROR]: Could not pass event PlayerKickEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.NullPointerException: Cannot invoke "String.length()" because "input" is null at net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl.deserialize(LegacyComponentSerializerImpl.java:242) ~[adventure-text-serializer-legacy-4.9.3.jar:?] at org.bukkit.event.player.PlayerKickEvent.setLeaveMessage(PlayerKickEvent.java:134) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at io.github.punishmentsx.listeners.QuitListener.onPlayerKick(QuitListener.java:38) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor433.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.disconnect(ServerGamePacketListenerImpl.java:443) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.disconnect(ServerGamePacketListenerImpl.java:421) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.kickPlayer(CraftPlayer.java:513) ~[paper-1.18.1.jar:git-Paper-198] at com.nickuc.login.ζΠΨθμδμθγκΣηω.e(:92) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-198] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-198] at java.lang.Thread.run(Thread.java:833) ~[?:?] [17:23:59 INFO]: KowalskyExperto lost connection: La contraseña ingresada es incorrecta.
I update the plugin to 1.1.10, the bug still continue, but then, i stop the server, deleted the folder PunishmentsX and started the server, then the bug don't show, but now, when the plugin nlogin kick someone by wrong password, show's this:
[17:23:55 INFO]: KowalskyExperto joined the server [17:23:55 INFO]: KowalskyExperto[/127.0.0.1:50126] logged in with entity id 259 at ([lobby]0.5, 72.0, 0.5) [17:23:59 ERROR]: Could not pass event PlayerKickEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.NullPointerException: Cannot invoke "String.length()" because "input" is null at net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl.deserialize(LegacyComponentSerializerImpl.java:242) ~[adventure-text-serializer-legacy-4.9.3.jar:?] at org.bukkit.event.player.PlayerKickEvent.setLeaveMessage(PlayerKickEvent.java:134) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at io.github.punishmentsx.listeners.QuitListener.onPlayerKick(QuitListener.java:38) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor433.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.disconnect(ServerGamePacketListenerImpl.java:443) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.disconnect(ServerGamePacketListenerImpl.java:421) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.kickPlayer(CraftPlayer.java:513) ~[paper-1.18.1.jar:git-Paper-198] at com.nickuc.login.ζΠΨθμδμθγκΣηω.e(:92) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-198] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-198] at java.lang.Thread.run(Thread.java:833) ~[?:?] [17:23:59 INFO]: KowalskyExperto lost connection: La contraseña ingresada es incorrecta.
This seems a lot like a bug/incompatibility with your login plugin. Does the plugin work without error without your login plugin?
Fixed in release 1.1.11. Thanks for reporting this bug!
Describe the bug This bug show's a lot of errors on terminal when somebody joins to the server, it says a lot of bugs of something about AsyncPlayerPreLoginEvent and PlayerJoinEvent to PunishmentsX
To Reproduce Steps to reproduce the behavior:
Console
[22:45:01 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.UnsupportedOperationException: null at java.util.AbstractList.add(AbstractList.java:153) ~[?:?] at java.util.AbstractList.add(AbstractList.java:111) ~[?:?] at io.github.punishmentsx.profiles.Profile.addIp(Profile.java:75) ~[PunishmentsX-1.0-shaded.jar:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerPreLogin(JoinListener.java:78) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor347.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerLoginPacketListenerImpl$LoginHandler.fireEvents(ServerLoginPacketListenerImpl.java:396) ~[?:?] at net.minecraft.server.network.ServerLoginPacketListenerImpl$1.run(ServerLoginPacketListenerImpl.java:285) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] [22:45:01 INFO]: UUID of player KowalskyExperto is 1bae2369-11bc-3d50-be37-06c7e7b77b19 [22:45:01 ERROR]: Could not pass event PlayerJoinEvent to PunishmentsX vgit-PunishmentsX-aa56975 java.lang.UnsupportedOperationException: null at java.util.AbstractList.add(AbstractList.java:153) ~[?:?] at java.util.AbstractList.add(AbstractList.java:111) ~[?:?] at io.github.punishmentsx.profiles.Profile.addIp(Profile.java:75) ~[PunishmentsX-1.0-shaded.jar:?] at io.github.punishmentsx.listeners.JoinListener.onPlayerJoin(JoinListener.java:95) ~[PunishmentsX-1.0-shaded.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor346.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:git-Paper-198] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:363) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:305) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:305) ~[?:?] at net.minecraft.network.Connection.tick(Connection.java:526) ~[?:?] at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:201) ~[?:?] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1636) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-198] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-198] at java.lang.Thread.run(Thread.java:833) ~[?:?] [22:45:01 INFO]: KowalskyExperto joined the server
Server Information: