Skip to content

Commit 9985dbd

Browse files
1wairesdJRoy
andauthored
Fix double messages when running /heal on self (#6347)
Co-authored-by: Josh Roy <[email protected]>
1 parent bb47c45 commit 9985dbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/commands/Commandheal.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ protected void updatePlayer(final Server server, final CommandSource sender, fin
7070
player.removePotionEffect(effect.getType());
7171
}
7272
}
73-
sender.sendTl("healOther", user.getDisplayName());
73+
if (!sender.isPlayer() || !user.getBase().equals(sender.getPlayer())) {
74+
sender.sendTl("healOther", user.getDisplayName());
75+
}
7476
} catch (final QuietAbortException e) {
7577
//Handle Quietly
7678
}

0 commit comments

Comments
 (0)