mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed A few bugs
This commit is contained in:
@@ -146,7 +146,7 @@ function Admin.give_warning(player,by_player,reason,min)
|
|||||||
warnings = warnings+1
|
warnings = warnings+1
|
||||||
_reports().warnings[player.name] = warnings
|
_reports().warnings[player.name] = warnings
|
||||||
player_return({'reports.warning-given-by',by_player_name},defines.text_color.info,player)
|
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)
|
give_punishment(player,by_player,reason)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@ function Admin.temp_ban(player,by_player,reason)
|
|||||||
['By:']='<<inline>>'..by_player_name,
|
['By:']='<<inline>>'..by_player_name,
|
||||||
['Reason:']=append_name(reason,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._presets().last_jail = player.name
|
||||||
Ranking.give_rank(player,'Jail',by_player_name)
|
Ranking.give_rank(player,'Jail',by_player_name)
|
||||||
end
|
end
|
||||||
@@ -258,7 +258,7 @@ Event.register(defines.events.on_tick,function(event)
|
|||||||
local time_to_remove = _reports().remove_warnings_time[rank.power]
|
local time_to_remove = _reports().remove_warnings_time[rank.power]
|
||||||
if (game.tick % time_to_remove) == 0 then
|
if (game.tick % time_to_remove) == 0 then
|
||||||
_reports().warnings[name]=warnings-1
|
_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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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__
|
high-print=__1__ has been reported by __2__ for: __3__
|
||||||
cant-report=This player cant be reported.
|
cant-report=This player cant be reported.
|
||||||
warning-given-by=This Warnings Was Given By: __1__
|
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
|
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__
|
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
|
message=You Are Currently Reciving Warnings From The Script, This Will Continue Unless You Cease And Desist
|
||||||
|
|||||||
Reference in New Issue
Block a user