name
Returns the name of the current player (you).
player.name();
Example
Display a greeting message with your name in the chat.
player.say("Hi, my name is " + player.name());
Returns the name of the current player (you).
player.name();
Display a greeting message with your name in the chat.
player.say("Hi, my name is " + player.name());