| 1029 | } |
| 1030 | |
| 1031 | Maybe<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 | |
| 1041 | LuaCallbacks CommandProcessor::makeCommandCallbacks() { |
| 1042 | LuaCallbacks callbacks; |