diff --git a/example-scripts/simple/tpalea.ktskript b/example-scripts/simple/tpalea.ktskript new file mode 100644 index 0000000..c11dfd0 --- /dev/null +++ b/example-scripts/simple/tpalea.ktskript @@ -0,0 +1,20 @@ +registerCommand("tpalea") +{ + permission("tpalea.perm") + action(onlyPlayers = true) + { + val command = "execute @a[name=${player.name}] ~ ~ ~ /spreadplayers ~ ~ 2000 5000 false @s" + Server.console.executeCommand(command) + } +} +registerCommand("tpaleap") +{ + permission("tpaleap.perm") + arguments(player("player")) + action(onlyPlayers = true) + { + val p = argument("player") + val command = "execute @a[name=${p.name}] ~ ~ ~ /spreadplayers ~ ~ 2000 5000 false @p[name=${p.name}]" + Server.console.executeCommand(command) + } +}