From fefd3e6b29565129db556bb030a954c197e59b9b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 7 Apr 2022 23:36:04 +0100 Subject: [PATCH] Document how to passthru arguments to aliased commands --- resources/pocketmine.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/pocketmine.yml b/resources/pocketmine.yml index 003173b2b..1b22c9e80 100644 --- a/resources/pocketmine.yml +++ b/resources/pocketmine.yml @@ -187,9 +187,14 @@ aliases: #abort: [pocketmine:stop] ##To add an alias, list the command(s) that it calls: - #giveadmin: [op] + #showtheversion: [version] #savestop: [save-all, stop] + ##To invoke another command with arguments, use $1 to pass the first argument, $2 for the second etc: + #giveadmin: [op $1] ## `giveadmin alex` -> `op alex` + #kill: [suicide, say "I tried to kill $1"] ## `kill alex` -> `suicide` + `say "I tried to kill alex"` + #giverandom: [give $1 $2, say "Someone has just received a $2!"] ## `giverandom alex diamond` -> `give alex diamond` + `say "Someone has just received a diamond!"` + ##To change an existing command alias and make it do something else: #tp: [suicide]