mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Refactored all outgoing composer names beginning with C
This commit is contained in:
parent
1a86232ab0
commit
a97a7d5ae2
@ -217,7 +217,7 @@ public class Bot implements Runnable {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this.chatTimestamp = Emulator.getIntUnixTimestamp();
|
this.chatTimestamp = Emulator.getIntUnixTimestamp();
|
||||||
this.room.botChat(new RoomUserTalkComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
this.room.botChat(new ChatMessageComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
||||||
|
|
||||||
if (message.equals("o/") || message.equals("_o/")) {
|
if (message.equals("o/") || message.equals("_o/")) {
|
||||||
this.room.sendComposer(new RoomUserActionComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new RoomUserActionComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
||||||
|
@ -2,7 +2,7 @@ package com.eu.habbo.habbohotel.campaign.calendar;
|
|||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.events.calendar.AdventCalendarProductComposer;
|
import com.eu.habbo.messages.outgoing.events.calendar.CampaignCalendarDoorOpenedMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.users.calendar.UserClaimRewardEvent;
|
import com.eu.habbo.plugin.events.users.calendar.UserClaimRewardEvent;
|
||||||
import gnu.trove.map.hash.THashMap;
|
import gnu.trove.map.hash.THashMap;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -134,7 +134,7 @@ public class CalendarManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
habbo.getHabboStats().calendarRewardsClaimed.add(new CalendarRewardClaimed(habbo.getHabboInfo().getId(), campaign.getId(), day, object.getId(), new Timestamp(System.currentTimeMillis())));
|
habbo.getHabboStats().calendarRewardsClaimed.add(new CalendarRewardClaimed(habbo.getHabboInfo().getId(), campaign.getId(), day, object.getId(), new Timestamp(System.currentTimeMillis())));
|
||||||
habbo.getClient().sendResponse(new AdventCalendarProductComposer(true, object, habbo));
|
habbo.getClient().sendResponse(new CampaignCalendarDoorOpenedMessageComposer(true, object, habbo));
|
||||||
object.give(habbo);
|
object.give(habbo);
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("INSERT INTO calendar_rewards_claimed (user_id, campaign_id, day, reward_id, timestamp) VALUES (?, ?, ?, ?, ?)")) {
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("INSERT INTO calendar_rewards_claimed (user_id, campaign_id, day, reward_id, timestamp) VALUES (?, ?, ?, ?, ?)")) {
|
||||||
statement.setInt(1, habbo.getHabboInfo().getId());
|
statement.setInt(1, habbo.getHabboInfo().getId());
|
||||||
|
@ -26,7 +26,7 @@ import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolIssueHandledComposer;
|
import com.eu.habbo.messages.outgoing.modtool.ModToolIssueHandledComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.BadgeReceivedComposer;
|
import com.eu.habbo.messages.outgoing.users.BadgeReceivedComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserPointsComposer;
|
import com.eu.habbo.messages.outgoing.users.UserPointsComposer;
|
||||||
import com.eu.habbo.plugin.events.emulator.EmulatorLoadCatalogManagerEvent;
|
import com.eu.habbo.plugin.events.emulator.EmulatorLoadCatalogManagerEvent;
|
||||||
import com.eu.habbo.plugin.events.users.catalog.UserCatalogFurnitureBoughtEvent;
|
import com.eu.habbo.plugin.events.users.catalog.UserCatalogFurnitureBoughtEvent;
|
||||||
@ -552,7 +552,7 @@ public class CatalogManager {
|
|||||||
|
|
||||||
if (voucher.credits > 0) {
|
if (voucher.credits > 0) {
|
||||||
client.getHabbo().getHabboInfo().addCredits(voucher.credits);
|
client.getHabbo().getHabboInfo().addCredits(voucher.credits);
|
||||||
client.sendResponse(new UserCreditsComposer(client.getHabbo()));
|
client.sendResponse(new CreditBalanceComposer(client.getHabbo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (voucher.catalogItemId > 0) {
|
if (voucher.catalogItemId > 0) {
|
||||||
@ -1071,7 +1071,7 @@ public class CatalogManager {
|
|||||||
if (!free && !habbo.getClient().getHabbo().hasPermission(Permission.ACC_INFINITE_CREDITS)) {
|
if (!free && !habbo.getClient().getHabbo().hasPermission(Permission.ACC_INFINITE_CREDITS)) {
|
||||||
if (purchasedEvent.totalCredits > 0) {
|
if (purchasedEvent.totalCredits > 0) {
|
||||||
habbo.getClient().getHabbo().getHabboInfo().addCredits(-purchasedEvent.totalCredits);
|
habbo.getClient().getHabbo().getHabboInfo().addCredits(-purchasedEvent.totalCredits);
|
||||||
habbo.getClient().sendResponse(new UserCreditsComposer(habbo.getClient().getHabbo()));
|
habbo.getClient().sendResponse(new CreditBalanceComposer(habbo.getClient().getHabbo()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceCancelSaleC
|
|||||||
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.RemoveHabboItemComposer;
|
import com.eu.habbo.messages.outgoing.inventory.RemoveHabboItemComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemCancelledEvent;
|
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemCancelledEvent;
|
||||||
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemOfferedEvent;
|
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemOfferedEvent;
|
||||||
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemSoldEvent;
|
import com.eu.habbo.plugin.events.marketplace.MarketPlaceItemSoldEvent;
|
||||||
@ -284,7 +284,7 @@ public class MarketPlace {
|
|||||||
client.getHabbo().givePoints(MARKETPLACE_CURRENCY, -event.price);
|
client.getHabbo().givePoints(MARKETPLACE_CURRENCY, -event.price);
|
||||||
}
|
}
|
||||||
|
|
||||||
client.sendResponse(new UserCreditsComposer(client.getHabbo()));
|
client.sendResponse(new CreditBalanceComposer(client.getHabbo()));
|
||||||
client.sendResponse(new AddHabboItemComposer(item));
|
client.sendResponse(new AddHabboItemComposer(item));
|
||||||
client.sendResponse(new InventoryRefreshComposer());
|
client.sendResponse(new InventoryRefreshComposer());
|
||||||
client.sendResponse(new MarketplaceBuyErrorComposer(MarketplaceBuyErrorComposer.REFRESH, 0, offerId, price));
|
client.sendResponse(new MarketplaceBuyErrorComposer(MarketplaceBuyErrorComposer.REFRESH, 0, offerId, price));
|
||||||
@ -385,7 +385,7 @@ public class MarketPlace {
|
|||||||
} else {
|
} else {
|
||||||
client.getHabbo().givePoints(MARKETPLACE_CURRENCY, credits);
|
client.getHabbo().givePoints(MARKETPLACE_CURRENCY, credits);
|
||||||
}
|
}
|
||||||
client.sendResponse(new UserCreditsComposer(client.getHabbo()));
|
client.sendResponse(new CreditBalanceComposer(client.getHabbo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void removeUser(MarketPlaceOffer offer) {
|
private static void removeUser(MarketPlaceOffer offer) {
|
||||||
|
@ -3,11 +3,10 @@ package com.eu.habbo.habbohotel.commands;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.campaign.calendar.CalendarCampaign;
|
import com.eu.habbo.habbohotel.campaign.calendar.CalendarCampaign;
|
||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.messages.outgoing.events.calendar.AdventCalendarDataComposer;
|
import com.eu.habbo.messages.outgoing.events.calendar.CampaignCalendarDataMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.habboway.nux.NuxAlertComposer;
|
import com.eu.habbo.messages.outgoing.habboway.nux.NuxAlertComposer;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.time.Duration;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import static java.time.temporal.ChronoUnit.DAYS;
|
import static java.time.temporal.ChronoUnit.DAYS;
|
||||||
@ -33,7 +32,7 @@ public class CalendarCommand extends Command {
|
|||||||
int daysBetween = (int) DAYS.between(new Timestamp(campaign.getStartTimestamp() * 1000L).toInstant(), new Date().toInstant());
|
int daysBetween = (int) DAYS.between(new Timestamp(campaign.getStartTimestamp() * 1000L).toInstant(), new Date().toInstant());
|
||||||
|
|
||||||
if (daysBetween >= 0) {
|
if (daysBetween >= 0) {
|
||||||
gameClient.sendResponse(new AdventCalendarDataComposer(campaign.getName(), campaign.getImage(), campaign.getTotalDays(), daysBetween, gameClient.getHabbo().getHabboStats().calendarRewardsClaimed, campaign.getLockExpired()));
|
gameClient.sendResponse(new CampaignCalendarDataMessageComposer(campaign.getName(), campaign.getImage(), campaign.getTotalDays(), daysBetween, gameClient.getHabbo().getHabboStats().calendarRewardsClaimed, campaign.getLockExpired()));
|
||||||
gameClient.sendResponse(new NuxAlertComposer("openView/calendar"));
|
gameClient.sendResponse(new NuxAlertComposer("openView/calendar"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ package com.eu.habbo.habbohotel.commands;
|
|||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserHandItemComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.CarryObjectMessageComposer;
|
||||||
|
|
||||||
public class HandItemCommand extends Command {
|
public class HandItemCommand extends Command {
|
||||||
public HandItemCommand() {
|
public HandItemCommand() {
|
||||||
@ -16,7 +16,7 @@ public class HandItemCommand extends Command {
|
|||||||
if (gameClient.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
if (gameClient.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
||||||
int effectId = Integer.parseInt(params[1]);
|
int effectId = Integer.parseInt(params[1]);
|
||||||
gameClient.getHabbo().getRoomUnit().setHandItem(effectId);
|
gameClient.getHabbo().getRoomUnit().setHandItem(effectId);
|
||||||
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserHandItemComposer(gameClient.getHabbo().getRoomUnit()).compose());
|
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new CarryObjectMessageComposer(gameClient.getHabbo().getRoomUnit()).compose());
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//Don't handle incorrect parse exceptions :P
|
//Don't handle incorrect parse exceptions :P
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ public class MassCreditsCommand extends Command {
|
|||||||
Habbo habbo = set.getValue();
|
Habbo habbo = set.getValue();
|
||||||
|
|
||||||
habbo.giveCredits(amount);
|
habbo.giveCredits(amount);
|
||||||
habbo.getClient().sendResponse(new UserCreditsComposer(habbo));
|
habbo.getClient().sendResponse(new CreditBalanceComposer(habbo));
|
||||||
|
|
||||||
if (habbo.getHabboInfo().getCurrentRoom() != null)
|
if (habbo.getHabboInfo().getCurrentRoom() != null)
|
||||||
habbo.whisper(Emulator.getTexts().getValue("commands.generic.cmd_credits.received").replace("%amount%", amount + ""), RoomChatMessageBubbles.ALERT);
|
habbo.whisper(Emulator.getTexts().getValue("commands.generic.cmd_credits.received").replace("%amount%", amount + ""), RoomChatMessageBubbles.ALERT);
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboGender;
|
import com.eu.habbo.habbohotel.users.HabboGender;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserTalkComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChatMessageComposer;
|
||||||
|
|
||||||
public class PullCommand extends Command {
|
public class PullCommand extends Command {
|
||||||
public PullCommand() {
|
public PullCommand() {
|
||||||
@ -41,7 +41,7 @@ public class PullCommand extends Command {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
habbo.getRoomUnit().setGoalLocation(tile);
|
habbo.getRoomUnit().setGoalLocation(tile);
|
||||||
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserTalkComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_pull.pull").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new ChatMessageComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_pull.pull").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboGender;
|
import com.eu.habbo.habbohotel.users.HabboGender;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserTalkComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChatMessageComposer;
|
||||||
|
|
||||||
public class PushCommand extends Command {
|
public class PushCommand extends Command {
|
||||||
public PushCommand() {
|
public PushCommand() {
|
||||||
@ -38,7 +38,7 @@ public class PushCommand extends Command {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
habbo.getRoomUnit().setGoalLocation(tFrontTarget);
|
habbo.getRoomUnit().setGoalLocation(tFrontTarget);
|
||||||
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserTalkComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_push.push").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new ChatMessageComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_push.push").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gameClient.getHabbo().whisper(Emulator.getTexts().getValue("commands.error.cmd_push.cant_reach").replace("%user%", params[1]), RoomChatMessageBubbles.ALERT);
|
gameClient.getHabbo().whisper(Emulator.getTexts().getValue("commands.error.cmd_push.cant_reach").replace("%user%", params[1]), RoomChatMessageBubbles.ALERT);
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserHandItemComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.CarryObjectMessageComposer;
|
||||||
|
|
||||||
public class RoomItemCommand extends Command {
|
public class RoomItemCommand extends Command {
|
||||||
public RoomItemCommand() {
|
public RoomItemCommand() {
|
||||||
@ -31,7 +31,7 @@ public class RoomItemCommand extends Command {
|
|||||||
|
|
||||||
for (Habbo habbo : gameClient.getHabbo().getHabboInfo().getCurrentRoom().getHabbos()) {
|
for (Habbo habbo : gameClient.getHabbo().getHabboInfo().getCurrentRoom().getHabbos()) {
|
||||||
habbo.getRoomUnit().setHandItem(itemId);
|
habbo.getRoomUnit().setHandItem(itemId);
|
||||||
habbo.getHabboInfo().getCurrentRoom().sendComposer(new RoomUserHandItemComposer(habbo.getRoomUnit()).compose());
|
habbo.getHabboInfo().getCurrentRoom().sendComposer(new CarryObjectMessageComposer(habbo.getRoomUnit()).compose());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemId > 0) {
|
if (itemId > 0) {
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.gameclients.GameClient;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomChatMessage;
|
import com.eu.habbo.habbohotel.rooms.RoomChatMessage;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserTalkComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChatMessageComposer;
|
||||||
|
|
||||||
public class SayCommand extends Command {
|
public class SayCommand extends Command {
|
||||||
public SayCommand() {
|
public SayCommand() {
|
||||||
@ -38,7 +38,7 @@ public class SayCommand extends Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
target.getHabboInfo().getCurrentRoom().sendComposer(new RoomUserTalkComposer(new RoomChatMessage(message.toString(), target, RoomChatMessageBubbles.NORMAL)).compose());
|
target.getHabboInfo().getCurrentRoom().sendComposer(new ChatMessageComposer(new RoomChatMessage(message.toString(), target, RoomChatMessageBubbles.NORMAL)).compose());
|
||||||
gameClient.getHabbo().whisper(Emulator.getTexts().getValue("commands.succes.cmd_say").replace("%user%", params[1]).replace("%message%", message.toString()), RoomChatMessageBubbles.ALERT);
|
gameClient.getHabbo().whisper(Emulator.getTexts().getValue("commands.succes.cmd_say").replace("%user%", params[1]).replace("%message%", message.toString()), RoomChatMessageBubbles.ALERT);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.rooms.RoomChatMessageBubbles;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboGender;
|
import com.eu.habbo.habbohotel.users.HabboGender;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserTalkComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChatMessageComposer;
|
||||||
|
|
||||||
public class SuperPullCommand extends Command {
|
public class SuperPullCommand extends Command {
|
||||||
public SuperPullCommand() {
|
public SuperPullCommand() {
|
||||||
@ -34,7 +34,7 @@ public class SuperPullCommand extends Command {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
habbo.getRoomUnit().setGoalLocation(tile);
|
habbo.getRoomUnit().setGoalLocation(tile);
|
||||||
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserTalkComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_pull.pull").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
gameClient.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new ChatMessageComposer(new RoomChatMessage(Emulator.getTexts().getValue("commands.succes.cmd_pull.pull").replace("%user%", params[1]).replace("%gender_name%", (gameClient.getHabbo().getHabboInfo().getGender().equals(HabboGender.M) ? Emulator.getTexts().getValue("gender.him") : Emulator.getTexts().getValue("gender.her"))), gameClient.getHabbo(), gameClient.getHabbo(), RoomChatMessageBubbles.NORMAL)).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -15,7 +15,7 @@ public class UpdateCatalogCommand extends Command {
|
|||||||
@Override
|
@Override
|
||||||
public boolean handle(GameClient gameClient, String[] params) {
|
public boolean handle(GameClient gameClient, String[] params) {
|
||||||
Emulator.getGameEnvironment().getCatalogManager().initialize();
|
Emulator.getGameEnvironment().getCatalogManager().initialize();
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new CatalogUpdatedComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new CatalogPublishedMessageComposer());
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BuildersClubFurniCountMessageComposer(0));
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BuildersClubFurniCountMessageComposer(0));
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BundleDiscountRulesetMessageComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BundleDiscountRulesetMessageComposer());
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new MarketplaceConfigComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new MarketplaceConfigComposer());
|
||||||
|
@ -41,7 +41,7 @@ public class GuardianTicket {
|
|||||||
|
|
||||||
|
|
||||||
public void requestToVote(Habbo guardian) {
|
public void requestToVote(Habbo guardian) {
|
||||||
guardian.getClient().sendResponse(new GuardianNewReportReceivedComposer());
|
guardian.getClient().sendResponse(new ChatReviewSessionOfferedToGuideMessageComposer());
|
||||||
|
|
||||||
this.votes.put(guardian, new GuardianVote(this.guardianCount, guardian));
|
this.votes.put(guardian, new GuardianVote(this.guardianCount, guardian));
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ public class GuardianTicket {
|
|||||||
GuardianVote vote = this.votes.get(guardian);
|
GuardianVote vote = this.votes.get(guardian);
|
||||||
|
|
||||||
if (vote != null && vote.type == GuardianVoteType.SEARCHING) {
|
if (vote != null && vote.type == GuardianVoteType.SEARCHING) {
|
||||||
guardian.getClient().sendResponse(new GuardianVotingRequestedComposer(this));
|
guardian.getClient().sendResponse(new ChatReviewSessionStartedMessageComposer(this));
|
||||||
vote.type = GuardianVoteType.WAITING;
|
vote.type = GuardianVoteType.WAITING;
|
||||||
this.updateVotes();
|
this.updateVotes();
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@ public class GuardianTicket {
|
|||||||
|
|
||||||
this.getVoteForGuardian(guardian).ignore = true;
|
this.getVoteForGuardian(guardian).ignore = true;
|
||||||
|
|
||||||
guardian.getClient().sendResponse(new GuardianVotingTimeEnded());
|
guardian.getClient().sendResponse(new ChatReviewSessionDetachedMessageComposer());
|
||||||
|
|
||||||
this.updateVotes();
|
this.updateVotes();
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ public class GuardianTicket {
|
|||||||
if (set.getValue().type == GuardianVoteType.WAITING || set.getValue().type == GuardianVoteType.NOT_VOTED || set.getValue().ignore || set.getValue().type == GuardianVoteType.SEARCHING)
|
if (set.getValue().type == GuardianVoteType.WAITING || set.getValue().type == GuardianVoteType.NOT_VOTED || set.getValue().ignore || set.getValue().type == GuardianVoteType.SEARCHING)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
set.getKey().getClient().sendResponse(new GuardianVotingVotesComposer(this, set.getKey()));
|
set.getKey().getClient().sendResponse(new ChatReviewSessionVotingStatusMessageComposer(this, set.getKey()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ public class GuardianTicket {
|
|||||||
if (set.getValue().type == GuardianVoteType.ACCEPTABLY ||
|
if (set.getValue().type == GuardianVoteType.ACCEPTABLY ||
|
||||||
set.getValue().type == GuardianVoteType.BADLY ||
|
set.getValue().type == GuardianVoteType.BADLY ||
|
||||||
set.getValue().type == GuardianVoteType.AWFULLY) {
|
set.getValue().type == GuardianVoteType.AWFULLY) {
|
||||||
set.getKey().getClient().sendResponse(new GuardianVotingResultComposer(this, set.getValue()));
|
set.getKey().getClient().sendResponse(new ChatReviewSessionResultsMessageComposer(this, set.getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package com.eu.habbo.habbohotel.items.interactions;
|
|||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.habbohotel.items.Item;
|
import com.eu.habbo.habbohotel.items.Item;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.CustomNotificationComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.CustomUserNotificationMessageComposer;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
@ -22,7 +22,7 @@ public class InteractionCostumeHopper extends InteractionHopper {
|
|||||||
if (client.getHabbo().getRoomUnit().getEffectId() > 0) {
|
if (client.getHabbo().getRoomUnit().getEffectId() > 0) {
|
||||||
super.onClick(client, room, objects);
|
super.onClick(client, room, objects);
|
||||||
} else {
|
} else {
|
||||||
client.sendResponse(new CustomNotificationComposer(CustomNotificationComposer.HOPPER_NO_COSTUME));
|
client.sendResponse(new CustomUserNotificationMessageComposer(CustomUserNotificationMessageComposer.HOPPER_NO_COSTUME));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.items.interactions.interfaces.ConditionalGate;
|
|||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.CustomNotificationComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.CustomUserNotificationMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.CloseGate;
|
import com.eu.habbo.threading.runnables.CloseGate;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -52,7 +52,7 @@ public class InteractionHabboClubGate extends InteractionDefault implements Cond
|
|||||||
if (this.canWalkOn(client.getHabbo().getRoomUnit(), room, null)) {
|
if (this.canWalkOn(client.getHabbo().getRoomUnit(), room, null)) {
|
||||||
super.onClick(client, room, objects);
|
super.onClick(client, room, objects);
|
||||||
} else {
|
} else {
|
||||||
client.sendResponse(new CustomNotificationComposer(CustomNotificationComposer.GATE_NO_HC));
|
client.sendResponse(new CustomUserNotificationMessageComposer(CustomUserNotificationMessageComposer.GATE_NO_HC));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ public class InteractionHabboClubGate extends InteractionDefault implements Cond
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
room.getHabbo(roomUnit).getClient().sendResponse(
|
room.getHabbo(roomUnit).getClient().sendResponse(
|
||||||
new CustomNotificationComposer(CustomNotificationComposer.GATE_NO_HC)
|
new CustomUserNotificationMessageComposer(CustomUserNotificationMessageComposer.GATE_NO_HC)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.habbohotel.gameclients.GameClient;
|
|||||||
import com.eu.habbo.habbohotel.items.Item;
|
import com.eu.habbo.habbohotel.items.Item;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.CustomNotificationComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.CustomUserNotificationMessageComposer;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
@ -23,7 +23,7 @@ public class InteractionHabboClubHopper extends InteractionHopper {
|
|||||||
if (client.getHabbo().getHabboStats().hasActiveClub()) {
|
if (client.getHabbo().getHabboStats().hasActiveClub()) {
|
||||||
super.onClick(client, room, objects);
|
super.onClick(client, room, objects);
|
||||||
} else {
|
} else {
|
||||||
client.sendResponse(new CustomNotificationComposer(CustomNotificationComposer.HOPPER_NO_HC));
|
client.sendResponse(new CustomUserNotificationMessageComposer(CustomUserNotificationMessageComposer.HOPPER_NO_HC));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import com.eu.habbo.habbohotel.users.HabboItem;
|
|||||||
import com.eu.habbo.messages.ServerMessage;
|
import com.eu.habbo.messages.ServerMessage;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.pets.PetPackageNameValidationComposer;
|
import com.eu.habbo.messages.outgoing.rooms.pets.PetPackageNameValidationComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.pets.breeding.PetBreedingCompleted;
|
import com.eu.habbo.messages.outgoing.rooms.pets.breeding.PetBreedingCompleted;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.pets.breeding.PetBreedingResultComposer;
|
import com.eu.habbo.messages.outgoing.rooms.pets.breeding.ConfirmBreedingRequestComposer;
|
||||||
import com.eu.habbo.threading.runnables.QueryDeleteHabboItem;
|
import com.eu.habbo.threading.runnables.QueryDeleteHabboItem;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -68,7 +68,7 @@ public class InteractionPetBreedingNest extends HabboItem {
|
|||||||
Habbo ownerPetTwo = room.getHabbo(this.petTwo.getUserId());
|
Habbo ownerPetTwo = room.getHabbo(this.petTwo.getUserId());
|
||||||
|
|
||||||
if (ownerPetOne != null && ownerPetTwo != null && this.petOne.getPetData().getType() == this.petTwo.getPetData().getType() && this.petOne.getPetData().getOffspringType() != -1) {
|
if (ownerPetOne != null && ownerPetTwo != null && this.petOne.getPetData().getType() == this.petTwo.getPetData().getType() && this.petOne.getPetData().getOffspringType() != -1) {
|
||||||
ownerPetTwo.getClient().sendResponse(new PetBreedingResultComposer(this.getId(), this.petOne.getPetData().getOffspringType(), this.petOne, ownerPetOne.getHabboInfo().getUsername(), this.petTwo, ownerPetTwo.getHabboInfo().getUsername()));
|
ownerPetTwo.getClient().sendResponse(new ConfirmBreedingRequestComposer(this.getId(), this.petOne.getPetData().getOffspringType(), this.petOne, ownerPetOne.getHabboInfo().getUsername(), this.petTwo, ownerPetTwo.getHabboInfo().getUsername()));
|
||||||
this.setExtradata("1");
|
this.setExtradata("1");
|
||||||
room.updateItem(this);
|
room.updateItem(this);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import com.eu.habbo.messages.outgoing.rooms.pets.PetLevelUpdatedComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetExperienceComposer;
|
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetExperienceComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetRespectComposer;
|
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetRespectComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserRemoveComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserRemoveComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserTalkComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChatMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.pets.PetTalkEvent;
|
import com.eu.habbo.plugin.events.pets.PetTalkEvent;
|
||||||
import gnu.trove.map.hash.THashMap;
|
import gnu.trove.map.hash.THashMap;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -109,7 +109,7 @@ public class Pet implements ISerialize, Runnable {
|
|||||||
RoomChatMessage chatMessage = new RoomChatMessage(message, this.roomUnit, RoomChatMessageBubbles.NORMAL);
|
RoomChatMessage chatMessage = new RoomChatMessage(message, this.roomUnit, RoomChatMessageBubbles.NORMAL);
|
||||||
PetTalkEvent talkEvent = new PetTalkEvent(this, chatMessage);
|
PetTalkEvent talkEvent = new PetTalkEvent(this, chatMessage);
|
||||||
if (!Emulator.getPluginManager().fireEvent(talkEvent).isCancelled()) {
|
if (!Emulator.getPluginManager().fireEvent(talkEvent).isCancelled()) {
|
||||||
this.room.petChat(new RoomUserTalkComposer(chatMessage).compose());
|
this.room.petChat(new ChatMessageComposer(chatMessage).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ import com.eu.habbo.messages.outgoing.MessageComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorMessagesComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorMessagesComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.GuildInfoComposer;
|
import com.eu.habbo.messages.outgoing.guilds.GuildInfoComposer;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CloseConnectionMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
||||||
@ -946,7 +946,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
Emulator.getGameEnvironment().getRoomManager().leaveRoom(habbo, this);
|
Emulator.getGameEnvironment().getRoomManager().leaveRoom(habbo, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sendComposer(new HotelViewComposer().compose());
|
this.sendComposer(new CloseConnectionMessageComposer().compose());
|
||||||
|
|
||||||
this.currentHabbos.clear();
|
this.currentHabbos.clear();
|
||||||
|
|
||||||
@ -3257,7 +3257,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (chatType == RoomChatType.TALK) {
|
} else if (chatType == RoomChatType.TALK) {
|
||||||
ServerMessage message = new RoomUserTalkComposer(roomChatMessage).compose();
|
ServerMessage message = new ChatMessageComposer(roomChatMessage).compose();
|
||||||
boolean noChatLimit = habbo.hasPermission(Permission.ACC_CHAT_NO_LIMIT);
|
boolean noChatLimit = habbo.hasPermission(Permission.ACC_CHAT_NO_LIMIT);
|
||||||
|
|
||||||
for (Habbo h : this.getHabbos()) {
|
for (Habbo h : this.getHabbos()) {
|
||||||
@ -3330,7 +3330,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
RoomChatMessage itemMessage = new RoomChatMessage(Emulator.getTexts().getValue(item.getBaseItem().getName() + ".message." + randomValue, item.getBaseItem().getName() + ".message." + randomValue + " not found!"), habbo, RoomChatMessageBubbles.getBubble(Emulator.getConfig().getInt(item.getBaseItem().getName() + ".message.bubble", RoomChatMessageBubbles.PARROT.getType())));
|
RoomChatMessage itemMessage = new RoomChatMessage(Emulator.getTexts().getValue(item.getBaseItem().getName() + ".message." + randomValue, item.getBaseItem().getName() + ".message." + randomValue + " not found!"), habbo, RoomChatMessageBubbles.getBubble(Emulator.getConfig().getInt(item.getBaseItem().getName() + ".message.bubble", RoomChatMessageBubbles.PARROT.getType())));
|
||||||
|
|
||||||
this.sendComposer(new RoomUserTalkComposer(itemMessage).compose());
|
this.sendComposer(new ChatMessageComposer(itemMessage).compose());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
item.onClick(habbo.getClient(), this, new Object[0]);
|
item.onClick(habbo.getClient(), this, new Object[0]);
|
||||||
@ -4149,7 +4149,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
public void giveHandItem(RoomUnit roomUnit, int handItem) {
|
public void giveHandItem(RoomUnit roomUnit, int handItem) {
|
||||||
roomUnit.setHandItem(handItem);
|
roomUnit.setHandItem(handItem);
|
||||||
this.sendComposer(new RoomUserHandItemComposer(roomUnit).compose());
|
this.sendComposer(new CarryObjectMessageComposer(roomUnit).compose());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateItem(HabboItem item) {
|
public void updateItem(HabboItem item) {
|
||||||
|
@ -30,7 +30,7 @@ import com.eu.habbo.habbohotel.wired.WiredHandler;
|
|||||||
import com.eu.habbo.habbohotel.wired.WiredTriggerType;
|
import com.eu.habbo.habbohotel.wired.WiredTriggerType;
|
||||||
import com.eu.habbo.messages.incoming.users.UserNuxEvent;
|
import com.eu.habbo.messages.incoming.users.UserNuxEvent;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorMessagesComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorMessagesComposer;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CloseConnectionMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.polls.PollStartComposer;
|
import com.eu.habbo.messages.outgoing.polls.PollStartComposer;
|
||||||
import com.eu.habbo.messages.outgoing.polls.infobus.SimplePollAnswersComposer;
|
import com.eu.habbo.messages.outgoing.polls.infobus.SimplePollAnswersComposer;
|
||||||
import com.eu.habbo.messages.outgoing.polls.infobus.SimplePollStartComposer;
|
import com.eu.habbo.messages.outgoing.polls.infobus.SimplePollStartComposer;
|
||||||
@ -499,21 +499,21 @@ public class RoomManager {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (habbo.getHabboInfo().getLoadingRoom() != 0 && room.getId() != habbo.getHabboInfo().getLoadingRoom()) {
|
if (habbo.getHabboInfo().getLoadingRoom() != 0 && room.getId() != habbo.getHabboInfo().getLoadingRoom()) {
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
habbo.getHabboInfo().setLoadingRoom(0);
|
habbo.getHabboInfo().setLoadingRoom(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Emulator.getPluginManager().fireEvent(new UserEnterRoomEvent(habbo, room)).isCancelled()) {
|
if (Emulator.getPluginManager().fireEvent(new UserEnterRoomEvent(habbo, room)).isCancelled()) {
|
||||||
if (habbo.getHabboInfo().getCurrentRoom() == null) {
|
if (habbo.getHabboInfo().getCurrentRoom() == null) {
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
habbo.getHabboInfo().setLoadingRoom(0);
|
habbo.getHabboInfo().setLoadingRoom(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (room.isBanned(habbo) && !habbo.hasPermission(Permission.ACC_ANYROOMOWNER) && !habbo.hasPermission(Permission.ACC_ENTERANYROOM)) {
|
if (room.isBanned(habbo) && !habbo.hasPermission(Permission.ACC_ANYROOMOWNER) && !habbo.hasPermission(Permission.ACC_ENTERANYROOM)) {
|
||||||
habbo.getClient().sendResponse(new RoomEnterErrorComposer(RoomEnterErrorComposer.ROOM_ERROR_BANNED));
|
habbo.getClient().sendResponse(new CantConnectMessageComposer(CantConnectMessageComposer.ROOM_ERROR_BANNED));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ public class RoomManager {
|
|||||||
|
|
||||||
if (!rightsFound) {
|
if (!rightsFound) {
|
||||||
habbo.getClient().sendResponse(new RoomAccessDeniedComposer(""));
|
habbo.getClient().sendResponse(new RoomAccessDeniedComposer(""));
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
habbo.getHabboInfo().setLoadingRoom(0);
|
habbo.getHabboInfo().setLoadingRoom(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -561,11 +561,11 @@ public class RoomManager {
|
|||||||
this.openRoom(habbo, room, doorLocation);
|
this.openRoom(habbo, room, doorLocation);
|
||||||
else {
|
else {
|
||||||
habbo.getClient().sendResponse(new GenericErrorMessagesComposer(GenericErrorMessagesComposer.WRONG_PASSWORD_USED));
|
habbo.getClient().sendResponse(new GenericErrorMessagesComposer(GenericErrorMessagesComposer.WRONG_PASSWORD_USED));
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
habbo.getHabboInfo().setLoadingRoom(0);
|
habbo.getHabboInfo().setLoadingRoom(0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
habbo.getHabboInfo().setLoadingRoom(0);
|
habbo.getHabboInfo().setLoadingRoom(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -621,12 +621,12 @@ public class RoomManager {
|
|||||||
|
|
||||||
habbo.getRoomUnit().setRoomUnitType(RoomUnitType.USER);
|
habbo.getRoomUnit().setRoomUnitType(RoomUnitType.USER);
|
||||||
if (room.isBanned(habbo)) {
|
if (room.isBanned(habbo)) {
|
||||||
habbo.getClient().sendResponse(new RoomEnterErrorComposer(RoomEnterErrorComposer.ROOM_ERROR_BANNED));
|
habbo.getClient().sendResponse(new CantConnectMessageComposer(CantConnectMessageComposer.ROOM_ERROR_BANNED));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (room.getUserCount() >= room.getUsersMax() && !habbo.hasPermission(Permission.ACC_FULLROOMS) && !room.hasRights(habbo)) {
|
if (room.getUserCount() >= room.getUsersMax() && !habbo.hasPermission(Permission.ACC_FULLROOMS) && !room.hasRights(habbo)) {
|
||||||
habbo.getClient().sendResponse(new RoomEnterErrorComposer(RoomEnterErrorComposer.ROOM_ERROR_GUESTROOM_FULL));
|
habbo.getClient().sendResponse(new CantConnectMessageComposer(CantConnectMessageComposer.ROOM_ERROR_GUESTROOM_FULL));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -681,7 +681,7 @@ public class RoomManager {
|
|||||||
public void enterRoom(final Habbo habbo, final Room room) {
|
public void enterRoom(final Habbo habbo, final Room room) {
|
||||||
if (habbo.getHabboInfo().getLoadingRoom() != room.getId()) {
|
if (habbo.getHabboInfo().getLoadingRoom() != room.getId()) {
|
||||||
if (habbo.getHabboInfo().getLoadingRoom() != 0) {
|
if (habbo.getHabboInfo().getLoadingRoom() != 0) {
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -843,7 +843,7 @@ public class RoomManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (roomHabbo.getRoomUnit().getHandItem() > 0) {
|
if (roomHabbo.getRoomUnit().getHandItem() > 0) {
|
||||||
habbo.getClient().sendResponse(new RoomUserHandItemComposer(roomHabbo.getRoomUnit()));
|
habbo.getClient().sendResponse(new CarryObjectMessageComposer(roomHabbo.getRoomUnit()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roomHabbo.getRoomUnit().getEffectId() > 0) {
|
if (roomHabbo.getRoomUnit().getEffectId() > 0) {
|
||||||
@ -946,7 +946,7 @@ public class RoomManager {
|
|||||||
room.removeHabbo(habbo, true);
|
room.removeHabbo(habbo, true);
|
||||||
|
|
||||||
if (redirectToHotelView) {
|
if (redirectToHotelView) {
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
}
|
}
|
||||||
habbo.getHabboInfo().setCurrentRoom(null);
|
habbo.getHabboInfo().setCurrentRoom(null);
|
||||||
habbo.getRoomUnit().isKicked = false;
|
habbo.getRoomUnit().isKicked = false;
|
||||||
@ -1539,7 +1539,7 @@ public class RoomManager {
|
|||||||
if (habbo != null) {
|
if (habbo != null) {
|
||||||
if (habbo.getHabboInfo().getCurrentRoom() == room) {
|
if (habbo.getHabboInfo().getCurrentRoom() == room) {
|
||||||
room.removeHabbo(habbo, true);
|
room.removeHabbo(habbo, true);
|
||||||
habbo.getClient().sendResponse(new RoomEnterErrorComposer(RoomEnterErrorComposer.ROOM_ERROR_BANNED));
|
habbo.getClient().sendResponse(new CantConnectMessageComposer(CantConnectMessageComposer.ROOM_ERROR_BANNED));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ public class Habbo implements Runnable {
|
|||||||
|
|
||||||
this.getHabboInfo().addCredits(event.credits);
|
this.getHabboInfo().addCredits(event.credits);
|
||||||
|
|
||||||
if (this.client != null) this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo()));
|
if (this.client != null) this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ public class Habbo implements Runnable {
|
|||||||
|
|
||||||
public void talk(String message, RoomChatMessageBubbles bubble) {
|
public void talk(String message, RoomChatMessageBubbles bubble) {
|
||||||
if (this.getRoomUnit().isInRoom()) {
|
if (this.getRoomUnit().isInRoom()) {
|
||||||
this.getHabboInfo().getCurrentRoom().sendComposer(new RoomUserTalkComposer(new RoomChatMessage(message, this.client.getHabbo().getRoomUnit(), bubble)).compose());
|
this.getHabboInfo().getCurrentRoom().sendComposer(new ChatMessageComposer(new RoomChatMessage(message, this.client.getHabbo().getRoomUnit(), bubble)).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ public class HabboManager {
|
|||||||
}
|
}
|
||||||
habbo.getHabboInfo().run();
|
habbo.getHabboInfo().run();
|
||||||
|
|
||||||
habbo.getClient().sendResponse(new CatalogUpdatedComposer());
|
habbo.getClient().sendResponse(new CatalogPublishedMessageComposer());
|
||||||
habbo.getClient().sendResponse(new BuildersClubFurniCountMessageComposer(0));
|
habbo.getClient().sendResponse(new BuildersClubFurniCountMessageComposer(0));
|
||||||
habbo.getClient().sendResponse(new BundleDiscountRulesetMessageComposer());
|
habbo.getClient().sendResponse(new BundleDiscountRulesetMessageComposer());
|
||||||
habbo.getClient().sendResponse(new MarketplaceConfigComposer());
|
habbo.getClient().sendResponse(new MarketplaceConfigComposer());
|
||||||
|
@ -11,7 +11,7 @@ import com.eu.habbo.habbohotel.users.HabboInfo;
|
|||||||
import com.eu.habbo.habbohotel.users.HabboStats;
|
import com.eu.habbo.habbohotel.users.HabboStats;
|
||||||
import com.eu.habbo.habbohotel.users.clothingvalidation.ClothingValidationManager;
|
import com.eu.habbo.habbohotel.users.clothingvalidation.ClothingValidationManager;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.ClubCenterDataComposer;
|
import com.eu.habbo.messages.outgoing.catalog.ClubCenterDataComposer;
|
||||||
import com.eu.habbo.messages.outgoing.generic.PickMonthlyClubGiftNotificationComposer;
|
import com.eu.habbo.messages.outgoing.generic.ClubGiftNotificationComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserDataComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserDataComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.*;
|
import com.eu.habbo.messages.outgoing.users.*;
|
||||||
import gnu.trove.map.hash.THashMap;
|
import gnu.trove.map.hash.THashMap;
|
||||||
@ -84,7 +84,7 @@ public class SubscriptionHabboClub extends Subscription {
|
|||||||
if (habbo != null && habbo.getClient() != null) {
|
if (habbo != null && habbo.getClient() != null) {
|
||||||
|
|
||||||
if (habbo.getHabboStats().getRemainingClubGifts() > 0) {
|
if (habbo.getHabboStats().getRemainingClubGifts() > 0) {
|
||||||
habbo.getClient().sendResponse(new PickMonthlyClubGiftNotificationComposer(habbo.getHabboStats().getRemainingClubGifts()));
|
habbo.getClient().sendResponse(new ClubGiftNotificationComposer(habbo.getHabboStats().getRemainingClubGifts()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Emulator.getIntUnixTimestamp() - habbo.getHabboStats().hcMessageLastModified) < 60) {
|
if ((Emulator.getIntUnixTimestamp() - habbo.getHabboStats().hcMessageLastModified) < 60) {
|
||||||
@ -318,7 +318,7 @@ public class SubscriptionHabboClub extends Subscription {
|
|||||||
progressAchievement(habbo.getHabboInfo());
|
progressAchievement(habbo.getHabboInfo());
|
||||||
|
|
||||||
if (habbo.getHabboStats().getRemainingClubGifts() > 0) {
|
if (habbo.getHabboStats().getRemainingClubGifts() > 0) {
|
||||||
habbo.getClient().sendResponse(new PickMonthlyClubGiftNotificationComposer(habbo.getHabboStats().getRemainingClubGifts()));
|
habbo.getClient().sendResponse(new ClubGiftNotificationComposer(habbo.getHabboStats().getRemainingClubGifts()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection();
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection();
|
||||||
@ -376,7 +376,7 @@ public class SubscriptionHabboClub extends Subscription {
|
|||||||
case "credit":
|
case "credit":
|
||||||
case "coin":
|
case "coin":
|
||||||
habbo.getClient().getHabbo().getHabboInfo().addCredits(amount);
|
habbo.getClient().getHabbo().getHabboInfo().addCredits(amount);
|
||||||
habbo.getClient().sendResponse(new UserCreditsComposer(habbo.getClient().getHabbo()));
|
habbo.getClient().sendResponse(new CreditBalanceComposer(habbo.getClient().getHabbo()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "diamonds":
|
case "diamonds":
|
||||||
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.camera;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.camera.CameraPublishWaitMessageComposer;
|
import com.eu.habbo.messages.outgoing.camera.CameraPublishStatusMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.NotEnoughPointsTypeComposer;
|
import com.eu.habbo.messages.outgoing.catalog.NotEnoughPointsTypeComposer;
|
||||||
import com.eu.habbo.plugin.events.users.UserPublishPictureEvent;
|
import com.eu.habbo.plugin.events.users.UserPublishPictureEvent;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -59,6 +59,6 @@ public class CameraPublishToWebEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new CameraPublishWaitMessageComposer(isOk, cooldownLeft, isOk ? this.client.getHabbo().getHabboInfo().getPhotoURL() : ""));
|
this.client.sendResponse(new CameraPublishStatusMessageComposer(isOk, cooldownLeft, isOk ? this.client.getHabbo().getHabboInfo().getPhotoURL() : ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.achievements.AchievementManager;
|
import com.eu.habbo.habbohotel.achievements.AchievementManager;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.camera.CameraPurchaseSuccesfullComposer;
|
import com.eu.habbo.messages.outgoing.camera.CameraPurchaseOKMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.NotEnoughPointsTypeComposer;
|
import com.eu.habbo.messages.outgoing.catalog.NotEnoughPointsTypeComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AddHabboItemComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
||||||
@ -44,7 +44,7 @@ public class CameraPurchaseEvent extends MessageHandler {
|
|||||||
|
|
||||||
this.client.getHabbo().getInventory().getItemsComponent().addItem(photoItem);
|
this.client.getHabbo().getInventory().getItemsComponent().addItem(photoItem);
|
||||||
|
|
||||||
this.client.sendResponse(new CameraPurchaseSuccesfullComposer());
|
this.client.sendResponse(new CameraPurchaseOKMessageComposer());
|
||||||
this.client.sendResponse(new AddHabboItemComposer(photoItem));
|
this.client.sendResponse(new AddHabboItemComposer(photoItem));
|
||||||
this.client.sendResponse(new InventoryRefreshComposer());
|
this.client.sendResponse(new InventoryRefreshComposer());
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
|||||||
import com.eu.habbo.messages.outgoing.catalog.AlertPurchaseFailedComposer;
|
import com.eu.habbo.messages.outgoing.catalog.AlertPurchaseFailedComposer;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.PurchaseOKComposer;
|
import com.eu.habbo.messages.outgoing.catalog.PurchaseOKComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
import com.eu.habbo.messages.outgoing.inventory.InventoryRefreshComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -68,7 +68,7 @@ public class CatalogBuyClubDiscountEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (totalCredits > 0)
|
if (totalCredits > 0)
|
||||||
this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo()));
|
this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo()));
|
||||||
|
|
||||||
if (totalDuckets > 0)
|
if (totalDuckets > 0)
|
||||||
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
||||||
|
@ -107,7 +107,7 @@ public class CatalogBuyItemEvent extends MessageHandler {
|
|||||||
((RoomBundleLayout) page).buyRoom(this.client.getHabbo());
|
((RoomBundleLayout) page).buyRoom(this.client.getHabbo());
|
||||||
if (!this.client.getHabbo().hasPermission(Permission.ACC_INFINITE_CREDITS)) { //if the player has this perm disabled
|
if (!this.client.getHabbo().hasPermission(Permission.ACC_INFINITE_CREDITS)) { //if the player has this perm disabled
|
||||||
this.client.getHabbo().getHabboInfo().addCredits(-roomBundleItem.getCredits()); // takes their credits away
|
this.client.getHabbo().getHabboInfo().addCredits(-roomBundleItem.getCredits()); // takes their credits away
|
||||||
this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo())); // Sends the updated currency composer window
|
this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo())); // Sends the updated currency composer window
|
||||||
}
|
}
|
||||||
if (!this.client.getHabbo().hasPermission(Permission.ACC_INFINITE_POINTS)) { //if the player has this perm disabled
|
if (!this.client.getHabbo().hasPermission(Permission.ACC_INFINITE_POINTS)) { //if the player has this perm disabled
|
||||||
this.client.getHabbo().getHabboInfo().addCurrencyAmount(roomBundleItem.getPointsType(), -roomBundleItem.getPoints()); // takes their points away
|
this.client.getHabbo().getHabboInfo().addCurrencyAmount(roomBundleItem.getPointsType(), -roomBundleItem.getPoints()); // takes their points away
|
||||||
@ -196,7 +196,7 @@ public class CatalogBuyItemEvent extends MessageHandler {
|
|||||||
this.client.sendResponse(new UserClubComposer(this.client.getHabbo()));*/
|
this.client.sendResponse(new UserClubComposer(this.client.getHabbo()));*/
|
||||||
|
|
||||||
if (totalCredits > 0)
|
if (totalCredits > 0)
|
||||||
this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo()));
|
this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo()));
|
||||||
|
|
||||||
if (totalDuckets > 0)
|
if (totalDuckets > 0)
|
||||||
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
||||||
|
@ -1,18 +1,11 @@
|
|||||||
package com.eu.habbo.messages.incoming.catalog;
|
package com.eu.habbo.messages.incoming.catalog;
|
||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.catalog.CatalogItem;
|
|
||||||
import com.eu.habbo.habbohotel.catalog.CatalogPage;
|
|
||||||
import com.eu.habbo.habbohotel.catalog.CatalogPageLayouts;
|
|
||||||
import com.eu.habbo.habbohotel.catalog.ClubOffer;
|
import com.eu.habbo.habbohotel.catalog.ClubOffer;
|
||||||
import com.eu.habbo.habbohotel.items.Item;
|
|
||||||
import com.eu.habbo.habbohotel.users.subscriptions.Subscription;
|
import com.eu.habbo.habbohotel.users.subscriptions.Subscription;
|
||||||
import com.eu.habbo.habbohotel.users.subscriptions.SubscriptionHabboClub;
|
import com.eu.habbo.habbohotel.users.subscriptions.SubscriptionHabboClub;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.AlertPurchaseFailedComposer;
|
|
||||||
import com.eu.habbo.messages.outgoing.unknown.ExtendClubMessageComposer;
|
import com.eu.habbo.messages.outgoing.unknown.ExtendClubMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ClubGiftReceivedComposer;
|
|
||||||
import gnu.trove.set.hash.THashSet;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.catalog.CatalogPageLayouts;
|
|||||||
import com.eu.habbo.habbohotel.items.Item;
|
import com.eu.habbo.habbohotel.items.Item;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.*;
|
import com.eu.habbo.messages.outgoing.catalog.*;
|
||||||
import com.eu.habbo.messages.outgoing.users.ClubGiftReceivedComposer;
|
import com.eu.habbo.messages.outgoing.users.ClubGiftSelectedComposer;
|
||||||
import gnu.trove.set.hash.THashSet;
|
import gnu.trove.set.hash.THashSet;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -71,7 +71,7 @@ public class CatalogSelectClubGiftEvent extends MessageHandler {
|
|||||||
this.client.getHabbo().getHabboStats().hcGiftsClaimed++;
|
this.client.getHabbo().getHabboStats().hcGiftsClaimed++;
|
||||||
Emulator.getThreading().run(this.client.getHabbo().getHabboStats());
|
Emulator.getThreading().run(this.client.getHabbo().getHabboStats());
|
||||||
|
|
||||||
this.client.sendResponse(new ClubGiftReceivedComposer(itemName, itemsGiven));
|
this.client.sendResponse(new ClubGiftSelectedComposer(itemName, itemsGiven));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.catalog.CatalogPage;
|
import com.eu.habbo.habbohotel.catalog.CatalogPage;
|
||||||
import com.eu.habbo.habbohotel.modtool.ScripterManager;
|
import com.eu.habbo.habbohotel.modtool.ScripterManager;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.CatalogPageComposer;
|
import com.eu.habbo.messages.outgoing.catalog.CatalogPageMessageComposer;
|
||||||
|
|
||||||
public class RequestCatalogPageEvent extends MessageHandler {
|
public class RequestCatalogPageEvent extends MessageHandler {
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ public class RequestCatalogPageEvent extends MessageHandler {
|
|||||||
|
|
||||||
if (catalogPageId > 0 && page != null) {
|
if (catalogPageId > 0 && page != null) {
|
||||||
if (page.getRank() <= this.client.getHabbo().getHabboInfo().getRank().getId() && page.isEnabled()) {
|
if (page.getRank() <= this.client.getHabbo().getHabboInfo().getRank().getId() && page.isEnabled()) {
|
||||||
this.client.sendResponse(new CatalogPageComposer(page, this.client.getHabbo(), offerId, mode));
|
this.client.sendResponse(new CatalogPageMessageComposer(page, this.client.getHabbo(), offerId, mode));
|
||||||
} else {
|
} else {
|
||||||
if (!page.isVisible()) {
|
if (!page.isVisible()) {
|
||||||
ScripterManager.scripterDetected(this.client, Emulator.getTexts().getValue("scripter.warning.catalog.page").replace("%username%", this.client.getHabbo().getHabboInfo().getUsername()).replace("%pagename%", page.getCaption()));
|
ScripterManager.scripterDetected(this.client, Emulator.getTexts().getValue("scripter.warning.catalog.page").replace("%username%", this.client.getHabbo().getHabboInfo().getUsername()).replace("%pagename%", page.getCaption()));
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package com.eu.habbo.messages.incoming.catalog;
|
package com.eu.habbo.messages.incoming.catalog;
|
||||||
|
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.ClubGiftsComposer;
|
import com.eu.habbo.messages.outgoing.catalog.ClubGiftInfoComposer;
|
||||||
|
|
||||||
public class RequestClubGiftsEvent extends MessageHandler {
|
public class RequestClubGiftsEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
this.client.sendResponse(new ClubGiftsComposer(
|
this.client.sendResponse(new ClubGiftInfoComposer(
|
||||||
(int) Math.floor(this.client.getHabbo().getHabboStats().getTimeTillNextClubGift() / 86400.0),
|
(int) Math.floor(this.client.getHabbo().getHabboStats().getTimeTillNextClubGift() / 86400.0),
|
||||||
this.client.getHabbo().getHabboStats().getRemainingClubGifts(),
|
this.client.getHabbo().getHabboStats().getRemainingClubGifts(),
|
||||||
(int) Math.floor(this.client.getHabbo().getHabboStats().getPastTimeAsClub() / 86400.0)
|
(int) Math.floor(this.client.getHabbo().getHabboStats().getPastTimeAsClub() / 86400.0)
|
||||||
|
@ -8,7 +8,7 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionDetachedComposer;
|
import com.eu.habbo.messages.outgoing.guides.GuideSessionDetachedComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionEndedComposer;
|
import com.eu.habbo.messages.outgoing.guides.GuideSessionEndedComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolReportReceivedAlertComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpResultMessageComposer;
|
||||||
|
|
||||||
public class GuideReportHelperEvent extends MessageHandler {
|
public class GuideReportHelperEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -35,7 +35,7 @@ public class GuideReportHelperEvent extends MessageHandler {
|
|||||||
|
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, message));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, message));
|
||||||
|
|
||||||
this.client.sendResponse(new GuideSessionDetachedComposer());
|
this.client.sendResponse(new GuideSessionDetachedComposer());
|
||||||
this.client.sendResponse(new GuideSessionEndedComposer(GuideSessionEndedComposer.HELP_CASE_CLOSED));
|
this.client.sendResponse(new GuideSessionEndedComposer(GuideSessionEndedComposer.HELP_CASE_CLOSED));
|
||||||
|
@ -18,7 +18,7 @@ import com.eu.habbo.messages.NoAuthMessage;
|
|||||||
import com.eu.habbo.messages.ServerMessage;
|
import com.eu.habbo.messages.ServerMessage;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.catalog.TargetedOfferComposer;
|
import com.eu.habbo.messages.outgoing.catalog.TargetedOfferComposer;
|
||||||
import com.eu.habbo.messages.outgoing.events.calendar.AdventCalendarDataComposer;
|
import com.eu.habbo.messages.outgoing.events.calendar.CampaignCalendarDataMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterAccountInfoComposer;
|
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterAccountInfoComposer;
|
||||||
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterGameListComposer;
|
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterGameListComposer;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
|
||||||
@ -31,7 +31,7 @@ import com.eu.habbo.messages.outgoing.handshake.AvailabilityStatusMessageCompose
|
|||||||
import com.eu.habbo.messages.outgoing.handshake.PingComposer;
|
import com.eu.habbo.messages.outgoing.handshake.PingComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.BadgePointLimitsComposer;
|
import com.eu.habbo.messages.outgoing.inventory.BadgePointLimitsComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.AvatarEffectsMessageComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AvatarEffectsMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.CfhTopicsMessageComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CfhTopicsInitComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolComposer;
|
import com.eu.habbo.messages.outgoing.modtool.ModToolComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolSanctionInfoComposer;
|
import com.eu.habbo.messages.outgoing.modtool.ModToolSanctionInfoComposer;
|
||||||
import com.eu.habbo.messages.outgoing.navigator.*;
|
import com.eu.habbo.messages.outgoing.navigator.*;
|
||||||
@ -212,7 +212,7 @@ public class SecureLoginEvent extends MessageHandler {
|
|||||||
messages.add(new IsFirstLoginOfDayComposer(true).compose());
|
messages.add(new IsFirstLoginOfDayComposer(true).compose());
|
||||||
messages.add(new MysteryBoxKeysComposer().compose());
|
messages.add(new MysteryBoxKeysComposer().compose());
|
||||||
messages.add(new BuildersClubSubscriptionStatusMessageComposer().compose());
|
messages.add(new BuildersClubSubscriptionStatusMessageComposer().compose());
|
||||||
messages.add(new CfhTopicsMessageComposer().compose());
|
messages.add(new CfhTopicsInitComposer().compose());
|
||||||
messages.add(new FavoriteRoomsCountComposer(this.client.getHabbo()).compose());
|
messages.add(new FavoriteRoomsCountComposer(this.client.getHabbo()).compose());
|
||||||
messages.add(new GameCenterGameListComposer().compose());
|
messages.add(new GameCenterGameListComposer().compose());
|
||||||
messages.add(new GameCenterAccountInfoComposer(3, 100).compose());
|
messages.add(new GameCenterAccountInfoComposer(3, 100).compose());
|
||||||
@ -229,7 +229,7 @@ public class SecureLoginEvent extends MessageHandler {
|
|||||||
if (campaign != null) {
|
if (campaign != null) {
|
||||||
long daysBetween = DAYS.between(new Timestamp(campaign.getStartTimestamp() * 1000L).toInstant(), new Date().toInstant());
|
long daysBetween = DAYS.between(new Timestamp(campaign.getStartTimestamp() * 1000L).toInstant(), new Date().toInstant());
|
||||||
if (daysBetween >= 0) {
|
if (daysBetween >= 0) {
|
||||||
messages.add(new AdventCalendarDataComposer(campaign.getName(), campaign.getImage(), campaign.getTotalDays(), (int) daysBetween, this.client.getHabbo().getHabboStats().calendarRewardsClaimed, campaign.getLockExpired()).compose());
|
messages.add(new CampaignCalendarDataMessageComposer(campaign.getName(), campaign.getImage(), campaign.getTotalDays(), (int) daysBetween, this.client.getHabbo().getHabboStats().calendarRewardsClaimed, campaign.getLockExpired()).compose());
|
||||||
if(Emulator.getConfig().getBoolean("hotel.login.show.calendar", false)) {
|
if(Emulator.getConfig().getBoolean("hotel.login.show.calendar", false)) {
|
||||||
messages.add(new NuxAlertComposer("openView/calendar").compose());
|
messages.add(new NuxAlertComposer("openView/calendar").compose());
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.eu.habbo.messages.incoming.hotelview;
|
package com.eu.habbo.messages.incoming.hotelview;
|
||||||
|
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewDataComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CurrentTimingCodeMessageComposer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@ -20,9 +20,9 @@ public class HotelViewDataEvent extends MessageHandler {
|
|||||||
|
|
||||||
for (String s : d) {
|
for (String s : d) {
|
||||||
if (s.contains(",")) {
|
if (s.contains(",")) {
|
||||||
this.client.sendResponse(new HotelViewDataComposer(s, s.split(",")[s.split(",").length - 1]));
|
this.client.sendResponse(new CurrentTimingCodeMessageComposer(s, s.split(",")[s.split(",").length - 1]));
|
||||||
} else {
|
} else {
|
||||||
this.client.sendResponse(new HotelViewDataComposer(data, s));
|
this.client.sendResponse(new CurrentTimingCodeMessageComposer(data, s));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -30,7 +30,7 @@ public class HotelViewDataEvent extends MessageHandler {
|
|||||||
|
|
||||||
//this.client.sendResponse(new HotelViewDataComposer("2013-05-08 13:0", "gamesmaker"));
|
//this.client.sendResponse(new HotelViewDataComposer("2013-05-08 13:0", "gamesmaker"));
|
||||||
} else {
|
} else {
|
||||||
this.client.sendResponse(new HotelViewDataComposer(data, data.split(",")[data.split(",").length - 1]));
|
this.client.sendResponse(new CurrentTimingCodeMessageComposer(data, data.split(",")[data.split(",").length - 1]));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.error("Caught exception", e);
|
LOGGER.error("Caught exception", e);
|
||||||
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.hotelview;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CloseConnectionMessageComposer;
|
||||||
|
|
||||||
public class HotelViewEvent extends MessageHandler {
|
public class HotelViewEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -22,7 +22,7 @@ public class HotelViewEvent extends MessageHandler {
|
|||||||
} else {
|
} else {
|
||||||
this.client.getHabbo().getHabboInfo().setRoomQueueId(0);
|
this.client.getHabbo().getHabboInfo().setRoomQueueId(0);
|
||||||
}
|
}
|
||||||
this.client.sendResponse(new HotelViewComposer());
|
this.client.sendResponse(new CloseConnectionMessageComposer());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.client.getHabbo().getRoomUnit() != null) {
|
if (this.client.getHabbo().getRoomUnit() != null) {
|
||||||
|
@ -2,15 +2,15 @@ package com.eu.habbo.messages.incoming.hotelview;
|
|||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HallOfFameComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CommunityGoalHallOfFameMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewDataComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CurrentTimingCodeMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.NewsListComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.NewsListComposer;
|
||||||
|
|
||||||
public class RequestNewsListEvent extends MessageHandler {
|
public class RequestNewsListEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
this.client.sendResponse(new HotelViewDataComposer("2013-05-08 13:0", "gamesmaker"));
|
this.client.sendResponse(new CurrentTimingCodeMessageComposer("2013-05-08 13:0", "gamesmaker"));
|
||||||
this.client.sendResponse(new HallOfFameComposer(Emulator.getGameEnvironment().getHotelViewManager().getHallOfFame()));
|
this.client.sendResponse(new CommunityGoalHallOfFameMessageComposer(Emulator.getGameEnvironment().getHotelViewManager().getHallOfFame()));
|
||||||
this.client.sendResponse(new NewsListComposer());
|
this.client.sendResponse(new NewsListComposer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import com.eu.habbo.habbohotel.modtool.*;
|
|||||||
import com.eu.habbo.habbohotel.permissions.Permission;
|
import com.eu.habbo.habbohotel.permissions.Permission;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolIssueChatlogComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CfhChatlogComposer;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -67,7 +67,7 @@ public class ModToolRequestIssueChatlogEvent extends MessageHandler {
|
|||||||
if (room != null) {
|
if (room != null) {
|
||||||
roomName = room.getName();
|
roomName = room.getName();
|
||||||
}
|
}
|
||||||
this.client.sendResponse(new ModToolIssueChatlogComposer(issue, chatlog, roomName, chatlogType));
|
this.client.sendResponse(new CfhChatlogComposer(issue, chatlog, roomName, chatlogType));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ScripterManager.scripterDetected(this.client, Emulator.getTexts().getValue("scripter.warning.modtools.chatlog").replace("%username%", this.client.getHabbo().getHabboInfo().getUsername()));
|
ScripterManager.scripterDetected(this.client, Emulator.getTexts().getValue("scripter.warning.modtools.chatlog").replace("%username%", this.client.getHabbo().getHabboInfo().getUsername()));
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
|||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.BullyReportedMessageComposer;
|
import com.eu.habbo.messages.outgoing.modtool.BullyReportedMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.HelperRequestDisabledComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpDisabledNotifyMessageComposer;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ public class ReportBullyEvent extends MessageHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (this.client.getHabbo().getHabboStats().allowTalk()) {
|
if (this.client.getHabbo().getHabboStats().allowTalk()) {
|
||||||
this.client.sendResponse(new HelperRequestDisabledComposer());
|
this.client.sendResponse(new CallForHelpDisabledNotifyMessageComposer());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.modtool.ModToolIssue;
|
|||||||
import com.eu.habbo.habbohotel.modtool.ModToolTicketType;
|
import com.eu.habbo.habbohotel.modtool.ModToolTicketType;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolReportReceivedAlertComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpResultMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
||||||
|
|
||||||
public class ReportCommentEvent extends MessageHandler {
|
public class ReportCommentEvent extends MessageHandler {
|
||||||
@ -36,7 +36,7 @@ public class ReportCommentEvent extends MessageHandler {
|
|||||||
issue.commentId = commentId;
|
issue.commentId = commentId;
|
||||||
new InsertModToolIssue(issue).run();
|
new InsertModToolIssue(issue).run();
|
||||||
|
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, message));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, message));
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ public class ReportEvent extends MessageHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (!this.client.getHabbo().getHabboStats().allowTalk()) {
|
if (!this.client.getHabbo().getHabboStats().allowTalk()) {
|
||||||
this.client.sendResponse(new HelperRequestDisabledComposer());
|
this.client.sendResponse(new CallForHelpDisabledNotifyMessageComposer());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ public class ReportEvent extends MessageHandler {
|
|||||||
List<ModToolIssue> issues = Emulator.getGameEnvironment().getModToolManager().openTicketsForHabbo(this.client.getHabbo());
|
List<ModToolIssue> issues = Emulator.getGameEnvironment().getModToolManager().openTicketsForHabbo(this.client.getHabbo());
|
||||||
if (!issues.isEmpty()) {
|
if (!issues.isEmpty()) {
|
||||||
//this.client.sendResponse(new GenericAlertComposer("You've got still a pending ticket. Wait till the moderators are done reviewing your ticket."));
|
//this.client.sendResponse(new GenericAlertComposer("You've got still a pending ticket. Wait till the moderators are done reviewing your ticket."));
|
||||||
this.client.sendResponse(new ReportRoomFormComposer(issues));
|
this.client.sendResponse(new CallForHelpPendingCallsMessageComposer(issues));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ public class ReportEvent extends MessageHandler {
|
|||||||
|
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, cfhTopic.reply));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, cfhTopic.reply));
|
||||||
|
|
||||||
if (cfhTopic != null) {
|
if (cfhTopic != null) {
|
||||||
if (cfhTopic.action != CfhActionType.MODS) {
|
if (cfhTopic.action != CfhActionType.MODS) {
|
||||||
@ -91,7 +91,7 @@ public class ReportEvent extends MessageHandler {
|
|||||||
issue.category = topic;
|
issue.category = topic;
|
||||||
new InsertModToolIssue(issue).run();
|
new InsertModToolIssue(issue).run();
|
||||||
|
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, message));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, message));
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
|||||||
import com.eu.habbo.habbohotel.users.HabboInfo;
|
import com.eu.habbo.habbohotel.users.HabboInfo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboManager;
|
import com.eu.habbo.habbohotel.users.HabboManager;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.HelperRequestDisabledComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpDisabledNotifyMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -17,7 +17,7 @@ public class ReportFriendPrivateChatEvent extends MessageHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (!this.client.getHabbo().getHabboStats().allowTalk()) {
|
if (!this.client.getHabbo().getHabboStats().allowTalk()) {
|
||||||
this.client.sendResponse(new HelperRequestDisabledComposer());
|
this.client.sendResponse(new CallForHelpDisabledNotifyMessageComposer());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,9 +9,8 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
|||||||
import com.eu.habbo.habbohotel.users.HabboInfo;
|
import com.eu.habbo.habbohotel.users.HabboInfo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolReportReceivedAlertComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpResultMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
||||||
import com.google.gson.JsonParser;
|
|
||||||
|
|
||||||
public class ReportPhotoEvent extends MessageHandler {
|
public class ReportPhotoEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -50,7 +49,7 @@ public class ReportPhotoEvent extends MessageHandler {
|
|||||||
|
|
||||||
new InsertModToolIssue(issue).run();
|
new InsertModToolIssue(issue).run();
|
||||||
|
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, ""));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, ""));
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.modtool.ModToolIssue;
|
|||||||
import com.eu.habbo.habbohotel.modtool.ModToolTicketType;
|
import com.eu.habbo.habbohotel.modtool.ModToolTicketType;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ModToolReportReceivedAlertComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpResultMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
import com.eu.habbo.threading.runnables.InsertModToolIssue;
|
||||||
|
|
||||||
public class ReportThreadEvent extends MessageHandler {
|
public class ReportThreadEvent extends MessageHandler {
|
||||||
@ -34,7 +34,7 @@ public class ReportThreadEvent extends MessageHandler {
|
|||||||
issue.threadId = threadId;
|
issue.threadId = threadId;
|
||||||
new InsertModToolIssue(issue).run();
|
new InsertModToolIssue(issue).run();
|
||||||
|
|
||||||
this.client.sendResponse(new ModToolReportReceivedAlertComposer(ModToolReportReceivedAlertComposer.REPORT_RECEIVED, message));
|
this.client.sendResponse(new CallForHelpResultMessageComposer(CallForHelpResultMessageComposer.REPORT_RECEIVED, message));
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,11 @@ package com.eu.habbo.messages.incoming.modtool;
|
|||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.modtool.ReportRoomFormComposer;
|
import com.eu.habbo.messages.outgoing.modtool.CallForHelpPendingCallsMessageComposer;
|
||||||
|
|
||||||
public class RequestReportRoomEvent extends MessageHandler {
|
public class RequestReportRoomEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
this.client.sendResponse(new ReportRoomFormComposer(Emulator.getGameEnvironment().getModToolManager().openTicketsForHabbo(this.client.getHabbo())));
|
this.client.sendResponse(new CallForHelpPendingCallsMessageComposer(Emulator.getGameEnvironment().getModToolManager().openTicketsForHabbo(this.client.getHabbo())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ public class RequestNewNavigatorDataEvent extends MessageHandler {
|
|||||||
this.client.sendResponse(new NewNavigatorSettingsComposer(this.client.getHabbo().getHabboStats().navigatorWindowSettings));
|
this.client.sendResponse(new NewNavigatorSettingsComposer(this.client.getHabbo().getHabboStats().navigatorWindowSettings));
|
||||||
this.client.sendResponse(new NewNavigatorMetaDataComposer());
|
this.client.sendResponse(new NewNavigatorMetaDataComposer());
|
||||||
this.client.sendResponse(new NewNavigatorLiftedRoomsComposer());
|
this.client.sendResponse(new NewNavigatorLiftedRoomsComposer());
|
||||||
this.client.sendResponse(new NewNavigatorCollapsedCategoriesComposer());
|
this.client.sendResponse(new CollapsedCategoriesComposer());
|
||||||
this.client.sendResponse(new NewNavigatorSavedSearchesComposer(this.client.getHabbo().getHabboInfo().getSavedSearches()));
|
this.client.sendResponse(new NewNavigatorSavedSearchesComposer(this.client.getHabbo().getHabboInfo().getSavedSearches()));
|
||||||
this.client.sendResponse(new NewNavigatorEventCategoriesComposer());
|
this.client.sendResponse(new NewNavigatorEventCategoriesComposer());
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.rooms;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.hotelview.HotelViewComposer;
|
import com.eu.habbo.messages.outgoing.hotelview.CloseConnectionMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.HideDoorbellComposer;
|
import com.eu.habbo.messages.outgoing.rooms.HideDoorbellComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.RoomAccessDeniedComposer;
|
import com.eu.habbo.messages.outgoing.rooms.RoomAccessDeniedComposer;
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ public class HandleDoorbellEvent extends MessageHandler {
|
|||||||
Emulator.getGameEnvironment().getRoomManager().enterRoom(habbo, this.client.getHabbo().getHabboInfo().getCurrentRoom().getId(), "", true);
|
Emulator.getGameEnvironment().getRoomManager().enterRoom(habbo, this.client.getHabbo().getHabboInfo().getCurrentRoom().getId(), "", true);
|
||||||
} else {
|
} else {
|
||||||
habbo.getClient().sendResponse(new RoomAccessDeniedComposer(""));
|
habbo.getClient().sendResponse(new RoomAccessDeniedComposer(""));
|
||||||
habbo.getClient().sendResponse(new HotelViewComposer());
|
habbo.getClient().sendResponse(new CloseConnectionMessageComposer());
|
||||||
}
|
}
|
||||||
habbo.getHabboInfo().setRoomQueueId(0);
|
habbo.getHabboInfo().setRoomQueueId(0);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.users.HabboItem;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.UpdateStackHeightComposer;
|
import com.eu.habbo.messages.outgoing.rooms.UpdateStackHeightComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.items.RemoveFloorItemComposer;
|
import com.eu.habbo.messages.outgoing.rooms.items.RemoveFloorItemComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.furniture.FurnitureRedeemedEvent;
|
import com.eu.habbo.plugin.events.furniture.FurnitureRedeemedEvent;
|
||||||
import com.eu.habbo.threading.runnables.QueryDeleteHabboItem;
|
import com.eu.habbo.threading.runnables.QueryDeleteHabboItem;
|
||||||
@ -108,7 +108,7 @@ public class RedeemItemEvent extends MessageHandler {
|
|||||||
switch (furniRedeemEvent.currencyID) {
|
switch (furniRedeemEvent.currencyID) {
|
||||||
case FurnitureRedeemedEvent.CREDITS:
|
case FurnitureRedeemedEvent.CREDITS:
|
||||||
this.client.getHabbo().getHabboInfo().addCredits(furniRedeemEvent.amount);
|
this.client.getHabbo().getHabboInfo().addCredits(furniRedeemEvent.amount);
|
||||||
this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo()));
|
this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FurnitureRedeemedEvent.DIAMONDS:
|
case FurnitureRedeemedEvent.DIAMONDS:
|
||||||
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.rooms.users;
|
|||||||
|
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserHandItemComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.CarryObjectMessageComposer;
|
||||||
|
|
||||||
public class RoomUserDropHandItemEvent extends MessageHandler {
|
public class RoomUserDropHandItemEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -11,7 +11,7 @@ public class RoomUserDropHandItemEvent extends MessageHandler {
|
|||||||
this.client.getHabbo().getRoomUnit().setHandItem(0);
|
this.client.getHabbo().getRoomUnit().setHandItem(0);
|
||||||
if (room != null) {
|
if (room != null) {
|
||||||
room.unIdle(this.client.getHabbo());
|
room.unIdle(this.client.getHabbo());
|
||||||
room.sendComposer(new RoomUserHandItemComposer(this.client.getHabbo().getRoomUnit()).compose());
|
room.sendComposer(new CarryObjectMessageComposer(this.client.getHabbo().getRoomUnit()).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,7 @@ package com.eu.habbo.messages.incoming.users;
|
|||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.users.HabboManager;
|
import com.eu.habbo.habbohotel.users.HabboManager;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserNameChangedComposer;
|
import com.eu.habbo.messages.outgoing.users.CheckUserNameResultMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ChangeNameCheckResultComposer;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -19,21 +18,21 @@ public class ChangeNameCheckUsernameEvent extends MessageHandler {
|
|||||||
|
|
||||||
String name = this.packet.readString();
|
String name = this.packet.readString();
|
||||||
|
|
||||||
int errorCode = ChangeNameCheckResultComposer.AVAILABLE;
|
int errorCode = CheckUserNameResultMessageComposer.AVAILABLE;
|
||||||
|
|
||||||
List<String> suggestions = new ArrayList<>(4);
|
List<String> suggestions = new ArrayList<>(4);
|
||||||
if (name.length() < 3) {
|
if (name.length() < 3) {
|
||||||
errorCode = ChangeNameCheckResultComposer.TOO_SHORT;
|
errorCode = CheckUserNameResultMessageComposer.TOO_SHORT;
|
||||||
} else if (name.length() > 15) {
|
} else if (name.length() > 15) {
|
||||||
errorCode = ChangeNameCheckResultComposer.TOO_LONG;
|
errorCode = CheckUserNameResultMessageComposer.TOO_LONG;
|
||||||
} else if (name.equalsIgnoreCase(this.client.getHabbo().getHabboInfo().getUsername()) || HabboManager.getOfflineHabboInfo(name) != null || ConfirmChangeNameEvent.changingUsernames.contains(name.toLowerCase())) {
|
} else if (name.equalsIgnoreCase(this.client.getHabbo().getHabboInfo().getUsername()) || HabboManager.getOfflineHabboInfo(name) != null || ConfirmChangeNameEvent.changingUsernames.contains(name.toLowerCase())) {
|
||||||
errorCode = ChangeNameCheckResultComposer.TAKEN_WITH_SUGGESTIONS;
|
errorCode = CheckUserNameResultMessageComposer.TAKEN_WITH_SUGGESTIONS;
|
||||||
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
||||||
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
||||||
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
||||||
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
suggestions.add(name + Emulator.getRandom().nextInt(9999));
|
||||||
} else if (!Emulator.getGameEnvironment().getWordFilter().filter(name, this.client.getHabbo()).equalsIgnoreCase(name)) {
|
} else if (!Emulator.getGameEnvironment().getWordFilter().filter(name, this.client.getHabbo()).equalsIgnoreCase(name)) {
|
||||||
errorCode = ChangeNameCheckResultComposer.NOT_VALID;
|
errorCode = CheckUserNameResultMessageComposer.NOT_VALID;
|
||||||
} else {
|
} else {
|
||||||
String checkName = name;
|
String checkName = name;
|
||||||
for (char c : VALID_CHARACTERS.toCharArray()) {
|
for (char c : VALID_CHARACTERS.toCharArray()) {
|
||||||
@ -41,12 +40,12 @@ public class ChangeNameCheckUsernameEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!checkName.isEmpty()) {
|
if (!checkName.isEmpty()) {
|
||||||
errorCode = ChangeNameCheckResultComposer.NOT_VALID;
|
errorCode = CheckUserNameResultMessageComposer.NOT_VALID;
|
||||||
} else {
|
} else {
|
||||||
this.client.getHabbo().getHabboStats().changeNameChecked = name;
|
this.client.getHabbo().getHabboStats().changeNameChecked = name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new ChangeNameCheckResultComposer(errorCode, name, suggestions));
|
this.client.sendResponse(new CheckUserNameResultMessageComposer(errorCode, name, suggestions));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,9 +5,9 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
|||||||
import com.eu.habbo.habbohotel.users.HabboInfo;
|
import com.eu.habbo.habbohotel.users.HabboInfo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboManager;
|
import com.eu.habbo.habbohotel.users.HabboManager;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.ChangeNameUpdatedComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ChangeUserNameResultMessageEvent;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserNameChangedComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserNameChangedComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ChangeNameCheckResultComposer;
|
import com.eu.habbo.messages.outgoing.users.CheckUserNameResultMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserDataComposer;
|
import com.eu.habbo.messages.outgoing.users.UserDataComposer;
|
||||||
import com.eu.habbo.plugin.events.users.UserNameChangedEvent;
|
import com.eu.habbo.plugin.events.users.UserNameChangedEvent;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -33,7 +33,7 @@ public class ConfirmChangeNameEvent extends MessageHandler {
|
|||||||
|
|
||||||
if (name.equalsIgnoreCase(this.client.getHabbo().getHabboInfo().getUsername())) {
|
if (name.equalsIgnoreCase(this.client.getHabbo().getHabboInfo().getUsername())) {
|
||||||
this.client.getHabbo().getHabboStats().allowNameChange = false;
|
this.client.getHabbo().getHabboStats().allowNameChange = false;
|
||||||
this.client.sendResponse(new ChangeNameUpdatedComposer(this.client.getHabbo()));
|
this.client.sendResponse(new ChangeUserNameResultMessageEvent(this.client.getHabbo()));
|
||||||
this.client.sendResponse(new RoomUserNameChangedComposer(this.client.getHabbo()).compose());
|
this.client.sendResponse(new RoomUserNameChangedComposer(this.client.getHabbo()).compose());
|
||||||
this.client.sendResponse(new UserDataComposer(this.client.getHabbo()));
|
this.client.sendResponse(new UserDataComposer(this.client.getHabbo()));
|
||||||
return;
|
return;
|
||||||
@ -66,7 +66,7 @@ public class ConfirmChangeNameEvent extends MessageHandler {
|
|||||||
changingUsernames.remove(name);
|
changingUsernames.remove(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new ChangeNameUpdatedComposer(this.client.getHabbo()));
|
this.client.sendResponse(new ChangeUserNameResultMessageEvent(this.client.getHabbo()));
|
||||||
|
|
||||||
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() != null) {
|
||||||
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserNameChangedComposer(this.client.getHabbo()).compose());
|
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserNameChangedComposer(this.client.getHabbo()).compose());
|
||||||
@ -87,7 +87,7 @@ public class ConfirmChangeNameEvent extends MessageHandler {
|
|||||||
LOGGER.error("Caught SQL exception", e);
|
LOGGER.error("Caught SQL exception", e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.client.sendResponse(new ChangeNameCheckResultComposer(ChangeNameCheckResultComposer.TAKEN_WITH_SUGGESTIONS, name, new ArrayList<>()));
|
this.client.sendResponse(new CheckUserNameResultMessageComposer(CheckUserNameResultMessageComposer.TAKEN_WITH_SUGGESTIONS, name, new ArrayList<>()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.eu.habbo.messages.incoming.users;
|
package com.eu.habbo.messages.incoming.users;
|
||||||
|
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserCreditsComposer;
|
import com.eu.habbo.messages.outgoing.users.CreditBalanceComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
||||||
|
|
||||||
public class RequestUserCreditsEvent extends MessageHandler {
|
public class RequestUserCreditsEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handle() {
|
public void handle() {
|
||||||
this.client.sendResponse(new UserCreditsComposer(this.client.getHabbo()));
|
this.client.sendResponse(new CreditBalanceComposer(this.client.getHabbo()));
|
||||||
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
this.client.sendResponse(new ActivityPointsMessageComposer(this.client.getHabbo()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,12 +4,12 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CameraPublishWaitMessageComposer extends MessageComposer {
|
public class CameraPublishStatusMessageComposer extends MessageComposer {
|
||||||
public final boolean isOk;
|
public final boolean isOk;
|
||||||
public final int cooldownSeconds;
|
public final int cooldownSeconds;
|
||||||
public final String extraDataId;
|
public final String extraDataId;
|
||||||
|
|
||||||
public CameraPublishWaitMessageComposer(boolean isOk, int cooldownSeconds, String extraDataId) {
|
public CameraPublishStatusMessageComposer(boolean isOk, int cooldownSeconds, String extraDataId) {
|
||||||
this.isOk = isOk;
|
this.isOk = isOk;
|
||||||
this.cooldownSeconds = cooldownSeconds;
|
this.cooldownSeconds = cooldownSeconds;
|
||||||
this.extraDataId = extraDataId;
|
this.extraDataId = extraDataId;
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CameraPurchaseSuccesfullComposer extends MessageComposer {
|
public class CameraPurchaseOKMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CameraPurchaseOKMessageComposer);
|
this.response.init(Outgoing.CameraPurchaseOKMessageComposer);
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CameraURLComposer extends MessageComposer {
|
public class CameraStorageUrlMessageComposer extends MessageComposer {
|
||||||
private final String URL;
|
private final String URL;
|
||||||
|
|
||||||
public CameraURLComposer(String url) {
|
public CameraStorageUrlMessageComposer(String url) {
|
||||||
this.URL = url;
|
this.URL = url;
|
||||||
}
|
}
|
||||||
|
|
@ -4,11 +4,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CameraCompetitionStatusComposer extends MessageComposer {
|
public class CompetitionStatusMessageComposer extends MessageComposer {
|
||||||
private final boolean unknownBoolean;
|
private final boolean unknownBoolean;
|
||||||
private final String unknownString;
|
private final String unknownString;
|
||||||
|
|
||||||
public CameraCompetitionStatusComposer(boolean unknownBoolean, String unknownString) {
|
public CompetitionStatusMessageComposer(boolean unknownBoolean, String unknownString) {
|
||||||
this.unknownBoolean = unknownBoolean;
|
this.unknownBoolean = unknownBoolean;
|
||||||
this.unknownString = unknownString;
|
this.unknownString = unknownString;
|
||||||
}
|
}
|
@ -17,13 +17,13 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class CatalogPageComposer extends MessageComposer {
|
public class CatalogPageMessageComposer extends MessageComposer {
|
||||||
private final CatalogPage page;
|
private final CatalogPage page;
|
||||||
private final Habbo habbo;
|
private final Habbo habbo;
|
||||||
private final int offerId;
|
private final int offerId;
|
||||||
private final String mode;
|
private final String mode;
|
||||||
|
|
||||||
public CatalogPageComposer(CatalogPage page, Habbo habbo, int offerId, String mode) {
|
public CatalogPageMessageComposer(CatalogPage page, Habbo habbo, int offerId, String mode) {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
this.habbo = habbo;
|
this.habbo = habbo;
|
||||||
this.offerId = offerId;
|
this.offerId = offerId;
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CatalogUpdatedComposer extends MessageComposer {
|
public class CatalogPublishedMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CatalogPublishedMessageComposer);
|
this.response.init(Outgoing.CatalogPublishedMessageComposer);
|
@ -12,13 +12,13 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ClubGiftsComposer extends MessageComposer {
|
public class ClubGiftInfoComposer extends MessageComposer {
|
||||||
|
|
||||||
private final int daysTillNextGift;
|
private final int daysTillNextGift;
|
||||||
private final int availableGifts;
|
private final int availableGifts;
|
||||||
private final int daysAsHc;
|
private final int daysAsHc;
|
||||||
|
|
||||||
public ClubGiftsComposer(int daysTillNextGift, int availableGifts, int daysAsHc) {
|
public ClubGiftInfoComposer(int daysTillNextGift, int availableGifts, int daysAsHc) {
|
||||||
this.daysTillNextGift = daysTillNextGift;
|
this.daysTillNextGift = daysTillNextGift;
|
||||||
this.availableGifts = availableGifts;
|
this.availableGifts = availableGifts;
|
||||||
this.daysAsHc = daysAsHc;
|
this.daysAsHc = daysAsHc;
|
@ -8,7 +8,7 @@ import gnu.trove.list.array.TIntArrayList;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class AdventCalendarDataComposer extends MessageComposer {
|
public class CampaignCalendarDataMessageComposer extends MessageComposer {
|
||||||
private final String eventName;
|
private final String eventName;
|
||||||
private final String campaignImage;
|
private final String campaignImage;
|
||||||
private final int totalDays;
|
private final int totalDays;
|
||||||
@ -16,7 +16,7 @@ public class AdventCalendarDataComposer extends MessageComposer {
|
|||||||
private final ArrayList<CalendarRewardClaimed> unlocked;
|
private final ArrayList<CalendarRewardClaimed> unlocked;
|
||||||
private final boolean lockExpired;
|
private final boolean lockExpired;
|
||||||
|
|
||||||
public AdventCalendarDataComposer(String eventName, String campaignImage, int totalDays, int currentDay, ArrayList<CalendarRewardClaimed> unlocked, boolean lockExpired) {
|
public CampaignCalendarDataMessageComposer(String eventName, String campaignImage, int totalDays, int currentDay, ArrayList<CalendarRewardClaimed> unlocked, boolean lockExpired) {
|
||||||
this.eventName = eventName;
|
this.eventName = eventName;
|
||||||
this.campaignImage = campaignImage;
|
this.campaignImage = campaignImage;
|
||||||
this.totalDays = totalDays;
|
this.totalDays = totalDays;
|
||||||
@ -44,7 +44,7 @@ public class AdventCalendarDataComposer extends MessageComposer {
|
|||||||
if(this.currentDay > 0) expired.remove(this.currentDay - 1);
|
if(this.currentDay > 0) expired.remove(this.currentDay - 1);
|
||||||
|
|
||||||
this.unlocked.forEach(claimed -> {
|
this.unlocked.forEach(claimed -> {
|
||||||
AdventCalendarDataComposer.this.response.appendInt(claimed.getDay());
|
CampaignCalendarDataMessageComposer.this.response.appendInt(claimed.getDay());
|
||||||
expired.remove(claimed.getDay());
|
expired.remove(claimed.getDay());
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ public class AdventCalendarDataComposer extends MessageComposer {
|
|||||||
if (this.lockExpired) {
|
if (this.lockExpired) {
|
||||||
this.response.appendInt(expired.size());
|
this.response.appendInt(expired.size());
|
||||||
expired.forEach(value -> {
|
expired.forEach(value -> {
|
||||||
AdventCalendarDataComposer.this.response.appendInt(value);
|
CampaignCalendarDataMessageComposer.this.response.appendInt(value);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
@ -7,12 +7,12 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class AdventCalendarProductComposer extends MessageComposer {
|
public class CampaignCalendarDoorOpenedMessageComposer extends MessageComposer {
|
||||||
public final boolean visible;
|
public final boolean visible;
|
||||||
public final CalendarRewardObject rewardObject;
|
public final CalendarRewardObject rewardObject;
|
||||||
public final Habbo habbo;
|
public final Habbo habbo;
|
||||||
|
|
||||||
public AdventCalendarProductComposer(boolean visible, CalendarRewardObject rewardObject, Habbo habbo) {
|
public CampaignCalendarDoorOpenedMessageComposer(boolean visible, CalendarRewardObject rewardObject, Habbo habbo) {
|
||||||
this.visible = visible;
|
this.visible = visible;
|
||||||
this.rewardObject = rewardObject;
|
this.rewardObject = rewardObject;
|
||||||
this.habbo = habbo;
|
this.habbo = habbo;
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class PickMonthlyClubGiftNotificationComposer extends MessageComposer {
|
public class ClubGiftNotificationComposer extends MessageComposer {
|
||||||
private final int count;
|
private final int count;
|
||||||
|
|
||||||
public PickMonthlyClubGiftNotificationComposer(int count) {
|
public ClubGiftNotificationComposer(int count) {
|
||||||
this.count = count;
|
this.count = count;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CustomNotificationComposer extends MessageComposer {
|
public class CustomUserNotificationMessageComposer extends MessageComposer {
|
||||||
public static final int HOPPER_NO_COSTUME = 1;
|
public static final int HOPPER_NO_COSTUME = 1;
|
||||||
public static final int HOPPER_NO_HC = 2;
|
public static final int HOPPER_NO_HC = 2;
|
||||||
public static final int GATE_NO_HC = 3;
|
public static final int GATE_NO_HC = 3;
|
||||||
@ -13,7 +13,7 @@ public class CustomNotificationComposer extends MessageComposer {
|
|||||||
|
|
||||||
private final int type;
|
private final int type;
|
||||||
|
|
||||||
public CustomNotificationComposer(int type) {
|
public CustomUserNotificationMessageComposer(int type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class GuardianVotingTimeEnded extends MessageComposer {
|
public class ChatReviewSessionDetachedMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.ChatReviewSessionDetachedMessageComposer);
|
this.response.init(Outgoing.ChatReviewSessionDetachedMessageComposer);
|
@ -5,7 +5,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class GuardianNewReportReceivedComposer extends MessageComposer {
|
public class ChatReviewSessionOfferedToGuideMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.ChatReviewSessionOfferedToGuideMessageComposer);
|
this.response.init(Outgoing.ChatReviewSessionOfferedToGuideMessageComposer);
|
@ -9,11 +9,11 @@ import com.eu.habbo.messages.outgoing.Outgoing;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class GuardianVotingResultComposer extends MessageComposer {
|
public class ChatReviewSessionResultsMessageComposer extends MessageComposer {
|
||||||
private final GuardianTicket ticket;
|
private final GuardianTicket ticket;
|
||||||
private final GuardianVote vote;
|
private final GuardianVote vote;
|
||||||
|
|
||||||
public GuardianVotingResultComposer(GuardianTicket ticket, GuardianVote vote) {
|
public ChatReviewSessionResultsMessageComposer(GuardianTicket ticket, GuardianVote vote) {
|
||||||
this.ticket = ticket;
|
this.ticket = ticket;
|
||||||
this.vote = vote;
|
this.vote = vote;
|
||||||
}
|
}
|
@ -9,10 +9,10 @@ import gnu.trove.map.hash.TIntIntHashMap;
|
|||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
||||||
public class GuardianVotingRequestedComposer extends MessageComposer {
|
public class ChatReviewSessionStartedMessageComposer extends MessageComposer {
|
||||||
private final GuardianTicket ticket;
|
private final GuardianTicket ticket;
|
||||||
|
|
||||||
public GuardianVotingRequestedComposer(GuardianTicket ticket) {
|
public ChatReviewSessionStartedMessageComposer(GuardianTicket ticket) {
|
||||||
this.ticket = ticket;
|
this.ticket = ticket;
|
||||||
}
|
}
|
||||||
|
|
@ -9,11 +9,11 @@ import com.eu.habbo.messages.outgoing.Outgoing;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class GuardianVotingVotesComposer extends MessageComposer {
|
public class ChatReviewSessionVotingStatusMessageComposer extends MessageComposer {
|
||||||
private final GuardianTicket ticket;
|
private final GuardianTicket ticket;
|
||||||
private final Habbo guardian;
|
private final Habbo guardian;
|
||||||
|
|
||||||
public GuardianVotingVotesComposer(GuardianTicket ticket, Habbo guardian) {
|
public ChatReviewSessionVotingStatusMessageComposer(GuardianTicket ticket, Habbo guardian) {
|
||||||
this.ticket = ticket;
|
this.ticket = ticket;
|
||||||
this.guardian = guardian;
|
this.guardian = guardian;
|
||||||
}
|
}
|
@ -5,11 +5,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewExpiringCatalogPageCommposer extends MessageComposer {
|
public class CatalogPageWithEarliestExpiryMessageComposer extends MessageComposer {
|
||||||
private final CatalogPage page;
|
private final CatalogPage page;
|
||||||
private final String image;
|
private final String image;
|
||||||
|
|
||||||
public HotelViewExpiringCatalogPageCommposer(CatalogPage page, String image) {
|
public CatalogPageWithEarliestExpiryMessageComposer(CatalogPage page, String image) {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
this.image = image;
|
this.image = image;
|
||||||
}
|
}
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewComposer extends MessageComposer {
|
public class CloseConnectionMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CloseConnectionMessageComposer);
|
this.response.init(Outgoing.CloseConnectionMessageComposer);
|
@ -10,10 +10,10 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class HallOfFameComposer extends MessageComposer {
|
public class CommunityGoalHallOfFameMessageComposer extends MessageComposer {
|
||||||
private final HallOfFame hallOfFame;
|
private final HallOfFame hallOfFame;
|
||||||
|
|
||||||
public HallOfFameComposer(HallOfFame hallOfFame) {
|
public CommunityGoalHallOfFameMessageComposer(HallOfFame hallOfFame) {
|
||||||
this.hallOfFame = hallOfFame;
|
this.hallOfFame = hallOfFame;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewCommunityGoalComposer extends MessageComposer {
|
public class CommunityGoalProgressMessageComposer extends MessageComposer {
|
||||||
private final boolean achieved;
|
private final boolean achieved;
|
||||||
private final int personalContributionScore;
|
private final int personalContributionScore;
|
||||||
private final int personalRank;
|
private final int personalRank;
|
||||||
@ -16,7 +16,7 @@ public class HotelViewCommunityGoalComposer extends MessageComposer {
|
|||||||
private final int timeLeft;
|
private final int timeLeft;
|
||||||
private final int[] rankData;
|
private final int[] rankData;
|
||||||
|
|
||||||
public HotelViewCommunityGoalComposer(boolean achieved,
|
public CommunityGoalProgressMessageComposer(boolean achieved,
|
||||||
int personalContributionScore,
|
int personalContributionScore,
|
||||||
int personalRank,
|
int personalRank,
|
||||||
int totalAmount,
|
int totalAmount,
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewHideCommunityVoteButtonComposer extends MessageComposer {
|
public class CommunityGoalVoteMessageComposer extends MessageComposer {
|
||||||
private final boolean unknownBoolean;
|
private final boolean unknownBoolean;
|
||||||
|
|
||||||
public HotelViewHideCommunityVoteButtonComposer(boolean unknownBoolean) {
|
public CommunityGoalVoteMessageComposer(boolean unknownBoolean) {
|
||||||
this.unknownBoolean = unknownBoolean;
|
this.unknownBoolean = unknownBoolean;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewConcurrentUsersComposer extends MessageComposer {
|
public class ConcurrentUsersGoalProgressMessageComposer extends MessageComposer {
|
||||||
public static final int ACTIVE = 0;
|
public static final int ACTIVE = 0;
|
||||||
public static final int HIDDEN = 2;
|
public static final int HIDDEN = 2;
|
||||||
public static final int ACHIEVED = 3;
|
public static final int ACHIEVED = 3;
|
||||||
@ -13,7 +13,7 @@ public class HotelViewConcurrentUsersComposer extends MessageComposer {
|
|||||||
private final int userCount;
|
private final int userCount;
|
||||||
private final int goal;
|
private final int goal;
|
||||||
|
|
||||||
public HotelViewConcurrentUsersComposer(int state, int userCount, int goal) {
|
public ConcurrentUsersGoalProgressMessageComposer(int state, int userCount, int goal) {
|
||||||
this.state = state;
|
this.state = state;
|
||||||
this.userCount = userCount;
|
this.userCount = userCount;
|
||||||
this.goal = goal;
|
this.goal = goal;
|
@ -4,11 +4,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HotelViewDataComposer extends MessageComposer {
|
public class CurrentTimingCodeMessageComposer extends MessageComposer {
|
||||||
private final String data;
|
private final String data;
|
||||||
private final String key;
|
private final String key;
|
||||||
|
|
||||||
public HotelViewDataComposer(String data, String key) {
|
public CurrentTimingCodeMessageComposer(String data, String key) {
|
||||||
this.data = data;
|
this.data = data;
|
||||||
this.key = key;
|
this.key = key;
|
||||||
}
|
}
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class HelperRequestDisabledComposer extends MessageComposer {
|
public class CallForHelpDisabledNotifyMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CallForHelpDisabledNotifyMessageComposer);
|
this.response.init(Outgoing.CallForHelpDisabledNotifyMessageComposer);
|
@ -7,10 +7,10 @@ import com.eu.habbo.messages.outgoing.Outgoing;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ReportRoomFormComposer extends MessageComposer {
|
public class CallForHelpPendingCallsMessageComposer extends MessageComposer {
|
||||||
private final List<ModToolIssue> pendingIssues;
|
private final List<ModToolIssue> pendingIssues;
|
||||||
|
|
||||||
public ReportRoomFormComposer(List<ModToolIssue> issues) {
|
public CallForHelpPendingCallsMessageComposer(List<ModToolIssue> issues) {
|
||||||
this.pendingIssues = issues;
|
this.pendingIssues = issues;
|
||||||
}
|
}
|
||||||
|
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ModToolIssueResponseAlertComposer extends MessageComposer {
|
public class CallForHelpReplyMessageComposer extends MessageComposer {
|
||||||
private final String message;
|
private final String message;
|
||||||
|
|
||||||
public ModToolIssueResponseAlertComposer(String message) {
|
public CallForHelpReplyMessageComposer(String message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ModToolReportReceivedAlertComposer extends MessageComposer {
|
public class CallForHelpResultMessageComposer extends MessageComposer {
|
||||||
public static final int REPORT_RECEIVED = 0;
|
public static final int REPORT_RECEIVED = 0;
|
||||||
public static final int REPORT_WINDOW = 1;
|
public static final int REPORT_WINDOW = 1;
|
||||||
public static final int REPORT_ABUSIVE = 2;
|
public static final int REPORT_ABUSIVE = 2;
|
||||||
@ -12,7 +12,7 @@ public class ModToolReportReceivedAlertComposer extends MessageComposer {
|
|||||||
private final int errorCode;
|
private final int errorCode;
|
||||||
private final String message;
|
private final String message;
|
||||||
|
|
||||||
public ModToolReportReceivedAlertComposer(int errorCode, String message) {
|
public CallForHelpResultMessageComposer(int errorCode, String message) {
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
@ -11,20 +11,20 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ModToolIssueChatlogComposer extends MessageComposer {
|
public class CfhChatlogComposer extends MessageComposer {
|
||||||
public static SimpleDateFormat format = new SimpleDateFormat("HH:mm");
|
public static SimpleDateFormat format = new SimpleDateFormat("HH:mm");
|
||||||
private final ModToolIssue issue;
|
private final ModToolIssue issue;
|
||||||
private final List<ModToolChatLog> chatlog;
|
private final List<ModToolChatLog> chatlog;
|
||||||
private final String roomName;
|
private final String roomName;
|
||||||
private ModToolIssueChatlogType type = ModToolIssueChatlogType.CHAT;
|
private ModToolIssueChatlogType type = ModToolIssueChatlogType.CHAT;
|
||||||
|
|
||||||
public ModToolIssueChatlogComposer(ModToolIssue issue, List<ModToolChatLog> chatlog, String roomName) {
|
public CfhChatlogComposer(ModToolIssue issue, List<ModToolChatLog> chatlog, String roomName) {
|
||||||
this.issue = issue;
|
this.issue = issue;
|
||||||
this.chatlog = chatlog;
|
this.chatlog = chatlog;
|
||||||
this.roomName = roomName;
|
this.roomName = roomName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModToolIssueChatlogComposer(ModToolIssue issue, List<ModToolChatLog> chatlog, String roomName, ModToolIssueChatlogType type) {
|
public CfhChatlogComposer(ModToolIssue issue, List<ModToolChatLog> chatlog, String roomName, ModToolIssueChatlogType type) {
|
||||||
this.issue = issue;
|
this.issue = issue;
|
||||||
this.chatlog = chatlog;
|
this.chatlog = chatlog;
|
||||||
this.roomName = roomName;
|
this.roomName = roomName;
|
@ -8,7 +8,7 @@ import com.eu.habbo.messages.outgoing.MessageComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
import gnu.trove.procedure.TObjectProcedure;
|
import gnu.trove.procedure.TObjectProcedure;
|
||||||
|
|
||||||
public class CfhTopicsMessageComposer extends MessageComposer {
|
public class CfhTopicsInitComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CfhTopicsInitComposer);
|
this.response.init(Outgoing.CfhTopicsInitComposer);
|
||||||
@ -18,14 +18,14 @@ public class CfhTopicsMessageComposer extends MessageComposer {
|
|||||||
Emulator.getGameEnvironment().getModToolManager().getCfhCategories().forEachValue(new TObjectProcedure<CfhCategory>() {
|
Emulator.getGameEnvironment().getModToolManager().getCfhCategories().forEachValue(new TObjectProcedure<CfhCategory>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(CfhCategory category) {
|
public boolean execute(CfhCategory category) {
|
||||||
CfhTopicsMessageComposer.this.response.appendString(category.getName());
|
CfhTopicsInitComposer.this.response.appendString(category.getName());
|
||||||
CfhTopicsMessageComposer.this.response.appendInt(category.getTopics().valueCollection().size());
|
CfhTopicsInitComposer.this.response.appendInt(category.getTopics().valueCollection().size());
|
||||||
category.getTopics().forEachValue(new TObjectProcedure<CfhTopic>() {
|
category.getTopics().forEachValue(new TObjectProcedure<CfhTopic>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(CfhTopic topic) {
|
public boolean execute(CfhTopic topic) {
|
||||||
CfhTopicsMessageComposer.this.response.appendString(topic.name);
|
CfhTopicsInitComposer.this.response.appendString(topic.name);
|
||||||
CfhTopicsMessageComposer.this.response.appendInt(topic.id);
|
CfhTopicsInitComposer.this.response.appendInt(topic.id);
|
||||||
CfhTopicsMessageComposer.this.response.appendString(topic.action.toString());
|
CfhTopicsInitComposer.this.response.appendString(topic.action.toString());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class CanCreateEventComposer extends MessageComposer {
|
public class CanCreateRoomEventComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CanCreateRoomEventComposer);
|
this.response.init(Outgoing.CanCreateRoomEventComposer);
|
@ -7,10 +7,10 @@ import com.eu.habbo.messages.outgoing.Outgoing;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class NewNavigatorCategoryUserCountComposer extends MessageComposer {
|
public class CategoriesWithVisitorCountComposer extends MessageComposer {
|
||||||
public final List<RoomCategory> roomCategories;
|
public final List<RoomCategory> roomCategories;
|
||||||
|
|
||||||
public NewNavigatorCategoryUserCountComposer(List<RoomCategory> roomCategories) {
|
public CategoriesWithVisitorCountComposer(List<RoomCategory> roomCategories) {
|
||||||
this.roomCategories = roomCategories;
|
this.roomCategories = roomCategories;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class NewNavigatorCollapsedCategoriesComposer extends MessageComposer {
|
public class CollapsedCategoriesComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CollapsedCategoriesComposer);
|
this.response.init(Outgoing.CollapsedCategoriesComposer);
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class RoomEnterErrorComposer extends MessageComposer {
|
public class CantConnectMessageComposer extends MessageComposer {
|
||||||
public static final int ROOM_ERROR_GUESTROOM_FULL = 1;
|
public static final int ROOM_ERROR_GUESTROOM_FULL = 1;
|
||||||
public static final int ROOM_ERROR_CANT_ENTER = 2;
|
public static final int ROOM_ERROR_CANT_ENTER = 2;
|
||||||
public static final int ROOM_ERROR_QUE = 3;
|
public static final int ROOM_ERROR_QUE = 3;
|
||||||
@ -18,12 +18,12 @@ public class RoomEnterErrorComposer extends MessageComposer {
|
|||||||
private final int errorCode;
|
private final int errorCode;
|
||||||
private final String queError;
|
private final String queError;
|
||||||
|
|
||||||
public RoomEnterErrorComposer(int errorCode) {
|
public CantConnectMessageComposer(int errorCode) {
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
this.queError = "";
|
this.queError = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public RoomEnterErrorComposer(int errorCode, String queError) {
|
public CantConnectMessageComposer(int errorCode, String queError) {
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
this.queError = queError;
|
this.queError = queError;
|
||||||
}
|
}
|
@ -13,13 +13,13 @@ import org.apache.commons.math3.distribution.NormalDistribution;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class PetBreedingResultComposer extends MessageComposer {
|
public class ConfirmBreedingRequestComposer extends MessageComposer {
|
||||||
private final int boxId;
|
private final int boxId;
|
||||||
private final int petType;
|
private final int petType;
|
||||||
private final PetBreedingPet petOne;
|
private final PetBreedingPet petOne;
|
||||||
private final PetBreedingPet petTwo;
|
private final PetBreedingPet petTwo;
|
||||||
|
|
||||||
public PetBreedingResultComposer(int boxId, int petType, Pet petOne, String ownerPetOne, Pet petTwo, String ownerPetTwo) {
|
public ConfirmBreedingRequestComposer(int boxId, int petType, Pet petOne, String ownerPetOne, Pet petTwo, String ownerPetTwo) {
|
||||||
this.boxId = boxId;
|
this.boxId = boxId;
|
||||||
this.petType = petType;
|
this.petType = petType;
|
||||||
this.petOne = new PetBreedingPet(petOne, ownerPetOne);
|
this.petOne = new PetBreedingPet(petOne, ownerPetOne);
|
@ -4,11 +4,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class PetBreedingFailedComposer extends MessageComposer {
|
public class ConfirmBreedingResultComposer extends MessageComposer {
|
||||||
private final int anInt1;
|
private final int anInt1;
|
||||||
private final int anInt2;
|
private final int anInt2;
|
||||||
|
|
||||||
public PetBreedingFailedComposer(int anInt1, int anInt2) {
|
public ConfirmBreedingResultComposer(int anInt1, int anInt2) {
|
||||||
this.anInt1 = anInt1;
|
this.anInt1 = anInt1;
|
||||||
this.anInt2 = anInt2;
|
this.anInt2 = anInt2;
|
||||||
}
|
}
|
@ -5,10 +5,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class RoomUserHandItemComposer extends MessageComposer {
|
public class CarryObjectMessageComposer extends MessageComposer {
|
||||||
private final RoomUnit roomUnit;
|
private final RoomUnit roomUnit;
|
||||||
|
|
||||||
public RoomUserHandItemComposer(RoomUnit roomUnit) {
|
public CarryObjectMessageComposer(RoomUnit roomUnit) {
|
||||||
this.roomUnit = roomUnit;
|
this.roomUnit = roomUnit;
|
||||||
}
|
}
|
||||||
|
|
@ -5,10 +5,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ChangeNameUpdatedComposer extends MessageComposer {
|
public class ChangeUserNameResultMessageEvent extends MessageComposer {
|
||||||
private final Habbo habbo;
|
private final Habbo habbo;
|
||||||
|
|
||||||
public ChangeNameUpdatedComposer(Habbo habbo) {
|
public ChangeUserNameResultMessageEvent(Habbo habbo) {
|
||||||
this.habbo = habbo;
|
this.habbo = habbo;
|
||||||
}
|
}
|
||||||
|
|
@ -5,10 +5,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class RoomUserTalkComposer extends MessageComposer {
|
public class ChatMessageComposer extends MessageComposer {
|
||||||
private final RoomChatMessage roomChatMessage;
|
private final RoomChatMessage roomChatMessage;
|
||||||
|
|
||||||
public RoomUserTalkComposer(RoomChatMessage roomChatMessage) {
|
public ChatMessageComposer(RoomChatMessage roomChatMessage) {
|
||||||
this.roomChatMessage = roomChatMessage;
|
this.roomChatMessage = roomChatMessage;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class UnknownHelperComposer extends MessageComposer {
|
public class CallForHelpPendingCallsDeletedMessageComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CallForHelpPendingCallsDeletedMessageComposer);
|
this.response.init(Outgoing.CallForHelpPendingCallsDeletedMessageComposer);
|
@ -5,12 +5,12 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ModToolSanctionDataComposer extends MessageComposer {
|
public class CfhSanctionMessageComposer extends MessageComposer {
|
||||||
private final int unknownInt1;
|
private final int unknownInt1;
|
||||||
private final int accountId;
|
private final int accountId;
|
||||||
private final CFHSanction sanction;
|
private final CFHSanction sanction;
|
||||||
|
|
||||||
public ModToolSanctionDataComposer(int unknownInt1, int accountId, CFHSanction sanction) {
|
public CfhSanctionMessageComposer(int unknownInt1, int accountId, CFHSanction sanction) {
|
||||||
this.unknownInt1 = unknownInt1;
|
this.unknownInt1 = unknownInt1;
|
||||||
this.accountId = accountId;
|
this.accountId = accountId;
|
||||||
this.sanction = sanction;
|
this.sanction = sanction;
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class TalentTrackEmailFailedComposer extends MessageComposer {
|
public class ChangeEmailResultComposer extends MessageComposer {
|
||||||
private final int result;
|
private final int result;
|
||||||
|
|
||||||
public TalentTrackEmailFailedComposer(int result) {
|
public ChangeEmailResultComposer(int result) {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class VipTutorialsStartComposer extends MessageComposer {
|
public class CitizenshipVipOfferPromoEnabledComposer extends MessageComposer {
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
this.response.init(Outgoing.CitizenshipVipOfferPromoEnabledComposer);
|
this.response.init(Outgoing.CitizenshipVipOfferPromoEnabledComposer);
|
@ -4,13 +4,13 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class UnknownCompetitionComposer extends MessageComposer {
|
public class CompetitionVotingInfoMessageComposer extends MessageComposer {
|
||||||
private final int unknownInt1;
|
private final int unknownInt1;
|
||||||
private final String unknownString1;
|
private final String unknownString1;
|
||||||
private final int unknownInt2;
|
private final int unknownInt2;
|
||||||
private final int unknownInt3;
|
private final int unknownInt3;
|
||||||
|
|
||||||
public UnknownCompetitionComposer(int unknownInt1, String unknownString1, int unknownInt2, int unknownInt3) {
|
public CompetitionVotingInfoMessageComposer(int unknownInt1, String unknownString1, int unknownInt2, int unknownInt3) {
|
||||||
this.unknownInt1 = unknownInt1;
|
this.unknownInt1 = unknownInt1;
|
||||||
this.unknownString1 = unknownString1;
|
this.unknownString1 = unknownString1;
|
||||||
this.unknownInt2 = unknownInt2;
|
this.unknownInt2 = unknownInt2;
|
@ -4,11 +4,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ConvertedForwardToRoomComposer extends MessageComposer {
|
public class ConvertedRoomIdComposer extends MessageComposer {
|
||||||
private final String unknownString1;
|
private final String unknownString1;
|
||||||
private final int unknownInt1;
|
private final int unknownInt1;
|
||||||
|
|
||||||
public ConvertedForwardToRoomComposer(String unknownString1, int unknownInt1) {
|
public ConvertedRoomIdComposer(String unknownString1, int unknownInt1) {
|
||||||
this.unknownString1 = unknownString1;
|
this.unknownString1 = unknownString1;
|
||||||
this.unknownInt1 = unknownInt1;
|
this.unknownInt1 = unknownInt1;
|
||||||
}
|
}
|
@ -6,7 +6,7 @@ import com.eu.habbo.messages.outgoing.Outgoing;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ChangeNameCheckResultComposer extends MessageComposer {
|
public class CheckUserNameResultMessageComposer extends MessageComposer {
|
||||||
public static final int AVAILABLE = 0;
|
public static final int AVAILABLE = 0;
|
||||||
public static final int TOO_SHORT = 2;
|
public static final int TOO_SHORT = 2;
|
||||||
public static final int TOO_LONG = 3;
|
public static final int TOO_LONG = 3;
|
||||||
@ -18,7 +18,7 @@ public class ChangeNameCheckResultComposer extends MessageComposer {
|
|||||||
private final String name;
|
private final String name;
|
||||||
private final List<String> suggestions;
|
private final List<String> suggestions;
|
||||||
|
|
||||||
public ChangeNameCheckResultComposer(int status, String name, List<String> suggestions) {
|
public CheckUserNameResultMessageComposer(int status, String name, List<String> suggestions) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.suggestions = suggestions;
|
this.suggestions = suggestions;
|
@ -6,12 +6,12 @@ import com.eu.habbo.messages.outgoing.MessageComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
import gnu.trove.set.hash.THashSet;
|
import gnu.trove.set.hash.THashSet;
|
||||||
|
|
||||||
public class ClubGiftReceivedComposer extends MessageComposer {
|
public class ClubGiftSelectedComposer extends MessageComposer {
|
||||||
//:test 735 s:t i:1 s:s i:230 s:throne i:1 b:1 i:1 i:10;
|
//:test 735 s:t i:1 s:s i:230 s:throne i:1 b:1 i:1 i:10;
|
||||||
private final String name;
|
private final String name;
|
||||||
private final THashSet<Item> items;
|
private final THashSet<Item> items;
|
||||||
|
|
||||||
public ClubGiftReceivedComposer(String name, THashSet<Item> items) {
|
public ClubGiftSelectedComposer(String name, THashSet<Item> items) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.items = items;
|
this.items = items;
|
||||||
}
|
}
|
@ -5,10 +5,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class UserCreditsComposer extends MessageComposer {
|
public class CreditBalanceComposer extends MessageComposer {
|
||||||
private final Habbo habbo;
|
private final Habbo habbo;
|
||||||
|
|
||||||
public UserCreditsComposer(Habbo habbo) {
|
public CreditBalanceComposer(Habbo habbo) {
|
||||||
this.habbo = habbo;
|
this.habbo = habbo;
|
||||||
}
|
}
|
||||||
|
|
@ -14,7 +14,7 @@ public class UpdateCatalog extends RCONMessage<UpdateCatalog.JSONUpdateCatalog>
|
|||||||
@Override
|
@Override
|
||||||
public void handle(Gson gson, JSONUpdateCatalog json) {
|
public void handle(Gson gson, JSONUpdateCatalog json) {
|
||||||
Emulator.getGameEnvironment().getCatalogManager().initialize();
|
Emulator.getGameEnvironment().getCatalogManager().initialize();
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new CatalogUpdatedComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new CatalogPublishedMessageComposer());
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BuildersClubFurniCountMessageComposer(0));
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BuildersClubFurniCountMessageComposer(0));
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BundleDiscountRulesetMessageComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new BundleDiscountRulesetMessageComposer());
|
||||||
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new MarketplaceConfigComposer());
|
Emulator.getGameServer().getGameClientManager().sendBroadcastResponse(new MarketplaceConfigComposer());
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user