sender

val sender: CommandSender

Parameters

sender

the player/consolesender that ran the command. you can use an instanceOf check to see whether console or a player ran the command