Jorel Ali
Jorel Ali
Perhaps I have some Java flags that makes stack calls more susceptible to crashing?
Yup. Can confirm that the CommandAPI doesn't unregister stuff from the Bukkit namespace, because the code literally doesn't do that - it only unregisters Minecraft commands from the Minecraft namespace...
@Reminant So it turns out, Bukkit commands are fairly complicated! You can't unregister `bukkit:help`. Bukkit commands are stored in a `CommandMap` and the main server's command map contains a mapping...
This also doesn't apply to arguments that are distinguishable. For example, an integer argument with bounds (1, 10) and another with bounds (50, 100) are distinguishable if the values provided...
Alternatively (and ideally), the CommandAPI should use `dispatcher.findAmbiguities` to find the ambiguities in the command tree and generate some meaningful output based on that (which saves trying to implement an...
The Brigadier methods only use Minecraft-registered commands. It may be possible to use the `TabCompleteEvent` to generate plugin command completions and shove them into the argument if tab completion produces...
@SNWCreations No, this feature is not implemented yet
@SNWCreations This feature, despite how useful it is, is not relatively high on priority at the moment. This is because this feature can be implemented using other methods, for example,...
> Can I use it in annotation framework? No.
@SNWCreations This code: ```java new CommandAPICommand("blah") .withArgument(new IntegerArgument("int")) .withOptionalArgument(new IntegerArgument("optional"), 10) .executes((sender, args) -> { int arg1 = (int) args[0]; int arg2 = (int) args[1]; // This is 10 if...