getPlayerName: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page getPlayerName to GetPlayerName without leaving a redirect: Converting page title to first-letter uppercase) |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|name=getPlayerName | |name=getPlayerName | ||
|version=1.3b48 | |version=1.3b48 | ||
|description=Returns the name of the player for the [[Client]] that it executes on. | |description=Returns the name of the player for the [[Introduction to Game Hosting#Architecture|Client]] that it executes on. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getPlayerName() | getPlayerName() | ||
</ | </syntaxhighlight> | ||
|example= | |example= | ||
< | <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> | ||
}} | }} | ||
[[Category:Miscellaneous Function]] | [[Category:Miscellaneous Function]] |
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!