Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Could not pass event PlayerReJoinEvent #1052

Open
krystian987 opened this issue Oct 7, 2024 · 1 comment
Open

Error Could not pass event PlayerReJoinEvent #1052

krystian987 opened this issue Oct 7, 2024 · 1 comment

Comments

@krystian987
Copy link

Describe the bug
When you leave a server during a game and there are enough players in the arena for the game not to end, when you rejoin the server you are rejoined to the arena but an error appears in the console

Error:
[16:16:14] [Server thread/ERROR]: Could not pass event PlayerReJoinEvent to BedWars1058 v24.9
org.bukkit.event.EventException: null
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:72) ~[patched_1.12.2.jar:git-Paper-1620]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.12.2.jar:git-Paper-1620]
at com.andrei1058.bedwars.arena.Arena.reJoin(Arena.java:1136) ~[?:?]
at com.andrei1058.bedwars.arena.ReJoin.reJoin(ReJoin.java:157) ~[?:?]
at com.andrei1058.bedwars.listeners.joinhandler.JoinListenerMultiArena.lambda$onJoin$0(JoinListenerMultiArena.java:73) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:840) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.andrei1058.bedwars.api.arena.team.ITeam.getIdentity()" because "team" is null
at com.andrei1058.bedwars.sidebar.BwTabList.getCreateTeamTabOrderPrefix(BwTabList.java:409) ~[?:?]
at com.andrei1058.bedwars.sidebar.BwTabList.getPlayerTabIdentifierAliveInTeam(BwTabList.java:463) ~[?:?]
at com.andrei1058.bedwars.sidebar.BwTabList.giveUpdateTabFormat(BwTabList.java:347) ~[?:?]
at com.andrei1058.bedwars.sidebar.BwSidebar.giveUpdateTabFormat(BwSidebar.java:242) ~[?:?]
at com.andrei1058.bedwars.api.sidebar.ISidebar.giveUpdateTabFormat(ISidebar.java:62) ~[?:?]
at com.andrei1058.bedwars.sidebar.SidebarService.lambda$handleReJoin$14(SidebarService.java:313) ~[?:?]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at com.andrei1058.bedwars.sidebar.SidebarService.handleReJoin(SidebarService.java:311) ~[?:?]
at com.andrei1058.bedwars.sidebar.ScoreboardListener.reJoin(ScoreboardListener.java:82) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor317.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.12.2.jar:git-Paper-1620]
... 13 more

System:
OS: Linux
Server software: Paper
Server Version: 1.12.2
Plugin Version: 24.9

@krystian987 krystian987 added the bug Something isn't working label Oct 7, 2024
@krystian987 krystian987 changed the title Error Error Could not pass event PlayerReJoinEvent Oct 7, 2024
@andrei1058
Copy link
Owner

any addons installed?

@andrei1058 andrei1058 removed the bug Something isn't working label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants