Help! I want to use it but I don't know how
[21:02:05] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'ld' in plugin LuckyDrops v1.22
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-api-1.21.8-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:150) ~[spigot-api-1.21.8-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_21_R5.CraftServer.dispatchCommand(CraftServer.java:925) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at org.bukkit.craftbukkit.v1_21_R5.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:50) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?]
at net.minecraft.commands.execution.tasks.ExecuteCommand.a(SourceFile:29) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(SourceFile:13) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.execution.UnboundEntryAction.a(SourceFile:8) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.execution.CommandQueueEntry.a(SourceFile:8) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.execution.ExecutionContext.a(SourceFile:107) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:464) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:386) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:373) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.network.PlayerConnection.b(PlayerConnection.java:2055) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$8(PlayerConnection.java:2031) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:164) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1290) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:209) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.util.thread.IAsyncTaskHandler.B(SourceFile:138) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.bv(MinecraftServer.java:1273) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.B(MinecraftServer.java:1266) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:147) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1223) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.w_(MinecraftServer.java:1233) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1076) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:328) ~[spigot-1.21.8.jar:4534-Spigot-7c52c66-65f1f11]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at io.pingu.luckydrops.commands.NewLuckyDropSubCommand.onSubCommand(NewLuckyDropSubCommand.java:60) ~[?:?]
at io.pingu.luckydrops.commands.LuckyDropsCommand.onCommand(LuckyDropsCommand.java:51) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.21.8-R0.1-SNAPSHOT.jar:?]
... 28 more
Very nice plugin! That's exactly what I was looking for, I've seen this concept in a Minecraft Server and I finally found this plugin. It works very well.
Hello, the plugin works perfectly. The reason for that is that you have executed the command with the wrong arguments: in the "respawndelay" parameter you have to specify a number and not a string. Anyway I've just released a new version of the plugin. Since it's not my mistake I ask you if you can please change the extremely negative review you left, thank you.