Show pos in console with cmd

This commit is contained in:
Vortrex
2020-12-28 12:53:25 -06:00
parent ef98da93d1
commit 28131684b2

View File

@@ -22,6 +22,7 @@ function getPositionCommand(command, params, client) {
let position = client.player.position;
messageClientNormal(client, `Your position is: ${position.x.toFixed(2)}, ${position.y.toFixed(2)}, ${position.z.toFixed(2)}`);
console.log(`${getClientDisplayForConsole(client)}'s position is: ${position.x.toFixed(2)}, ${position.y.toFixed(2)}, ${position.z.toFixed(2)}`);
return true;
}
@@ -203,4 +204,4 @@ function sendRemovedWorldObjectsToPlayer(client) {
}
}
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------