Returns a string with the target name of the person that initiated the event.
@event::getSender()
None
(String) target name of the user that initiated the event.
The following code illustrates how to use the getSender method and output the result to the log file:
$sender = @event::getSender()
@script::log("Event triggered by user " & $sender)