FactionsPlus

60 - Error of the PlayerDeathEvent and PlayerTeleportEvent

----- DO NOT CLEAR THIS TEXT AREA. PLEASE FILL OUT ALL THESE AREAS. -----

What steps will reproduce the problem?
1.In Games

What version of FactionsPlus are you using?
0.4.7

What version of Vault are you using?
1.2.17-b193

What version of Factions are you using?
1.6.8

Do you have an error log of what happened?

[SEVERE] Could not pass event PlayerDeathEvent to FactionsPlus
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    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.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:322)
    at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:173)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:679)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:215)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:864)
    at net.minecraft.server.EntityHuman.a(EntityHuman.java:1134)
    at net.minecraft.server.Entity.a(Entity.java:783)
    at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:467)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:415)
    at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:569)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
    at markehme.factionsplus.listeners.PowerboostListener.onEntityDeath(PowerboostListener.java:30)
    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:302)
    ... 21 more

and

[SEVERE] Could not pass event PlayerTeleportEvent to FactionsPlus
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    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.entity.CraftPlayer.teleport(CraftPlayer.java:342)
    at com.earth2me.essentials.Teleport.now(Teleport.java:258)
    at com.earth2me.essentials.Teleport.now(Teleport.java:283)
    at com.earth2me.essentials.commands.Commandtp.run(Commandtp.java:65)
    at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:96)
    at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:383)
    at com.earth2me.essentials.Essentials.onCommand(Essentials.java:301)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:822)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:782)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:765)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:569)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
    at markehme.factionsplus.listeners.TeleportsListener.onTeleport(TeleportsListener.java:191)
    at sun.reflect.GeneratedMethodAccessor88.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:302)
    ... 25 more

Please provide any additional information below.
My CraftBukkit is 1.2.5-R4.1 Build #02254

User When Change
MarkehMe Jul 15, 2012 at 10:16 UTC
follet2004 Jul 10, 2012 at 10:25 UTC Changed name from Error of the PlayerDeathEvent to Error of the PlayerDeathEvent and PlayerTeleportEvent

Changed description:
  1.6.8

  Do you have an error log of what happened?
+
- 2012-07-09 18:40:59 [SEVERE] Could not pass event PlayerDeathEvent to FactionsPlus
+ [SEVERE] Could not pass event PlayerDeathEvent to FactionsPlus
  org.bukkit.event.EventException
  	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
  	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
----------------------------------------
  	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
  	... 21 more

+ and
+
+ [SEVERE] Could not pass event PlayerTeleportEvent to FactionsPlus
+ org.bukkit.event.EventException
+ 	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
+ 	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.entity.CraftPlayer.teleport(CraftPlayer.java:342)
+ 	at com.earth2me.essentials.Teleport.now(Teleport.java:258)
+ 	at com.earth2me.essentials.Teleport.now(Teleport.java:283)
+ 	at com.earth2me.essentials.commands.Commandtp.run(Commandtp.java:65)
+ 	at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:96)
+ 	at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:383)
+ 	at com.earth2me.essentials.Essentials.onCommand(Essentials.java:301)
+ 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
+ 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
+ 	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484)
+ 	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:822)
+ 	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:782)
+ 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:765)
+ 	at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106)
+ 	at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
+ 	at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
+ 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114)
+ 	at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
+ 	at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83)
+ 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:569)
+ 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461)
+ 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
+ Caused by: java.lang.NullPointerException
+ 	at markehme.factionsplus.listeners.TeleportsListener.onTeleport(TeleportsListener.java:191)
+ 	at sun.reflect.GeneratedMethodAccessor88.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:302)
+ 	... 25 more
+
  Please provide any additional information below.
  My CraftBukkit is 1.2.5-R4.1 Build #02254
follet2004 Jul 09, 2012 at 22:48 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of follet2004 follet2004 Jul 11, 2012 at 02:54 UTC - 0 likes

    @basicsensei: Go

    I happy to help plugins guys : P and Good work in the plugin.

    BFAK:90668855,7e6b79d7fdf7e3da0adda108938b986a06a836c4c1a72a83b2dc8e96b25a358f

  • Avatar of basicsensei basicsensei Jul 11, 2012 at 02:46 UTC - 0 likes

    Thanks for reporting.

    On the second one, looks like you were able to cause a teleport to happen as if it was caused by a command and yet there was no command that caused it. This is fixed in 0.4.8 because the coding changed for the preventing /home teleports into ie. enemy territory to prevent exploiting it (ie. people can still use /home to tp into enemy land in 0.4.7 by doing some trick). So the error is not happening in 0.4.8

    The first one, we couldn't retrieve the event that caused the damage for the player that died, I'll make sure to handle that case.

    Really, thank you for taking the time to report this! Much appreciated.

  • 2 comments

Facts

Last updated
Jul 15, 2012
Reported
Jul 09, 2012
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees