betterphp / BloodMoon

A plugin for Bukkit based Minecraft servers to add a new mechanic similar to the bloodmoon event in Terraria
http://dev.bukkit.org/server-mods/bloodmoon/
9 stars 15 forks source link

NPE #42

Closed betterphp closed 11 years ago

betterphp commented 11 years ago

getting this error with your 0.20.2

2012-12-30 11:22:49 [SEVERE] Could not pass event PlayerPortalEvent to BloodMoon v0.20.2
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.changeDimension(PlayerList.java:477)
    at net.minecraft.server.v1_4_6.EntityPlayer.b(EntityPlayer.java:339)
    at net.minecraft.server.v1_4_6.Entity.y(Entity.java:272)
    at net.minecraft.server.v1_4_6.EntityLiving.y(EntityLiving.java:310)
    at net.minecraft.server.v1_4_6.Entity.j_(Entity.java:237)
    at net.minecraft.server.v1_4_6.EntityLiving.j_(EntityLiving.java:508)
    at net.minecraft.server.v1_4_6.EntityHuman.j_(EntityHuman.java:156)
    at net.minecraft.server.v1_4_6.EntityPlayer.g(EntityPlayer.java:194)
    at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:351)
    at net.minecraft.server.v1_4_6.Packet10Flying.handle(SourceFile:136)
    at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
    at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
    at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
    at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:585)
    at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
    at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:481)
    at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:416)
    at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
    at uk.co.jacekk.bukkit.bloodmoon.feature.LockInWorldListener.onPlayerTeleport(LockInWorldListener.java:35)
    at uk.co.jacekk.bukkit.bloodmoon.feature.LockInWorldListener.onPlayerPortal(LockInWorldListener.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    ... 22 more