From 323ec81dba8b17efac3cecee40f5f27c1deee9f4 Mon Sep 17 00:00:00 2001 From: Overfake <34581374+Overfake@users.noreply.github.com> Date: Thu, 22 Nov 2018 07:38:56 +0100 Subject: [PATCH] Create admpw.ktscript A script that can be used and customized to troll your players if you see someone who is xraying close to bedrock why not type the command /admpw username_of_xrayer fall 10 it will make username_of_xrayer fall 10 blocs, its an exemple to show you what you can do and how --- example-scripts/admpw.ktscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 example-scripts/admpw.ktscript diff --git a/example-scripts/admpw.ktscript b/example-scripts/admpw.ktscript new file mode 100644 index 0000000..25413c1 --- /dev/null +++ b/example-scripts/admpw.ktscript @@ -0,0 +1,22 @@ +registerCommand("admpw") +{ + permission("admpw.perm") + arguments(player("player"),string("cmd"),integer("nbtimes")) + action(onlyPlayers = false) + { + val p = argument("player") + val cmd = argument("cmd") + val nbtimes = argument("nbtimes") + if(cmd.equals("fall")) + { + val command = "execute @a[name=${p.name}] ~ ~ ~ setblock ~ ~-1 ~ air" + for (x in 0..nbtimes) + { + delayTicks(1+(x*3)) + { + Server.console.executeCommand(command); + } + } + } + } +}