Argument (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.0, 2.7 (support for command events)
Syntax
[the] last arg[ument]Description
A user provided value in a command execution. For example, if the command "/tell <player> <text>" is used like "/tell Njol Hello Njol!", 'argument 1' is the player named "Njol" and 'argument 2' is the text "Hello Njol!". One can also use the type of the argument instead of its index to address the argument. For example, in the command example above, 'player-argument' is the same as 'argument 1'. Usable in script commands and command events. Please note that specifying the argument type is only supported in script commands.
Examples
give the item-argument to the player-argument
damage the player-argument by the number-argument
give a diamond pickaxe to the argument
add argument 1 to argument 2
heal the last argument