7DTD-ScriptingMod
7DTD-ScriptingMod copied to clipboard
Alias command to create shortcuts for common commands with parameters
It would be nice to have an alias command that creates a command that executes another command with parameters.
Examples
Create an alias minibikes
that 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 thetp
command. - Aliases should be persistent across server restarts. Or maybe add on aoption for temporary aliases?
- Is it possible to create user-specific aliases?