From 5b20f30350a62753bda8592538e48cd96eb06e9b Mon Sep 17 00:00:00 2001 From: pop4959 Date: Tue, 2 Aug 2022 00:40:10 -0700 Subject: [PATCH] Fix ice other message (#5028) Fix `iceOther` being sent to the target player instead of the sender. Fixes #5002. --- .../main/java/com/earth2me/essentials/commands/Commandice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandice.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandice.java index feb9f46b5..99bc0412d 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandice.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandice.java @@ -40,7 +40,7 @@ public class Commandice extends EssentialsLoopCommand { @Override protected void updatePlayer(Server server, CommandSource sender, User user, String[] args) throws NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException { freezePlayer(user); - user.sendMessage(tl("iceOther", user.getDisplayName())); + sender.sendMessage(tl("iceOther", user.getDisplayName())); } private void freezePlayer(final IUser user) {