mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
No more warnings
This commit is contained in:
@@ -8,12 +8,28 @@ return {
|
||||
{ "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" } })
|
||||
local str = {
|
||||
"You received a warning from ",
|
||||
by_player_name,
|
||||
". You have ",
|
||||
number_of_warnings,
|
||||
" warnings. You were kicked for having too many warnings; you may rejoin if you wish.",
|
||||
}
|
||||
game.kick_player(player, table.concat(str, "")) -- Does not support locale strings
|
||||
-- game.kick_player(player, { "warnings.received", by_player_name, number_of_warnings, { "warnings.kick" } })
|
||||
end,
|
||||
{ "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", { "links.website" } } })
|
||||
local str = {
|
||||
"You received a warning from ",
|
||||
by_player_name,
|
||||
". You have ",
|
||||
number_of_warnings,
|
||||
" warnings. You were banned for having too many warnings; visit https://www.explosivegaming.nl to request a ban appeal.",
|
||||
}
|
||||
game.kick_player(player, table.concat(str, "")) -- Does not support locale strings
|
||||
-- game.ban_player(player, { "warnings.received", by_player_name, number_of_warnings, { "warnings.ban", { "links.website" } } })
|
||||
end,
|
||||
},
|
||||
script_warning_cool_down = 30, --- @setting script_warning_cool_down time for a script warning (given by script) to be removed (in minutes)
|
||||
|
||||
Reference in New Issue
Block a user