Don't show Punish GUI unless report result is ACCEPTED
This commit is contained in:
parent
63917297ef
commit
d474139220
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user