commands
commands copied to clipboard
Java Command Dispatch Framework - (Bukkit, Spigot, Paper, Sponge, Bungee, JDA, Velocity supported, generically usable anywhere)
Consider the following code (to create a chatroom, in this particular case) in a command: ```java @Subcommand("create") public void create(CommandSender sender, @Single String name, @Single @Optional String password) { //...
There is currently no parsing for input with quotes. For example, given `/command "This should be one argument"`, the `CommandExecutionContext` args look like `["This, should, be, one, argument"]`. Ideally, there...
Thanks for the awesome framework. I have a question about the context resolver and how it treats players? I have the problem that my resolved player is always null and...
Hello. I define the following command: ```java @Subcommand("create") public CompletableFuture handlePunishmentCreateCommand(CommandSender sender, Player target, PunishmentType type, int duration, String reason) { //... } ``` and I see that this framework...
Hey there. I need to catch error from your awesome framework like this "MISSING_LANGUAGE_KEY:must_be_a_number", "MISSING_LANGUAGE_KEY:invalid_syntax". Cuz my logic must return nothing, an empty, as though nothing happened. Maybe then my...
It would be really nice, if there is an annotation "@Confirm" that would make the player enter "/confirm" (or something configureable) to prevent some big deletions happening right away.
Would be a "nice to have" feature, to get access to the command dependencies in the contexts of custom parameters, conditions, etc. It's nothing important, as the dependency could be...
Looking through the code, I found a snippet of code in [CommandParameter.java](https://github.com/aikar/commands/blob/master/core/src/main/java/co/aikar/commands/CommandParameter.java#L148) that suggests it's possible to have a command with multiple permissions, i.e. the player can can have any...
A feature that allows you to run method A if the user has permission A, and method B if the user has permission B. This for the exact same command.
Hello! I can see some cases where it could be very useful to have an annotation which makes the command only usable every x milliseconds. This, for example, easily allows...