Closed
Description
CommandAPI version
9.5.1
Minecraft version
1.20
Are you shading the CommandAPI?
No
What I did
CommandAPICommand("shquests")
.withSubcommand(
CommandAPICommand("path")
.withArguments(
EnumArgument("path", Path::class.java)
)
.executes(CommandExecutor { sender, args ->
val player = sender as Player
player.choosePath(theme, progressor, registry, args.getTyped("path"))
}, ExecutorType.PLAYER)
).register();
// Sometime during runtime
Bukkit.dispatchCommand(me, 'shquests path TEST');
What actually happened

What should have happened
The command should have executed like it does when executed manually from a player (without dispatchCommand
).
Server logs and CommandAPI config
No response
Other
No response