Command Sender (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.0
Syntax
[the] [command['s]] senderDescription
The sender of a command. This differs from the command executor in that this is always the thing that originally triggered/initiated the command. It cannot be changed by commands like "/execute".
Examples
make the command sender execute "/say hi!"on command:
log "%sender% used command /%command% %arguments%" to "commands.log"