Fix exempt report message

This commit is contained in:
Potato 2017-12-07 09:32:36 +08:00 committed by Ashcon Partovi
parent 087b690823
commit c366b280d8
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class ReportCommands implements Commands, Listener {
userFinder.findLocalPlayer(sender, args, 0),
CommandFutureCallback.onSuccess(sender, args, response -> {
if(response.player().hasPermission(ReportPermissions.EXEMPT) && !sender.hasPermission(ReportPermissions.OVERRIDE)) {
throw new TranslatableCommandException("command.report.exempt");
throw new TranslatableCommandException("command.report.exempt", new PlayerComponent(identities.createIdentity(response)));
}
senderLastReport.put(sender, Instant.now());