{"action":"opened","issue":{"url":"https://api.github.com/repos/dmulloy2/ProtocolLib/issues/46","labels_url":"https://api.github.com/repos/dmulloy2/ProtocolLib/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/dmulloy2/ProtocolLib/issues/46/comments","events_url":"https://api.github.com/repos/dmulloy2/ProtocolLib/issues/46/events","html_url":"https://github.com/dmulloy2/ProtocolLib/issues/46","id":56812328,"number":46,"title":"PacketPlayInClientCommand Problems","user":{"login":"aaomidi","id":1465785,"avatar_url":"https://avatars.githubusercontent.com/u/1465785?v=3","gravatar_id":"","url":"https://api.github.com/users/aaomidi","html_url":"https://github.com/aaomidi","followers_url":"https://api.github.com/users/aaomidi/followers","following_url":"https://api.github.com/users/aaomidi/following{/other_user}","gists_url":"https://api.github.com/users/aaomidi/gists{/gist_id}","starred_url":"https://api.github.com/users/aaomidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaomidi/subscriptions","organizations_url":"https://api.github.com/users/aaomidi/orgs","repos_url":"https://api.github.com/users/aaomidi/repos","events_url":"https://api.github.com/users/aaomidi/events{/privacy}","received_events_url":"https://api.github.com/users/aaomidi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-06T13:36:39Z","updated_at":"2015-02-06T13:36:39Z","closed_at":null,"body":"        @EventHandler\r\n        public void playerDeathEvent(PlayerDeathEvent event) {\r\n            new BukkitRunnable() {\r\n                @Override\r\n                public void run() {\r\n                    Player player = event.getEntity();\r\n\r\n                    PacketContainer packetContainer = protocolManager.createPacket(PacketType.Play.Client.CLIENT_COMMAND);\r\n                    packetContainer.getClientCommands()\r\n                            .write(0, EnumWrappers.ClientCommand.PERFORM_RESPAWN);\r\n\r\n                    try {\r\n                        protocolManager.recieveClientPacket(player, packetContainer);\r\n                    } catch (Exception e) {\r\n                        e.printStackTrace();\r\n                    }\r\n                }\r\n            }.runTask(this);\r\n        }\r\n\r\n\r\nThrows a nice juicy error:\r\n```\r\n[17:04:04 WARN]: [PlayGround] Task #27 for PlayGround v1.0 generated an exception\r\njava.lang.IndexOutOfBoundsException: Index: 1, Size: 1\r\n        at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_25]\r\n        at java.util.ArrayList.get(Unknown Source) ~[?:1.8.0_25]\r\n        at com.comphenix.protocol.wrappers.EnumWrappers.getEnum(EnumWrappers.java:100) ~[?:?]\r\n        at com.comphenix.protocol.wrappers.EnumWrappers.initialize(EnumWrappers.java:76) ~[?:?]\r\n        at com.comphenix.protocol.wrappers.EnumWrappers.getClientCommandClass(EnumWrappers.java:117) ~[?:?]\r\n        at com.comphenix.protocol.events.PacketContainer.getClientCommands(PacketContainer.java:599) ~[?:?]\r\n        at com.aaomidi.namechange.NameChange$1.run(NameChange.java:86) ~[?:?]\r\n        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:694) [spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-952179b-bc03b6f]\r\n        at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]\r\n```\r\n\r\nError happens on 3.6.3"}}