From a6299b0927c1254fc482bf03f56742be0a4fb7f2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 1 May 2022 15:52:25 +0100 Subject: [PATCH] pocketmine.yml: moar docs for command aliases hidden features --- resources/pocketmine.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/pocketmine.yml b/resources/pocketmine.yml index 1b22c9e80..f922cb225 100644 --- a/resources/pocketmine.yml +++ b/resources/pocketmine.yml @@ -195,6 +195,12 @@ aliases: #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 make arguments mandatory (so that the command fails if they are not provided), use $$, e.g. $$1, $$2: + #makeadmin: [op $$1] ## `makeadmin alex` -> `op alex`, `makeadmin` with no arguments = error + + ##To pass through a range of arguments, put a - (hyphen) after the index: + #tpalias: [tp $1-] ## `tpalias 256 70 256` -> `tp 256 70 256` - this passes arguments 1 and everything after it to the `tp` command + ##To change an existing command alias and make it do something else: #tp: [suicide]