Command Executor (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.17

Syntax

[the] [command['s]] executor

Description

The executor of a command. This differs from the command sender in that the executor may not be the thing that triggered/initiated the command. The executor of a command is often changed to be different from the command sender by using a vanilla command such as "/execute".

Examples

command /balance:
	# This works if you do "/execute as <player> run balance"
	# It will send the output to the command sender, but it will be as if "<player>" was the thing executing it.
	send "Your balance is %{balance::%uuid of the executor%}%" to the sender

View source