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

Method gravity

source/frontend/StarClientCommandProcessor.cpp:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146String ClientCommandProcessor::gravity() {
147 if (!adminCommandAllowed())
148 return "You must be an admin to use this command.";
149
150 return toString(m_universeClient->worldClient()->gravity(m_universeClient->mainPlayer()->position()));
151}
152
153String ClientCommandProcessor::debug(String const& argumentsString) {
154 auto arguments = m_parser.tokenizeToStringList(argumentsString);

Callers

nothing calls this directly

Calls 4

toStringFunction · 0.85
worldClientMethod · 0.80
mainPlayerMethod · 0.80
positionMethod · 0.45

Tested by

no test coverage detected