lishid / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
120 stars 97 forks source link

Internal Error for Offline Players on 1.7.10 #9

Closed jackklink closed 10 years ago

jackklink commented 10 years ago

There is an error when using OpenInv on OfflinePlayers.

I am using Spigot 1.7.10 Build #1585

[18:19:59 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'oi' in plugin OpenInv v2.1.9 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.7.10.jar:git-Spigot-1585] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[spigot-1.7.10.jar:git-Spigot-1585] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) ~[spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1013) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:850) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:731) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot-1.7.10.jar:git-Spigot-1585] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.10.jar:git-Spigot-1585] Caused by: java.lang.NullPointerException at com.lishid.openinv.commands.OpenInvPluginCommand.onCommand(OpenInvPluginCommand.java:84) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.7.10.jar:git-Spigot-1585] ... 13 more

lishid commented 10 years ago

Should be fixed!