commands icon indicating copy to clipboard operation
commands copied to clipboard

Empty completion on BungeeCord

Open Proximyst opened this issue 6 years ago • 2 comments

When using acf-bungee, on completion it suggests an empty argument when there are nothing but subcommands available; it includes all subcommands (as expected), but drops an empty string at the top.

https://uwu.whats-th.is/6QLLsJ6.png

For commands which are simply the root command and have completions set up with @Default, it works just fine:

https://proletariat-dictatorship.is-serious.business/8dRMfaz.png

Proximyst avatar Oct 06 '19 08:10 Proximyst

It has to do something with the @empty completion as I've seen weird behaviour of it at bungee.

EDIT: The problem is being this line of code. Unlike Bukkit, BungeeCord doesn't check for empty strings and so adds all completions no matter what they are.

MrIvanPlays avatar Dec 25 '19 07:12 MrIvanPlays

Instead of modifying ACF, I will make a PR in BungeeCord to prevent empty completions.

MrIvanPlays avatar Dec 28 '19 13:12 MrIvanPlays