TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
526 stars 352 forks source link

teleporting errors #958

Closed LlmDl closed 9 years ago

LlmDl commented 9 years ago

Originally reported on Google Code with ID 925

Hi this doesn't exactly have to do with an error with your plugin. I was  developing
a Hunger Games plugin for one of my friends servers, and ran into an issue when teleporting
issues and was wondering if there was anything i could do on my part to reduce the
problem. Here is the log error:

[SEVERE] Could not pass event PlayerTeleportEvent to Towny
java.lang.NullPointerException
at com.palmergames.bukkit.towny.event.TownyPlayerListener.onPlayerMove(TownyPlayerListener.java:248)
at com.palmergames.bukkit.towny.event.TownyPlayerListener.onPlayerTeleport(TownyPlayerListener.java:271)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
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:301)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:347)
at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:167)
at com.randude14.hungergames.games.HungerGame.join(HungerGame.java:228)
at com.randude14.hungergames.Commands.handleUserCommand(Commands.java:87)
at com.randude14.hungergames.Commands.onCommand(Commands.java:28)
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:624)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
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:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:622)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
>21:53:06 [SEVERE] Could not pass event PlayerTeleportEvent to Multiverse-Core
java.lang.NullPointerException
at com.onarandombox.MultiverseCore.listeners.MVPlayerListener.playerTeleport(MVPlayerListener.java:193)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
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:301)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:347)
at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:167)
at com.randude14.hungergames.games.HungerGame.join(HungerGame.java:228)
at com.randude14.hungergames.Commands.handleUserCommand(Commands.java:87)
at com.randude14.hungergames.Commands.onCommand(Commands.java:28)
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:624)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
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:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:622)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
>21:53:06 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'hg' in
plugin HungerGames v0.1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:624)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
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:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:622)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:358)
at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:167)
at com.randude14.hungergames.games.HungerGame.join(HungerGame.java:228)
at com.randude14.hungergames.Commands.handleUserCommand(Commands.java:87)
at com.randude14.hungergames.Commands.onCommand(Commands.java:28)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 12 more

Reported by Randude123321123321 on 2012-04-14 20:20:55


LlmDl commented 9 years ago
Line 228 in HungerGame.java is causing the error, but without trawling through your
whole plugin to see the sequencing I can give you no advice, other than guess at you
may be teleporting them during another server event (onLogin)?

Good luck with your plugin, but I don't have the spare time to assist.

Reported by ElgarL@palmergames.com on 2012-04-16 15:33:22