.getUsername()

Users

.getUsername()

You can use getUsername() to get the username of the current player. It returns 'Guest' if the user is not logged. Don't forget to send the salt parameter along with function unless you are using our SWC library.