Royalphax/UltimateSheepWars

AsyncPlayerChatEvent

Closed this issue · 1 comments

Report:

Hello, when player type any text to chat (only in waiting lobby), plugin say this error to console and message wasn't sended. ypxo.

[21:28:20] [Async Chat Thread - #0/ERROR]: Could not pass event AsyncPlayerChatEvent to UltimateSheepWars v3.5.1
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[bukkit.jar:git-Spigot-570526c-c1b529e]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[bukkit.jar:git-Spigot-570526c-c1b529e]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [bukkit.jar:git-Spigot-570526c-c1b529e]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [bukkit.jar:git-Spigot-570526c-c1b529e]
    at net.minecraft.server.v1_10_R1.PlayerConnection.chat(PlayerConnection.java:1280) [bukkit.jar:git-Spigot-570526c-c1b529e]
    at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1218) [bukkit.jar:git-Spigot-570526c-c1b529e]
    at net.minecraft.server.v1_10_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:39) [bukkit.jar:git-Spigot-570526c-c1b529e]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_73]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_73]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_73]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_73]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_73]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 8
    at fr.asynchronous.sheepwars.a.ai.aiI.getPlayerRatio(aiI.java:118) ~[?:?]
    at fr.asynchronous.sheepwars.a.ab.bd.bdA.onAsyncPlayerChat(bdA.java:50) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[bukkit.jar:git-Spigot-570526c-c1b529e]

Normally done, but i could reopen it in the future if the bug persist 🙏