Fix ice other message (#5028)

Fix `iceOther` being sent to the target player instead of the sender. Fixes #5002.
This commit is contained in:
pop4959 2022-08-02 00:40:10 -07:00 committed by GitHub
parent 037577162b
commit 5b20f30350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {