mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Fix ice other message (#5028)
Fix `iceOther` being sent to the target player instead of the sender. Fixes #5002.
This commit is contained in:
parent
037577162b
commit
5b20f30350
@ -40,7 +40,7 @@ public class Commandice extends EssentialsLoopCommand {
|
|||||||
@Override
|
@Override
|
||||||
protected void updatePlayer(Server server, CommandSource sender, User user, String[] args) throws NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
|
protected void updatePlayer(Server server, CommandSource sender, User user, String[] args) throws NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
|
||||||
freezePlayer(user);
|
freezePlayer(user);
|
||||||
user.sendMessage(tl("iceOther", user.getDisplayName()));
|
sender.sendMessage(tl("iceOther", user.getDisplayName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void freezePlayer(final IUser user) {
|
private void freezePlayer(final IUser user) {
|
||||||
|
Loading…
Reference in New Issue
Block a user