Don't show Punish GUI unless report result is ACCEPTED

This commit is contained in:
Keir Nellyer 2016-07-27 15:46:54 +01:00
parent 63917297ef
commit d474139220

View File

@ -215,10 +215,13 @@ public class ReportManager
C.cGreen + "Report marked as: " + C.cGold + reportResult.getType().getName()));
reportCloser.sendMessage(F.main(prefix, C.cGold + reason));
// todo new punish gui
CommandCenter.Instance.onPlayerCommandPreprocess(
new PlayerCommandPreprocessEvent(reportCloser,
String.format("/punish %s Report #%s - %s", suspectName, reportId, reason)));
if (reportResult.getType() == ReportResultType.ACCEPTED)
{
// todo new punish gui
CommandCenter.Instance.onPlayerCommandPreprocess(
new PlayerCommandPreprocessEvent(reportCloser,
String.format("/punish %s Report #%s - %s", suspectName, reportId, reason)));
}
});
}
}).exceptionally(throwable -> {