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

Method whoami

source/game/StarCommandProcessor.cpp:135–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135String CommandProcessor::whoami(ConnectionId connectionId, String const&) {
136 return strf("Server: You are {}. You are {}an Admin",
137 m_universe->clientNick(connectionId),
138 m_universe->isAdmin(connectionId) ? "" : "not ");
139}
140
141String CommandProcessor::warp(ConnectionId connectionId, String const& argumentString) {
142 if (auto errorMsg = adminCheck(connectionId, "do the space warp again"))

Callers

nothing calls this directly

Calls 3

strfFunction · 0.85
clientNickMethod · 0.45
isAdminMethod · 0.45

Tested by

no test coverage detected