mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Fixed Two Small Problems
This commit is contained in:
@@ -58,7 +58,7 @@ local function search_player(player)
|
||||
end
|
||||
|
||||
Event.register(defines.events.on_tick,function(event)
|
||||
if not (game.tick%3600) then return end
|
||||
if not (game.tick%3600)==0 then return end
|
||||
local players = game.connected_players
|
||||
local player = players[math.random(#players)]
|
||||
search_player(player)
|
||||
|
||||
@@ -140,7 +140,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.name,by_player_name})
|
||||
game.print({'reports.player-warning',player.name,by_player_name,reason})
|
||||
give_punishment(player,by_player,reason)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user