diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-09 20:35:08 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-09 20:35:08 +1000 |
commit | f59f6be5d33c64f8d0f335f6f6993f05a939afb5 (patch) | |
tree | b896e742f817f859cc5e926422dd080fcc7460d6 /source/frontend/StarClientCommandProcessor.cpp | |
parent | 95b13f670d8ce1de5c71c35ce475de165b53cc4f (diff) |
oop
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r-- | source/frontend/StarClientCommandProcessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index 8a7e543..ac87397 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -430,12 +430,12 @@ String ClientCommandProcessor::swap(String const& argumentsString) { String ClientCommandProcessor::respawnInWorld(String const& argumentsString) { auto arguments = m_parser.tokenizeToStringList(argumentsString); - + auto worldClient = m_universeClient->worldClient(); + if (arguments.size() == 0) return strf("Respawn in this world is currently {}", worldClient->respawnInWorld() ? "true" : "false"); bool respawnInWorld = Json::parse(arguments.at(0)).toBool(); - auto worldClient = m_universeClient->worldClient(); worldClient->setRespawnInWorld(respawnInWorld); return strf("Respawn in this world set to {} (This is client-side!)", respawnInWorld ? "true" : "false"); } |