-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When only one player is allowed, the provided entity selector allows more than one. #113
Comments
I see. Sounds like a problem with asynchronous tab completion. You could disable it as following: BukkitLampConfig config = BukkitLampConfig.builder(plugin).disableAsyncCompletion().build();
Lamp<BukkitCommandActor> lamp = BukkitLamp.builder(config).build(); Can you try it and let me know if it persists? |
That does resolve the console error, but does not resolve the issue where it's suggesting using |
This is Brigadier's default behavior. Do you want to remove them altogether? Either disable Brigadier through the BukkitLampConfig, or register a SuggestionProvider for the |
I'll do that and I'll share the code I make here, I think it's silly to suggest args that the user cannot use, but thanks for the help. |
When you do this for your code, I would recommend adding a parameter that allows enabling/disabling them individually to make it more configurable. Maybe like an annotation @AllowA, @allowe. |
For example, if I have a command like
/bounty <target> <amount>
with the code similar to this:It still suggests
@a, @e, @n, @p, @r
and upon for example trying to even type in/bounty @e
it sends this error in console:Then when sending the command, it sends out this error:
Any idea on how to resolve this, or is this just a bug with Lamp?
The text was updated successfully, but these errors were encountered: