mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-30 04:30:58 +02:00
Give feedback to player (#568)
This commit is contained in:
parent
bbc90d3f28
commit
098853ec48
@ -97,6 +97,7 @@ function Module.report(reporting_player, reported_player, message)
|
|||||||
local player_index
|
local player_index
|
||||||
if reporting_player then
|
if reporting_player then
|
||||||
player_index = reporting_player.index
|
player_index = reporting_player.index
|
||||||
|
reporting_player.print('Your report has been sent.')
|
||||||
end
|
end
|
||||||
table.insert(global.reports, {reporting_player_index = player_index, reported_player_index = reported_player.index, message = message, tick = game.tick})
|
table.insert(global.reports, {reporting_player_index = player_index, reported_player_index = reported_player.index, message = message, tick = game.tick})
|
||||||
|
|
||||||
@ -138,6 +139,7 @@ function Module.cmd_report(cmd)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
Module.report(reporting_player, reported_player, string.sub(cmd.parameter, string.len(params[1]) + 2))
|
Module.report(reporting_player, reported_player, string.sub(cmd.parameter, string.len(params[1]) + 2))
|
||||||
|
reporting_player.print('Your report has been sent.')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user