Closed ProjectSky closed 3 years ago
This happens becasue the Redmew scenario requires using commands to run properly in multiplayer. I could look into adding an option to turn off the server using commands.
This happens becasue the Redmew scenario requires using commands to run properly in multiplayer. I could look into adding an option to turn off the server using commands.
local function exec_command(cmd)
local params = cmd.parameter
local player = cmd.player_index
if params and not player then -- isServers?
local status, err = pcall(function() return loadstring(params)() end )
if not status then game.print(err) end
end
end
commands.add_command("exec", "<function> execute lua function, only server can use this command", exec_command)
silent-command
cause achievement cannot unlocked.