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

Method localCheck

source/game/StarCommandProcessor.cpp:1031–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031Maybe<String> CommandProcessor::localCheck(ConnectionId connectionId, String const& commandDescription) const {
1032 if (connectionId == ServerConnectionId)
1033 return {};
1034
1035 if (!m_universe->isLocal(connectionId))
1036 return {strf("The {} command can only be used locally.", commandDescription)};
1037
1038 return {};
1039}
1040
1041LuaCallbacks CommandProcessor::makeCommandCallbacks() {
1042 LuaCallbacks callbacks;

Callers

nothing calls this directly

Calls 2

strfFunction · 0.85
isLocalMethod · 0.80

Tested by

no test coverage detected