diff --git a/Addons/Admin/reports.lua b/Addons/Admin/reports.lua index 9936c329..86b100da 100644 --- a/Addons/Admin/reports.lua +++ b/Addons/Admin/reports.lua @@ -146,7 +146,7 @@ function Admin.give_warning(player,by_player,reason,min) warnings = warnings+1 _reports().warnings[player.name] = warnings player_return({'reports.warning-given-by',by_player_name},defines.text_color.info,player) - game.print({'reports.player-warning',player,by_player_name}) + game.print({'reports.player-warning',player.name,by_player_name}) give_punishment(player,by_player,reason) end @@ -227,7 +227,7 @@ function Admin.temp_ban(player,by_player,reason) ['By:']='<>'..by_player_name, ['Reason:']=append_name(reason,by_player_name) } - game.print({'reports.temp-ban',player,by_player_name},defines.text_color.info) + game.print({'reports.temp-ban',player.name,by_player_name,reason},defines.text_color.info) Ranking._presets().last_jail = player.name Ranking.give_rank(player,'Jail',by_player_name) end @@ -258,7 +258,7 @@ Event.register(defines.events.on_tick,function(event) local time_to_remove = _reports().remove_warnings_time[rank.power] if (game.tick % time_to_remove) == 0 then _reports().warnings[name]=warnings-1 - player_return({'reports.remove-warn',_reports().warnings[name],tick_to_displayer_format(time_to_remove)},defines,text_color.low,name) + player_return({'reports.remove-warn',_reports().warnings[name],tick_to_display_format(time_to_remove)},defines,text_color.low,name) end end end diff --git a/locale/en/reports.cfg b/locale/en/reports.cfg index 4792606b..9cbe2551 100644 --- a/locale/en/reports.cfg +++ b/locale/en/reports.cfg @@ -3,7 +3,7 @@ low-print=__1__ has been reported by a user for: __2__ high-print=__1__ has been reported by __2__ for: __3__ cant-report=This player cant be reported. warning-given-by=This Warnings Was Given By: __1__ -player-warning=__1__ was given a warning by __2__ +player-warning=__1__ was given a warning by __2__ reason: __3__ temp-ban=__1__ was temp-ban by __2__ and will remain in jail untill next reset remove-warn=You are had a warning Removed, you have __1__ warnings, next removed in __2__ message=You Are Currently Reciving Warnings From The Script, This Will Continue Unless You Cease And Desist