mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Removed Temp ban related stuff
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user