-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
bugSomething isn't workingSomething isn't workingimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release
Description
CommandAPI version
8.5.0
Minecraft version
1.19
Are you shading the CommandAPI?
Yes
What I did
- I registered this code in my onLoad() function:
new CommandAPICommand("timeargument")
.withArguments(new TimeArgument("duration"))
.executes((commandSender, objects) -> {
commandSender.sendMessage("Duration: " + (int) objects[0]);
})
.register();- I ran "/timeargument 1d"
What actually happened
I get the error An unexpected error occurred trying to execute that command (Argument 'duration' is defined as , not class java.lang.Integer)
What should have happened
I would have gotten the message: "Duration: 24000"
Server logs and CommandAPI config
No response
Other
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release