Update reports.lua

This commit is contained in:
Jonathan Baumgardner
2018-03-12 22:45:55 -05:00
committed by GitHub
parent 951c687079
commit 48f9dad847

View File

@@ -100,7 +100,7 @@ local function cheak_reports(player)
local reports = count_reports(player) local reports = count_reports(player)
if reports >= reports_needed_for_jail and _reports().actions[player.name] ~= 'report-jail' and Ranking.get_rank(player).group.name ~= 'Jail' then if reports >= reports_needed_for_jail and _reports().actions[player.name] ~= 'report-jail' and Ranking.get_rank(player).group.name ~= 'Jail' then
_reports().actions[player.name] = actions.report _reports().actions[player.name] = actions.report
Admin.jail(player,'<server>','To many user reports. Contact an Admin to be unjailed.') Admin.jail(player,'<server>','Too many user reports. Contact an Admin to be unjailed.')
end end
end end
@@ -177,7 +177,7 @@ function Admin.clear_warings(player,by_player,no_emit)
discord_emit{ discord_emit{
title='Player Clear', title='Player Clear',
color=Color.to_hex(defines.text_color.low), color=Color.to_hex(defines.text_color.low),
description='A player had there warnings cleared.', description='A player had their warnings cleared.',
['Player:']='<<inline>>'..player.name, ['Player:']='<<inline>>'..player.name,
['By:']='<<inline>>'..by_player_name, ['By:']='<<inline>>'..by_player_name,
} }
@@ -193,7 +193,7 @@ function Admin.clear_reports(player,by_player,no_emit)
discord_emit{ discord_emit{
title='Player Clear', title='Player Clear',
color=Color.to_hex(defines.text_color.low), color=Color.to_hex(defines.text_color.low),
description='A player had there reports cleared.', description='A player had their reports cleared.',
['Player:']='<<inline>>'..player.name, ['Player:']='<<inline>>'..player.name,
['By:']='<<inline>>'..by_player_name, ['By:']='<<inline>>'..by_player_name,
} }
@@ -210,7 +210,7 @@ function Admin.clear_player(player,by_player)
discord_emit{ discord_emit{
title='Player Clear', title='Player Clear',
color=Color.to_hex(defines.text_color.low), color=Color.to_hex(defines.text_color.low),
description='A player had there reports and warnings cleared.', description='A player had their reports and warnings cleared.',
['Player:']='<<inline>>'..player.name, ['Player:']='<<inline>>'..player.name,
['By:']='<<inline>>'..by_player_name, ['By:']='<<inline>>'..by_player_name,
} }
@@ -273,4 +273,4 @@ Event.register(defines.events.on_tick,function(event)
end end
end end
end end
end) end)