getPlayerName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "source>" to "syntaxhighlight>")
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getPlayerName()
getPlayerName()
</syntaxhighlight>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
/say My name is [r: getPlayerName()], nice to meet you!
/say My name is [r: getPlayerName()], nice to meet you!
</syntaxhighlight>
</syntaxhighlight>
}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Revision as of 18:50, 14 March 2023

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!