mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed the spam during decon
This commit is contained in:
@@ -139,8 +139,10 @@ function Admin.give_warning(player,by_player,reason,min)
|
|||||||
if warnings < min then warnings = min end
|
if warnings < min then warnings = min end
|
||||||
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)
|
if warnings > take_action then
|
||||||
game.print({'reports.player-warning',player.name,by_player_name,reason})
|
player_return({'reports.warning-given-by',by_player_name},defines.text_color.info,player)
|
||||||
|
game.print({'reports.player-warning',player.name,by_player_name,reason})
|
||||||
|
end
|
||||||
give_punishment(player,by_player,reason)
|
give_punishment(player,by_player,reason)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user