From c904ffa551be40d60c214536a7b3f99756560f5d Mon Sep 17 00:00:00 2001 From: jorgeberrex Date: Sat, 6 Jul 2024 23:10:53 -0500 Subject: [PATCH] fix: Switch report target and sender parameters on event dispatch --- .../network/warzone/mars/report/commands/ReportCommands.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/network/warzone/mars/report/commands/ReportCommands.kt b/src/main/kotlin/network/warzone/mars/report/commands/ReportCommands.kt index 1a14f82..8aa6712 100644 --- a/src/main/kotlin/network/warzone/mars/report/commands/ReportCommands.kt +++ b/src/main/kotlin/network/warzone/mars/report/commands/ReportCommands.kt @@ -86,7 +86,7 @@ class ReportCommands { ) return } - val event = PlayerReportEvent(matchPlayer, accused, reason) + val event = PlayerReportEvent(accused, matchPlayer, reason) match.callEvent(event) if (event.isCancelled()) { return @@ -177,4 +177,4 @@ class ReportCommands { }.display(audience, reportList, page) } -} \ No newline at end of file +}