| 737 | } |
| 738 | |
| 739 | String 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 | |
| 749 | String CommandProcessor::entityEval(ConnectionId connectionId, String const& lua) { |
| 750 | if (auto errorMsg = localCheck(connectionId, "execute server entity script")) |
no test coverage detected