mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
GiftCommand used the wrong replace-method, command wil show the username again.
This commit is contained in:
parent
a53cf1ff2c
commit
4ec8df16b4
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user