Merge pull request #187 from bbassie/remove/temp-ban

Removed Temp ban related stuff
This commit is contained in:
Cooldude2606
2021-01-27 00:26:43 +00:00
committed by GitHub
8 changed files with 6 additions and 191 deletions

View File

@@ -158,32 +158,6 @@ if config.player_jail then
end)
end
--- When a player is tempbanned
if config.player_temp_ban then
local Jail = require 'modules.control.jail'
Event.add(Jail.events.on_player_temp_banned, function(event)
local player_name, by_player_name = get_player_name(event)
emit_event{
title='Temp Ban',
description='A player has been temp banned',
color=Colors.red,
['Player']='<inline>'..player_name,
['By']='<inline>'..by_player_name,
['Reason']=event.reason
}
end)
Event.add(Jail.events.on_player_untemp_banned, function(event)
local player_name, by_player_name = get_player_name(event)
emit_event{
title='Temp Ban Removed',
description='A player has been untemp banned',
color=Colors.green,
['Player']='<inline>'..player_name,
['By']='<inline>'..by_player_name
}
end)
end
--- Ban and unban
if config.player_bans then
Event.add(defines.events.on_player_banned, function(event)