Quest number orders - give null error
madtomic opened this issue ยท 2 comments
This errors comes up when you think the quest number is the same after you give 0, 1, and 2 gives error because there are less than 3 quests. so only first 2 is still valid to give
The only fix is refresh /q questlist after each give so the player knows the new quest number?
org.bukkit.command.CommandException: Unhandled exception executing command 'q' i
n plugin EpicQuest v3.5.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spi
got_server.jar:git-Spigot-13716d9-0899683]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14
- ~[spigot_server.jar:git-Spigot-13716d9-0899683]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServe
r.java:645) ~[spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerCon
nection.java:1115) [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java
:950) [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java
:26) [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java
:53) [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spi
got_server.jar:git-Spigot-13716d9-0899683]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [
?:1.8.0_25]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6 - [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:3 - [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6 - [spigot_server.jar:git-Spigot-13716d9-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
:526) [spigot_server.jar:git-Spigot-13716d9-0899683]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_25]
at java.util.ArrayList.get(Unknown Source) ~[?:1.8.0_25]
at randy.listeners.CommandListener.onCommand(CommandListener.java:331) ~
[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spi
got_server.jar:git-Spigot-13716d9-0899683]
... 14 more
This is intended behaviour (except for the error).
When you take a quest, it is removed from the questlist, since it's not available to you anymore.
And fixed the error: 0d13287