BentoBox icon indicating copy to clipboard operation
BentoBox copied to clipboard

Shorten commands

Open BONNe opened this issue 4 years ago • 0 comments

Description

Is your feature request related to a problem?

Everywhere where people use some sort of strings that represents something, like URL or ID, after some time it becomes too large and messy to remember it. So people invent things that shorten them... like shorten URL thing.

The same thing is happening in BentoBox, with some commands.

Describe the solution you'd like us to implement.

BentoBox could implement a shorten commands feature in its config. Admins could specify a shorten command and link it to a command which will be called.

There could be 2 implementations: only player commands without a label:

shorten-commands:
   sethome: "home set"
   invite: "team invite coop"
   invitetrust: "team invite trust" 

this approach will affect player commands and assumes that before every string there will be gamemode [player_command] label.

The second would be more complex:

shorten-admin-commands:
   config: "[label] settings"    => triggers on /bsb config and execute /bsb settings
   setbal: "eco setbalance"     => triggers on /bsb setbal and execute /eco setbalance
shorten-player-commands:
   config: "[label] settings"    => triggers on /is config and execute /is settings
   sethome: "sethome"     => triggers on /is sethome and execute /sethome

BONNe avatar Jan 16 '21 15:01 BONNe