From 727da2c6b596703125812b56d29c47cfacf4a2ba Mon Sep 17 00:00:00 2001 From: Keir Date: Wed, 11 Nov 2015 19:23:10 +0000 Subject: [PATCH] Embarrassing typo. --- .../Mineplex.Core/src/mineplex/core/report/ReportManager.java | 2 +- .../src/mineplex/core/report/command/ReportHandleCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java b/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java index 1103fd05f..121f23f3c 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java @@ -112,7 +112,7 @@ public class ReportManager { { Report report = getReport(reportId); - if (report.getPlayerName() != null) { + if (report.getHandler() != null) { reportHandler.sendMessage(C.cRed + "Someone is already handling this report."); } else { String handlerName = reportHandler.getName(); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/command/ReportHandleCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/report/command/ReportHandleCommand.java index 04048de6f..a7d6ab95a 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/command/ReportHandleCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/command/ReportHandleCommand.java @@ -29,7 +29,7 @@ public class ReportHandleCommand extends CommandBase else { int reportId = Integer.parseInt(args[0]); - + Plugin.getReportManager().handleReport(reportId, player); } }