getPlayerName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Removed incorrect summary in example)
m (Punctuation)
Line 11: Line 11:
|example=
|example=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
/say My name is [r: getPlayerName()] nice to meet you!
/say My name is [r: getPlayerName()], nice to meet you!
</source>
</source>
}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Revision as of 18:05, 19 September 2012

getPlayerName() Function

Introduced in version 1.3b48
Returns the name of the player for the Client that it executes on.

Usage

getPlayerName()

Example

/say My name is [r: getPlayerName()], nice to meet you!