mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
commit
8053234b49
@ -569,7 +569,8 @@ if not _DEBUG then
|
||||
local success, error = pcall(func, cmd)
|
||||
if not success then
|
||||
log(error)
|
||||
player_print(error)
|
||||
--player_print(error) -- This casues desyncs
|
||||
player_print('Sorry there was an error running '.. cmd.name)
|
||||
end
|
||||
end
|
||||
)
|
||||
|
@ -71,7 +71,13 @@ local function popup(cmd)
|
||||
return
|
||||
end
|
||||
|
||||
local message = cmd.parameter:gsub('\\n', '\n')
|
||||
local message = cmd.parameter
|
||||
if not message then
|
||||
player_print('Usage: /popup <message>')
|
||||
return
|
||||
end
|
||||
|
||||
message = message:gsub('\\n', '\n')
|
||||
|
||||
for _, p in ipairs(game.connected_players) do
|
||||
show_popup(p, message)
|
||||
|
Loading…
Reference in New Issue
Block a user