Added warning commands

This commit is contained in:
Cooldude2606
2019-04-18 17:09:25 +01:00
parent 50ff4eae86
commit 6e499e8ce9
5 changed files with 70 additions and 12 deletions

View File

@@ -2,14 +2,14 @@
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'}},
{'warnings.received'},
{'warnings.received'},
{'warnings.received',{'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'}},
{'warnings.received',{'warnings.pre-pre-ban'}},
{'warnings.received',{'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