Fixed A few bugs

This commit is contained in:
Cooldude2606
2018-01-06 14:52:46 +00:00
parent eb87f0e61c
commit dff29a66ec
2 changed files with 4 additions and 4 deletions

View File

@@ -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:']='<<inline>>'..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

View File

@@ -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