| 314 | } |
| 315 | |
| 316 | String 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 | |
| 327 | String CommandProcessor::spawnItem(ConnectionId connectionId, String const& argumentString) { |
| 328 | if (auto errorMsg = adminCheck(connectionId, "spawn items")) |
nothing calls this directly
no test coverage detected