Added in 2.3
$username
Returns the username set in Server list or specified in the /server command for current connection.