Files
factorio-scenario-ExpCluster/config/warnings.lua
2019-04-18 16:06:55 +01:00

19 lines
1.1 KiB
Lua

--- Config file for the warning system, this is very similar to reports but is for the use of moderators rather than normal users.
return {
actions = { -- what actions are taking at number of warnings
-- if a localized string is used then __1__ will by_player_name and __2__ will be the current warning count (auto inserted)
{'warnings.recived'},
{'warnings.recived'},
{'warnings.recived',{'warnings.pre-kick'}},
function(player,by_player_name,number_of_warnings)
game.kick_player(player,{'warnings.received',by_player_name,number_of_warnings,{'warnings.kick'}})
end,
{'warnings.recived',{'warnings.pre-pre-ban'}},
{'warnings.recived',{'warnings.pre-ban'}},
function(player,by_player_name,number_of_warnings)
game.ban_player(player,{'warnings.received',by_player_name,number_of_warnings,{'warnings.ban',{'info.website-link'}}})
end
},
temp_warning_cool_down=30, -- time for a temp warning (given by script) to be removed (in minutes)
temp_warning_limit=5 -- the number of temp warnings (given by script) that are allowed before full warnings are given
}