MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setPlayerStart

Method setPlayerStart

source/game/StarCommandProcessor.cpp:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316String CommandProcessor::setPlayerStart(ConnectionId connectionId, String const&) {
317 if (auto errorMsg = adminCheck(connectionId, "modify world properties"))
318 return *errorMsg;
319
320 m_universe->executeForClient(connectionId, [](WorldServer* world, PlayerPtr const& player) {
321 world->setPlayerStart(player->position() + player->feetOffset());
322 });
323
324 return "";
325}
326
327String CommandProcessor::spawnItem(ConnectionId connectionId, String const& argumentString) {
328 if (auto errorMsg = adminCheck(connectionId, "spawn items"))

Callers

nothing calls this directly

Calls 3

executeForClientMethod · 0.80
positionMethod · 0.45
feetOffsetMethod · 0.45

Tested by

no test coverage detected