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

Method serverReload

source/game/StarCommandProcessor.cpp:729–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729String CommandProcessor::serverReload(ConnectionId connectionId, String const&) {
730 if (auto errorMsg = adminCheck(connectionId, "trigger root reload"))
731 return *errorMsg;
732
733 auto& root = Root::singleton();
734 root.reload();
735 root.fullyLoad();
736 return "";
737}
738
739String CommandProcessor::eval(ConnectionId connectionId, String const& lua) {
740 if (auto errorMsg = localCheck(connectionId, "execute server script"))

Callers

nothing calls this directly

Calls 3

singletonClass · 0.85
fullyLoadMethod · 0.80
reloadMethod · 0.45

Tested by

no test coverage detected