mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Added warning commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user