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

Method eval

source/game/StarCommandProcessor.cpp:739–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739String CommandProcessor::eval(ConnectionId connectionId, String const& lua) {
740 if (auto errorMsg = localCheck(connectionId, "execute server script"))
741 return *errorMsg;
742
743 if (auto errorMsg = adminCheck(connectionId, "execute server script"))
744 return *errorMsg;
745
746 return toString(m_scriptComponent.context()->eval(lua));
747}
748
749String CommandProcessor::entityEval(ConnectionId connectionId, String const& lua) {
750 if (auto errorMsg = localCheck(connectionId, "execute server entity script"))

Callers 9

evalScriptMethod · 0.45
tileEvalMethod · 0.45
tileEachAbortableMethod · 0.45
evalScriptMethod · 0.45
collisionMoveMethod · 0.45
evalScriptMethod · 0.45
evalScriptMethod · 0.45
evalScriptMethod · 0.45
evalScriptMethod · 0.45

Calls 2

toStringFunction · 0.85
contextMethod · 0.80

Tested by

no test coverage detected