[Idea]: Don't tab complete commands without permissions
Artuto opened this issue ยท 2 comments
/mv version -p
output
https://paste.gg/p/anonymous/2e95a3cd2ec04d83b6d6d3af34f00458
Server logs
Not needed
Server Version
his server is running Prismarine version git-Prismarine-18 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 664f819 on HEAD)
Server Version
Commands the user cannot use (because of lacking permissions) should not be displayed when tab completing.
This is usually fixed by properly declaring the commands and their permissions in the plugin.yml file or via the API.
Steps to reproduce
- Start the server
- Make sure you are not OP
- Join and type into the chat
/mv
- Look at all the Multiverse commands that are completed but cannot be used because of lacking permissions:
Agreements
- I have searched for and ensured there isn't already an open or resolved issue(s) regarding this.
- I was able to reproduce my issue on a freshly setup and up-to-date server with the latest version of Multiverse plugins with no other plugins and with no kinds of other server or client mods.
As long as they cannot actually run it, it's not a huge concern. While plugins.yml works for some simple commands, quite a few are dynamic so it won't work. There is a plan to use a better command handler, but mv just has too many commands to be viable in terms of dev time.
Added when switching to ACF in the MV5 branch