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 !
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 →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta