Playtime trying to track mailmain with Postal from Citizens2
HammerHedd opened this issue ยท 3 comments
I've been trying to figure out why I"m getting random errors from playtime with no one logged in, and I think it is related to the postal citizen in citizens2 http://dev.bukkit.org/bukkit-plugins/postal/
What I think is happening is that Playtime is trying to track the "living entity" that is the postman, but then perhaps not finding a player attached to it? In any case, it doesn't appear to be causing anything more catastrophic than a slew of error messages in the console.
2013-08-10 09:41:50 [SEVERE] Could not pass event PlayerInteractEvent to Playtime v1.4.0
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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190)
at net.minecraft.server.v1_6_R2.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:53)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:92)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:86)
at net.minecraft.server.v1_6_R2.Entity.C(Entity.java:734)
at net.minecraft.server.v1_6_R2.Entity.move(Entity.java:677)
at net.minecraft.server.v1_6_R2.EntityLiving.e(EntityLiving.java:1187)
at net.minecraft.server.v1_6_R2.EntityHuman.e(EntityHuman.java:1229)
at net.citizensnpcs.npc.entity.EntityHumanNPC.moveOnCurrentHeading(EntityHumanNPC.java:217)
at net.citizensnpcs.npc.entity.EntityHumanNPC.l_(EntityHumanNPC.java:186)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.rogue.playtime.player.PlayerHandler.updatePlayer(PlayerHandler.java:84)
at com.rogue.playtime.listener.PlaytimeListener.onPlayerInteract(PlaytimeListener.java:131)
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
2013-08-10 09:41:50 [SEVERE] Could not pass event PlayerInteractEvent to Playtime v1.4.0
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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190)
at net.minecraft.server.v1_6_R2.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:53)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:92)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:86)
at net.minecraft.server.v1_6_R2.Entity.C(Entity.java:734)
at net.minecraft.server.v1_6_R2.Entity.move(Entity.java:677)
at net.minecraft.server.v1_6_R2.EntityLiving.e(EntityLiving.java:1187)
at net.minecraft.server.v1_6_R2.EntityHuman.e(EntityHuman.java:1229)
at net.citizensnpcs.npc.entity.EntityHumanNPC.moveOnCurrentHeading(EntityHumanNPC.java:217)
at net.citizensnpcs.npc.entity.EntityHumanNPC.l_(EntityHumanNPC.java:186)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.rogue.playtime.player.PlayerHandler.updatePlayer(PlayerHandler.java:84)
at com.rogue.playtime.listener.PlaytimeListener.onPlayerInteract(PlaytimeListener.java:131)
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
2013-08-10 09:41:51 [SEVERE] Could not pass event PlayerInteractEvent to Playtime v1.4.0
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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190)
at net.minecraft.server.v1_6_R2.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:53)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:92)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:86)
at net.minecraft.server.v1_6_R2.Entity.C(Entity.java:734)
at net.minecraft.server.v1_6_R2.Entity.move(Entity.java:677)
at net.minecraft.server.v1_6_R2.EntityLiving.e(EntityLiving.java:1187)
at net.minecraft.server.v1_6_R2.EntityHuman.e(EntityHuman.java:1229)
at net.citizensnpcs.npc.entity.EntityHumanNPC.moveOnCurrentHeading(EntityHumanNPC.java:217)
at net.citizensnpcs.npc.entity.EntityHumanNPC.l_(EntityHumanNPC.java:186)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.rogue.playtime.player.PlayerHandler.updatePlayer(PlayerHandler.java:84)
at com.rogue.playtime.listener.PlaytimeListener.onPlayerInteract(PlaytimeListener.java:131)
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
2013-08-10 09:41:51 [SEVERE] Could not pass event PlayerInteractEvent to Playtime v1.4.0
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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190)
at net.minecraft.server.v1_6_R2.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:53)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:92)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:86)
at net.minecraft.server.v1_6_R2.Entity.C(Entity.java:734)
at net.minecraft.server.v1_6_R2.Entity.move(Entity.java:677)
at net.minecraft.server.v1_6_R2.EntityLiving.e(EntityLiving.java:1187)
at net.minecraft.server.v1_6_R2.EntityHuman.e(EntityHuman.java:1229)
at net.citizensnpcs.npc.entity.EntityHumanNPC.moveOnCurrentHeading(EntityHumanNPC.java:217)
at net.citizensnpcs.npc.entity.EntityHumanNPC.l_(EntityHumanNPC.java:186)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.rogue.playtime.player.PlayerHandler.updatePlayer(PlayerHandler.java:84)
at com.rogue.playtime.listener.PlaytimeListener.onPlayerInteract(PlaytimeListener.java:131)
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
2013-08-10 09:41:51 [SEVERE] Could not pass event PlayerInteractEvent to Playtime v1.4.0
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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190)
at net.minecraft.server.v1_6_R2.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:53)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:92)
at net.minecraft.server.v1_6_R2.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:86)
at net.minecraft.server.v1_6_R2.Entity.C(Entity.java:734)
at net.minecraft.server.v1_6_R2.Entity.move(Entity.java:677)
at net.minecraft.server.v1_6_R2.EntityLiving.e(EntityLiving.java:1187)
at net.minecraft.server.v1_6_R2.EntityHuman.e(EntityHuman.java:1229)
at net.citizensnpcs.npc.entity.EntityHumanNPC.moveOnCurrentHeading(EntityHumanNPC.java:217)
at net.citizensnpcs.npc.entity.EntityHumanNPC.l_(EntityHumanNPC.java:186)
at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354)
at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335)
at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223)
at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.rogue.playtime.player.PlayerHandler.updatePlayer(PlayerHandler.java:84)
at com.rogue.playtime.listener.PlaytimeListener.onPlayerInteract(PlaytimeListener.java:131)
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)
Looks like I'm not checking if the object firing the event is a player. I'll play with it for v1.4.1 of playtime.
I'm releasing a fix soon with a re-write of the afk tracking system. It should work a little faster now and won't throw any null pointers as well.