7,072
edits
m (Mex moved page LocalPlayer to localPlayer) |
No edit summary |
||
| Line 8: | Line 8: | ||
|returnInfo = the local player object | |returnInfo = the local player object | ||
|since=1.0.72 | |since=1.0.72 | ||
|exampleJSCS = addCommandHandler("position", (command, text) => | |||
{ | |||
if(!localClient.player) | |||
{ | |||
message("You are not spawned."); | |||
return; | |||
} | |||
message('Your position is: ' + localPlayer.position.x + ' ' + localPlayer.position.y + ' ' + localPlayer.position.z); | |||
}); | |||
}} | }} | ||
edits