A
lightweight plugin to
hide
command
suggestions
and
tab autocompletions
.
Works on
1.21.X
It
may work on older versions but it has
not been
tested.
This plugin was made with help from
Grok 2 and
ChatGPT.
Commands:
It only has 1 command
/commandhider reload (To reload the plugin config).
Permissions:
commandhider.admin (To use /commandhider reload - Defaults: OP)
commandhider.TabCompletionFilter.exempt
(To be exempt from this filter - Defaults: OP)
Disclaimer this plugin uses Bstats, more info on
BStats.org
How does it work?
This plugin works as a filter, all command suggestions and tab autocompletions are hidden, except for the ones in the whitelist.
It has a default whitelist which affects everyone unless the player has OP or the permission specified above.
It also has an option to add custom permissions with custom whitelists so players in different groups can have a separate list of suggested commands and tab autocompletions.
The main use case for this plugin is to make your server more secure, hiding commands from players won't let them check which plugins are loaded by just pressing TAB to check the command list.
IMPORTANT: This plugin does NOT block the execution of commands, it only hides them, you should still use a permissions management plugin like Luckperms.
Config.yml
Code (YAML):
# CommandHider plugin config - 1.0.2
# Messages
messages:
reload_success
:
"&dCommandHider &econfiguration reloaded &asuccessfully&e."
no_permission
:
"&cYou do not have permission to use this command."
# TabCompletionFilter - If disabled this won't do anything.
# If enabled all commands will disappear from command suggestions and tab autocompletion except for the ones in the
# whitelist, adding a command will also add all subcommands automatically.
# This filter won't affect players with OP or if they have the permission commandhider.tabcompletionfilter.exempt
TabCompletionFilter:
enabled
: true
# This whitelist will affect all players unless they have OP, the exempt permission or a custom whitelist
# permission, where "include_default" is set to "false".
default_whitelist
:
-
"spawn"
-
"msg"
-
"tell"
-
"warp"
-
"tpa"
-
"tpaccept"
# Here you can add custom permissions to add or limit more the whitelist for some players.
# If "include_default" is set to "true" it means that players with this permission will be affected by the default whitelist + that whitelist.
# If set to "false" they will only be affected by the custom whitelist.
# You can avoid using custom whitelists by just leaving "custom_whitelists: []" and deleting them if you had any.
# You can also add as many custom whitelists as you want.
custom_whitelists
:
[
]
# Custom whitelists examples.
# - permission: "kirosutilities.custom.1"
# commands:
# - "customcommand_1"
# - "customcommand_2"
# include_default: true
# - permission: "kirosutilities.custom.2"
# commands:
# - "onlycustomcommand"
# include_default: false
# End of config.
Support
this plugin!