mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Moved reports to control
This commit is contained in:
@@ -76,7 +76,7 @@ end
|
||||
|
||||
--- Reports added and removed
|
||||
if config.player_reports then
|
||||
local Reports = require 'modules.addons.reports-control'
|
||||
local Reports = require 'modules.control.reports'
|
||||
Event.add(Reports.events.on_player_reported,function(event)
|
||||
local player_name,by_player_name = get_player_name(event)
|
||||
emit_event{
|
||||
@@ -88,14 +88,14 @@ if config.player_reports then
|
||||
['Reason:']=event.reason
|
||||
}
|
||||
end)
|
||||
Event.add(Reports.events.on_player_report_removed,function(event)
|
||||
local player_name,by_player_name = get_player_name(event)
|
||||
Event.add(Reports.events.on_report_removed,function(event)
|
||||
local player_name = get_player_name(event)
|
||||
emit_event{
|
||||
title='Report Removed',
|
||||
description='A player has a report removed',
|
||||
color=Colors.green,
|
||||
['Player:']='<inline>'..player_name,
|
||||
['By:']='<inline>'..by_player_name
|
||||
['By:']='<inline>'..event.removed_by_name
|
||||
}
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user