getPlayerName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the name of the player for the [[ | |name=getPlayerName | ||
|version=1.3b48 | |||
|description=Returns the name of the player for the [[Introduction to Game Hosting#Architecture|Client]] that it executes on. | |||
|usage= | |||
<syntaxhighlight lang="mtmacro" line> | |||
getPlayerName() | |||
</syntaxhighlight> | |||
|example= | |||
<syntaxhighlight lang="mtmacro" line> | |||
< | /say My name is [r: getPlayerName()], nice to meet you! | ||
</syntaxhighlight> | |||
}} | |||
[[Category:Miscellaneous Function]] | |||
/say My name is [r: getPlayerName()] nice to meet you! | |||
</ |
Latest revision as of 23:59, 24 April 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!