Description
There should be an option available when utilizing the EntitySelectorArgument to trigger an exception automatically when the resulting list is empty. This behavior mirrors the default implementation where argument.entity.notfound.entity or argument.entity.notfound.player is respectively returned.
Expected code
val myCommand = CommandAPICommand("myCommand")
.withArguments(EntitySelectorArgument.ManyPlayers("players", false)) // allowEmpty flag
.executes(CommandExecutor { sender, args ->
// automatically returns "argument.entity.notfound.player" if empty
val players = args[0] as List<Player>
// [...]
})
Extra details
No response
Description
There should be an option available when utilizing the
EntitySelectorArgumentto trigger an exception automatically when the resulting list is empty. This behavior mirrors the default implementation where argument.entity.notfound.entity or argument.entity.notfound.player is respectively returned.Expected code
Extra details
No response