EchoPet

EchoPet

882k Downloads

Null on unhandled exception.

mibby opened this issue ยท 0 comments

commented

Build 155. Someone seems to have used the command '/pet cal;' by accident. Is there a nicer way to print out that the command is invalid?

[SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing 'pet cal;' in io.github.dsh105.echopet.commands.CustomCommand(pet)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196)
    at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:532)
    at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:986)
    at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:897)
    at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:838)
    at net.minecraft.server.v1_6_R3.Packet3Chat.handle(Packet3Chat.java:47)
    at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:237)
    at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
    at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
    at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:131)
    at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:604)
    at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
    at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:493)
    at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at io.github.dsh105.echopet.util.PetUtil.formPetFromArgs(PetUtil.java:72)
    at io.github.dsh105.echopet.commands.PetCommand.onCommand(PetCommand.java:302)
    at io.github.dsh105.echopet.commands.CustomCommand.execute(CustomCommand.java:21)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
    ... 14 more