Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Could not pass event PlayerLoginEvent to CommandBook

Open
#172 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
backend, game-dev

Research direction

Start at com.sk89q.commandbook.session.SessionComponent.onLogin(SessionComponent.java:325) and reproduce a player login on the reported CraftBukkit 1.4.6 environment. Trace the null value behind the PlayerLoginEvent exception; done means login completes without the CommandBook stacktrace.

Written by the indexing model from the issue text.

Description

CMDBOOK-2190 - Reported by unusualbob

On player login a stacktrace appears in the console.

13:11:48 [SEVERE] Could not pass event PlayerLoginEvent to CommandBook v539-57d1a9e
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
        at net.minecraft.server.v1_4_6.PlayerList.attemptLogin(PlayerList.java:275)
        at net.minecraft.server.v1_4_6.PendingConnection.d(PendingConnection.java:121)
        at net.minecraft.server.v1_4_6.PendingConnection.c(PendingConnection.java:45)
        at net.minecraft.server.v1_4_6.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:44)
        at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:29)
        at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
        at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
        at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
        at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
        at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
        at com.sk89q.commandbook.session.SessionComponent.onLogin(SessionComponent.java:325)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
        ... 13 more

CraftBukkit version git-Bukkit-1.4.6-R0.3-7-g48dcb3e-b2591jnks (MC: 1.4.6) (Implementing API version 1.4.6-R0.4-SNAPSHOT)

Dominant language
Java
Stars
151
Forks
104
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EngineHub/CommandBook

All issues in EngineHub/CommandBook

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.