mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
Merge branch 'fix-giftCommand-username' into 'ms4/dev'
GiftCommand used the wrong replace-method, command wil show the username again. See merge request morningstar/Arcturus-Community!57
This commit is contained in:
commit
d3f8e3d833
@ -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