From 4ec8df16b414f24925df0bbc79f23dd6daeb67fe Mon Sep 17 00:00:00 2001 From: Yordi Date: Thu, 26 Jan 2023 09:36:34 +0100 Subject: [PATCH] GiftCommand used the wrong replace-method, command wil show the username again. --- .../com/eu/habbo/habbohotel/commands/gift/GiftCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/commands/gift/GiftCommand.java b/src/main/java/com/eu/habbo/habbohotel/commands/gift/GiftCommand.java index a2408e6b..d9e3798a 100644 --- a/src/main/java/com/eu/habbo/habbohotel/commands/gift/GiftCommand.java +++ b/src/main/java/com/eu/habbo/habbohotel/commands/gift/GiftCommand.java @@ -50,7 +50,7 @@ public class GiftCommand extends BaseGiftCommand { HabboInfo habboInfo = HabboManager.getOfflineHabboInfo(username); if (habboInfo == null) { - gameClient.getHabbo().whisper(replaceUser(getTextsValue("commands.error.cmd_gift.user_not_found"), username), RoomChatMessageBubbles.ALERT); + gameClient.getHabbo().whisper(replaceUsername(getTextsValue("commands.error.cmd_gift.user_not_found"), username), RoomChatMessageBubbles.ALERT); return true; } @@ -63,7 +63,7 @@ public class GiftCommand extends BaseGiftCommand { Emulator.getGameEnvironment().getItemManager().createGift(username, giftItem, extraData, 0, 0); - gameClient.getHabbo().whisper(replaceUser(getTextsValue("commands.succes.cmd_gift"), username).replace("%itemname%", item.getBaseItem().getName()), RoomChatMessageBubbles.ALERT); + gameClient.getHabbo().whisper(replaceUsername(getTextsValue("commands.succes.cmd_gift"), username).replace("%itemname%", item.getBaseItem().getName()), RoomChatMessageBubbles.ALERT); Habbo habbo = Emulator.getGameEnvironment().getHabboManager().getHabbo(habboInfo.getId());