@event::getSender

Returns a string with the target name of the person that initiated the event.

Syntax:

@event::getSender()

 

Parameters:

None

Returns:

(String) target name of the user that initiated the event.

Example:

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)