Sueta

AutoTabManager

1.1.3

The best way to manage tab-completion !

·Plugin

Discord support server : https://discord.gg/bNNWBnk

AutoTabManager

Have you ever thought that players who don't have permission(s) to execute a command should not be able to use tab-completion on it ?

Since 1.13 , users are able to speed up their command inputs by using tab-completion. However, if a player is not allowed to execute a command, this is not relevant at all .
This is where AutoTabManager comes into play !

Operating principle
:

Plugin work is separated into two parts :
- An automated part : If the permissions of a command are directly defined in plugin.yml (the traditional way), plugin will automatically remove tab-completion for player who do not own permissions. However, not many commands are defined this way...
- A part that needs user inputs : If the permissions of a command are checked another way (programmatically in the concerned plugin), you will have to register commands and their permissions using AutoTabManager . This is the case of most commands.

Commands (you need to have autotab.admin ) :

/autotab command [add/remove] [command_name] [permission] : Adds/removes a command permission.
/autotab plugin [add/remove] [plugin_name] [permission] : Adds/removes a plugin permission.
/autotab list : Lists all permissions by command.
/autotab load : Loads modifications from file.
/autotab save : Saves modifications into file.
/autotab help : Displays this text.

Example of use :

In this example, I will remove tab-completion of command /savetool for players who do not own zonerestorer.admin permission (-> see my plugin : ZoneRestorer ).
First, I execute /autotab command add savetool zonerestorer.admin to tell the plugin that only players owning zonerestorer.admin are allowed to use /savetool . WARNING : Changes take effect when a player enters the server so you will need to disconnect-reconnect to see changes.
Then, if I want to directly save this entry , I use /autotab save . Note that all entries are automatically saved on reload/stop of server and loaded on reload/start of the server. I can also directly edit the tab_permissions.yml file and then load it with /autotab load .
Finally, when I try to input /savetool , I don't see any tab-completion help , and the command doesn't seem to exist anymore (execute it you will see it still exists). That's it !

2020-03-20_08.57.10.png

The command disappeared for unauthorized players

I am open to any improvement proposal for a future update and feel free to support me via the donation link .
Thank you for not judging me on my english level and I hope you will enjoy this tool designed for you !

Please follow me on twitter to be aware of new content creation : https://twitter.com/DinerHell?s=09

Similar projects

Plugin →