7DTD-ScriptingMod icon indicating copy to clipboard operation
7DTD-ScriptingMod copied to clipboard

Alias command to create shortcuts for common commands with parameters

Open djkrose opened this issue 7 years ago • 0 comments

It would be nice to have an alias command that creates a command that executes another command with parameters.

Examples

Create an alias minibikesthat executes bc-le /type=EntityMinibike /1l:

dj-alias minibikes bc-le /type=EntityMinibike /1l

List all existing aliases

dj-alias

Remove an alias:

dj-alias minibikes /remove

Advanced options/ideas:

  • Decide with what command privileges the aliased command is executed. I.e. does it need the alias privilege and/or the underlying command privilege? If only the alias privilege is needed, it would be possible to create an alias like dj-alias spawn tp 0 65 0 that allows players to teleport to this specific spawn location, even if they usually cannot execute the tp command.
  • Aliases should be persistent across server restarts. Or maybe add on aoption for temporary aliases?
  • Is it possible to create user-specific aliases?

djkrose avatar Sep 14 '17 13:09 djkrose