Event.PLAYER_JOIN will could not be passed to plugin

Discussion in 'Plugin Development' started by Mark Lohstroh, Mar 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Mark Lohstroh

    I have a plugin where I'm trying to avoid to load everyone's data on the server boot up. So I'm registering to the Event.Player_Login with Normal priority. But when i do this, I get this error message.

    22:27:52 [SEVERE] Could not pass event PLAYER_LOGIN to CustomPVP
    java.lang.NullPointerException
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:207)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:145)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:76)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Do i need to use PLAYER_JOIN? Cause i tried that with all priorities.. Whats going wrong here?
     
  2. Offline

    darknesschaos

    what are you trying to do? you are getting a null pointer somewhere.
     
  3. Offline

    Edward Hand

    PLAYER_LOGIN and PLAYER_JOIN are two different things. You are using PLAYER_LOGIN but I think you should be using PLAYER_JOIN.
     
  4. Offline

    Mark Lohstroh

    I found the error. I hadn't constructed my listener... I gotta pay more attention to that..
     
Thread Status:
Not open for further replies.

Share This Page