TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
519 stars 355 forks source link

Tab completion not working properly #7080

Closed Spruce-Studios closed 10 months ago

Spruce-Studios commented 11 months ago

Please explain your feature request to the best of your abilities:

Hello! The command /t shows correctly in the tab-completion menu. However, players who don't have access to things like /t claim and /t buytown can still see them in the tab completion menu!

This is the #1 reason players are leaving my server. They get overwhelmed by all the options, even though they're disabled and ones I don't want them to use.

Is there any way to hide these arguments from the menu? Please help!

LlmDl commented 11 months ago

Tab completion code runs on every character they type, if you want your server also doing permission tests with every letter they type, then your suggestion would be acceptable. The code is the way it is, assuming that most servers don't want permission tests happening that frequently.

Spruce-Studios commented 11 months ago

Tab completion code runs on every character they type, if you want your server also doing permission tests with every letter they type, then your suggestion would be acceptable. The code is the way it is, assuming that most servers don't want permission tests happening that frequently.

Would it be added as an option in config then? Something like tab-complete-all: true Defaulted to true, and when false it would run permission checks with each character

LlmDl commented 11 months ago

I'm currently accepting feature requests from people who are sponsors. Less than 1% of servers are sponsoring.