mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Finished refactoring incoming.java
incoming and outgoing packets now match habbo's official names 1:1
This commit is contained in:
parent
e4349b6369
commit
f1af67522a
@ -3,8 +3,8 @@ package com.eu.habbo.core;
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.guilds.forums.ForumThread;
|
||||
import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.messages.incoming.friends.SearchUserEvent;
|
||||
import com.eu.habbo.messages.incoming.navigator.SearchRoomsEvent;
|
||||
import com.eu.habbo.messages.incoming.friends.HabboSearchEvent;
|
||||
import com.eu.habbo.messages.incoming.navigator.RoomTextSearchEvent;
|
||||
import com.eu.habbo.messages.outgoing.users.UserObjectComposer;
|
||||
import com.eu.habbo.threading.runnables.AchievementUpdater;
|
||||
import org.slf4j.Logger;
|
||||
@ -101,8 +101,8 @@ public class CleanerThread implements Runnable {
|
||||
LAST_HABBO_CACHE_CLEARED = time;
|
||||
}
|
||||
|
||||
SearchRoomsEvent.cachedResults.clear();
|
||||
SearchUserEvent.cachedResults.clear();
|
||||
RoomTextSearchEvent.cachedResults.clear();
|
||||
HabboSearchEvent.cachedResults.clear();
|
||||
}
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||
import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||
import com.eu.habbo.messages.ServerMessage;
|
||||
import com.eu.habbo.messages.incoming.catalog.marketplace.RequestOffersEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.marketplace.GetMarketplaceOffersEvent;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceBuyOfferResultComposer;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceCancelOfferResultComposer;
|
||||
import com.eu.habbo.messages.outgoing.inventory.UnseenItemsComposer;
|
||||
@ -65,7 +65,7 @@ public class MarketPlace {
|
||||
|
||||
private static void takeBackItem(Habbo habbo, MarketPlaceOffer offer) {
|
||||
if (offer != null && habbo.getInventory().getMarketplaceItems().contains(offer)) {
|
||||
RequestOffersEvent.cachedResults.clear();
|
||||
GetMarketplaceOffersEvent.cachedResults.clear();
|
||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection()) {
|
||||
try (PreparedStatement ownerCheck = connection.prepareStatement("SELECT user_id FROM marketplace_items WHERE id = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)) {
|
||||
ownerCheck.setInt(1, offer.getOfferId());
|
||||
@ -240,7 +240,7 @@ public class MarketPlace {
|
||||
|
||||
|
||||
public static void buyItem(int offerId, GameClient client) {
|
||||
RequestOffersEvent.cachedResults.clear();
|
||||
GetMarketplaceOffersEvent.cachedResults.clear();
|
||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection()) {
|
||||
try (PreparedStatement statement = connection.prepareStatement("SELECT * FROM marketplace_items WHERE id = ? LIMIT 1")) {
|
||||
statement.setInt(1, offerId);
|
||||
@ -344,7 +344,7 @@ public class MarketPlace {
|
||||
return false;
|
||||
}
|
||||
|
||||
RequestOffersEvent.cachedResults.clear();
|
||||
GetMarketplaceOffersEvent.cachedResults.clear();
|
||||
|
||||
client.sendResponse(new FurniListRemoveComposer(event.item.getGiftAdjustedId()));
|
||||
client.sendResponse(new FurniListInvalidateComposer());
|
||||
|
@ -28,7 +28,7 @@ import com.eu.habbo.habbohotel.polls.PollManager;
|
||||
import com.eu.habbo.habbohotel.users.*;
|
||||
import com.eu.habbo.habbohotel.wired.WiredHandler;
|
||||
import com.eu.habbo.habbohotel.wired.WiredTriggerType;
|
||||
import com.eu.habbo.messages.incoming.users.UserNuxEvent;
|
||||
import com.eu.habbo.messages.incoming.users.NewUserExperienceScriptProceedEvent;
|
||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorComposer;
|
||||
import com.eu.habbo.messages.outgoing.hotelview.CloseConnectionMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.polls.PollOfferComposer;
|
||||
@ -915,7 +915,7 @@ public class RoomManager {
|
||||
room.habboEntered(habbo);
|
||||
|
||||
if (!habbo.getHabboStats().nux && (room.isOwner(habbo) || room.isPublicRoom())) {
|
||||
UserNuxEvent.handle(habbo);
|
||||
NewUserExperienceScriptProceedEvent.handle(habbo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,69 +5,69 @@ import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||
import com.eu.habbo.messages.incoming.Incoming;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.incoming.achievements.RequestAchievementConfigurationEvent;
|
||||
import com.eu.habbo.messages.incoming.achievements.RequestAchievementsEvent;
|
||||
import com.eu.habbo.messages.incoming.ambassadors.AmbassadorAlertCommandEvent;
|
||||
import com.eu.habbo.messages.incoming.ambassadors.AmbassadorVisitCommandEvent;
|
||||
import com.eu.habbo.messages.incoming.achievements.GetAchievementsEvent;
|
||||
import com.eu.habbo.messages.incoming.ambassadors.AmbassadorAlertEvent;
|
||||
import com.eu.habbo.messages.incoming.ambassadors.FollowFriendEvent;
|
||||
import com.eu.habbo.messages.incoming.camera.*;
|
||||
import com.eu.habbo.messages.incoming.catalog.*;
|
||||
import com.eu.habbo.messages.incoming.catalog.marketplace.*;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.OpenRecycleBoxEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.RecycleEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.ReloadRecyclerEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.RequestRecyclerLogicEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.PresentOpenEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.RecycleItemsEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.GetRecyclerStatusEvent;
|
||||
import com.eu.habbo.messages.incoming.catalog.recycler.GetRecyclerPrizesEvent;
|
||||
import com.eu.habbo.messages.incoming.crafting.*;
|
||||
import com.eu.habbo.messages.incoming.events.calendar.AdventCalendarForceOpenEvent;
|
||||
import com.eu.habbo.messages.incoming.events.calendar.AdventCalendarOpenDayEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.FloorPlanEditorRequestBlockedTilesEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.FloorPlanEditorRequestDoorSettingsEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.FloorPlanEditorSaveEvent;
|
||||
import com.eu.habbo.messages.incoming.events.calendar.OpenCampaignCalendarDoorEvent;
|
||||
import com.eu.habbo.messages.incoming.events.calendar.OpenCampaignCalendarDoorAsStaffEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.GetOccupiedTilesEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.GetRoomEntryTileEvent;
|
||||
import com.eu.habbo.messages.incoming.floorplaneditor.UpdateFloorPropertiesEvent;
|
||||
import com.eu.habbo.messages.incoming.friends.*;
|
||||
import com.eu.habbo.messages.incoming.gamecenter.*;
|
||||
import com.eu.habbo.messages.incoming.guardians.GuardianAcceptRequestEvent;
|
||||
import com.eu.habbo.messages.incoming.guardians.GuardianNoUpdatesWantedEvent;
|
||||
import com.eu.habbo.messages.incoming.guardians.GuardianVoteEvent;
|
||||
import com.eu.habbo.messages.incoming.guardians.ChatReviewGuideDecidesOnOfferEvent;
|
||||
import com.eu.habbo.messages.incoming.guardians.ChatReviewGuideDetachedEvent;
|
||||
import com.eu.habbo.messages.incoming.guardians.ChatReviewGuideVoteEvent;
|
||||
import com.eu.habbo.messages.incoming.guides.*;
|
||||
import com.eu.habbo.messages.incoming.guilds.*;
|
||||
import com.eu.habbo.messages.incoming.guilds.forums.*;
|
||||
import com.eu.habbo.messages.incoming.handshake.*;
|
||||
import com.eu.habbo.messages.incoming.helper.MySanctionStatusEvent;
|
||||
import com.eu.habbo.messages.incoming.helper.RequestTalentTrackEvent;
|
||||
import com.eu.habbo.messages.incoming.helper.GetCfhStatusEvent;
|
||||
import com.eu.habbo.messages.incoming.helper.GetTalentTrackEvent;
|
||||
import com.eu.habbo.messages.incoming.hotelview.*;
|
||||
import com.eu.habbo.messages.incoming.inventory.RequestInventoryBadgesEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.RequestInventoryBotsEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.RequestInventoryItemsEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.RequestInventoryPetsEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.GetBadgesEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.GetBotInventoryEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.RequestFurniInventoryWhenNotInRoomEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.GetPetInventoryEvent;
|
||||
import com.eu.habbo.messages.incoming.modtool.*;
|
||||
import com.eu.habbo.messages.incoming.navigator.*;
|
||||
import com.eu.habbo.messages.incoming.polls.AnswerPollEvent;
|
||||
import com.eu.habbo.messages.incoming.polls.CancelPollEvent;
|
||||
import com.eu.habbo.messages.incoming.polls.GetPollDataEvent;
|
||||
import com.eu.habbo.messages.incoming.polls.PollRejectEvent;
|
||||
import com.eu.habbo.messages.incoming.polls.PollStartEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.*;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.BotPickupEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.BotPlaceEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.BotSaveSettingsEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.BotSettingsEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.RemoveBotFromFlatEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.PlaceBotEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.CommandBotEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.bots.GetBotCommandConfigurationDataEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.*;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.jukebox.*;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.lovelock.LoveLockStartConfirmEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.rentablespace.RentSpaceCancelEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.rentablespace.RentSpaceEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.YoutubeRequestPlaylistChange;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.YoutubeRequestPlaylists;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.YoutubeRequestStateChange;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.lovelock.FriendFurniConfirmLockEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.rentablespace.RentableSpaceCancelRentEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.rentablespace.RentableSpaceRentEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.SetYoutubeDisplayPlaylistEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.GetYoutubeDisplayStatusEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.items.youtube.ControlYoutubeDisplayPlaybackEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.pets.*;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.BuyRoomPromotionEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.RequestPromotionRoomsEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.UpdateRoomPromotionEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.PurchaseRoomAdEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.GetRoomAdPurchaseInfoEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.promotions.EditEventEvent;
|
||||
import com.eu.habbo.messages.incoming.rooms.users.*;
|
||||
import com.eu.habbo.messages.incoming.trading.*;
|
||||
import com.eu.habbo.messages.incoming.unknown.RequestResolutionEvent;
|
||||
import com.eu.habbo.messages.incoming.unknown.GetResolutionAchievementsEvent;
|
||||
import com.eu.habbo.messages.incoming.inventory.GetBadgePointLimitsEvent;
|
||||
import com.eu.habbo.messages.incoming.users.*;
|
||||
import com.eu.habbo.messages.incoming.wired.WiredApplySetConditionsEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.WiredConditionSaveDataEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.WiredEffectSaveDataEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.WiredTriggerSaveDataEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.ApplySnapshotEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.UpdateConditionEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.UpdateActionEvent;
|
||||
import com.eu.habbo.messages.incoming.wired.UpdateTriggerEvent;
|
||||
import com.eu.habbo.plugin.EventHandler;
|
||||
import com.eu.habbo.plugin.events.emulator.EmulatorConfigUpdatedEvent;
|
||||
import gnu.trove.map.hash.THashMap;
|
||||
@ -223,332 +223,332 @@ public class PacketManager {
|
||||
}
|
||||
|
||||
private void registerAmbassadors() throws Exception {
|
||||
this.registerHandler(Incoming.AmbassadorAlertEvent, AmbassadorAlertCommandEvent.class);
|
||||
this.registerHandler(Incoming.FollowFriendEvent, AmbassadorVisitCommandEvent.class);
|
||||
this.registerHandler(Incoming.AmbassadorAlertEvent, AmbassadorAlertEvent.class);
|
||||
this.registerHandler(Incoming.FollowFriendEvent, FollowFriendEvent.class);
|
||||
}
|
||||
|
||||
private void registerCatalog() throws Exception {
|
||||
this.registerHandler(Incoming.GetRecyclerPrizesEvent, RequestRecyclerLogicEvent.class);
|
||||
this.registerHandler(Incoming.GetBundleDiscountRulesetEvent, RequestDiscountEvent.class);
|
||||
this.registerHandler(Incoming.GetGiftWrappingConfigurationEvent, RequestGiftConfigurationEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceConfigurationEvent, RequestMarketplaceConfigEvent.class);
|
||||
this.registerHandler(Incoming.GetCatalogIndexEvent, RequestCatalogModeEvent.class);
|
||||
this.registerHandler(Incoming.BuildersClubQueryFurniCountEvent, RequestCatalogIndexEvent.class);
|
||||
this.registerHandler(Incoming.GetCatalogPageEvent, RequestCatalogPageEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseFromCatalogAsGiftEvent, CatalogBuyItemAsGiftEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseFromCatalogEvent, CatalogBuyItemEvent.class);
|
||||
this.registerHandler(Incoming.GetRecyclerPrizesEvent, GetRecyclerPrizesEvent.class);
|
||||
this.registerHandler(Incoming.GetBundleDiscountRulesetEvent, GetBundleDiscountRulesetEvent.class);
|
||||
this.registerHandler(Incoming.GetGiftWrappingConfigurationEvent, GetGiftWrappingConfigurationEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceConfigurationEvent, GetMarketplaceConfigurationEvent.class);
|
||||
this.registerHandler(Incoming.GetCatalogIndexEvent, GetCatalogIndexEvent.class);
|
||||
this.registerHandler(Incoming.BuildersClubQueryFurniCountEvent, BuildersClubQueryFurniCountEvent.class);
|
||||
this.registerHandler(Incoming.GetCatalogPageEvent, GetCatalogPageEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseFromCatalogAsGiftEvent, PurchaseFromCatalogAsGiftEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseFromCatalogEvent, PurchaseFromCatalogEvent.class);
|
||||
this.registerHandler(Incoming.RedeemVoucherEvent, RedeemVoucherEvent.class);
|
||||
this.registerHandler(Incoming.GetRecyclerStatusEvent, ReloadRecyclerEvent.class);
|
||||
this.registerHandler(Incoming.RecycleItemsEvent, RecycleEvent.class);
|
||||
this.registerHandler(Incoming.PresentOpenEvent, OpenRecycleBoxEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceOwnOffersEvent, RequestOwnItemsEvent.class);
|
||||
this.registerHandler(Incoming.CancelMarketplaceOfferEvent, TakeBackItemEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceOffersEvent, RequestOffersEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceItemStatsEvent, RequestItemInfoEvent.class);
|
||||
this.registerHandler(Incoming.BuyMarketplaceOfferEvent, BuyItemEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceCanMakeOfferEvent, RequestSellItemEvent.class);
|
||||
this.registerHandler(Incoming.MakeOfferEvent, SellItemEvent.class);
|
||||
this.registerHandler(Incoming.RedeemMarketplaceOfferCreditsEvent, RequestCreditsEvent.class);
|
||||
this.registerHandler(Incoming.GetSellablePetPalettesEvent, RequestPetBreedsEvent.class);
|
||||
this.registerHandler(Incoming.ApproveNameEvent, CheckPetNameEvent.class);
|
||||
this.registerHandler(Incoming.GetClubOffersEvent, RequestClubDataEvent.class);
|
||||
this.registerHandler(Incoming.GetClubGiftInfo, RequestClubGiftsEvent.class);
|
||||
this.registerHandler(Incoming.GetProductOfferEvent, CatalogSearchedItemEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseTargetedOfferEvent, PurchaseTargetOfferEvent.class);
|
||||
this.registerHandler(Incoming.SetTargetedOfferStateEvent, TargetOfferStateEvent.class);
|
||||
this.registerHandler(Incoming.SelectClubGiftEvent, CatalogSelectClubGiftEvent.class);
|
||||
this.registerHandler(Incoming.ScrGetKickbackInfoEvent, RequestClubCenterEvent.class);
|
||||
this.registerHandler(Incoming.BuildersClubPlaceWallItemEvent, CatalogRequestClubDiscountEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseVipMembershipExtensionEvent, CatalogBuyClubDiscountEvent.class);
|
||||
this.registerHandler(Incoming.GetRecyclerStatusEvent, GetRecyclerStatusEvent.class);
|
||||
this.registerHandler(Incoming.RecycleItemsEvent, RecycleItemsEvent.class);
|
||||
this.registerHandler(Incoming.PresentOpenEvent, PresentOpenEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceOwnOffersEvent, GetMarketplaceOwnOffersEvent.class);
|
||||
this.registerHandler(Incoming.CancelMarketplaceOfferEvent, CancelMarketplaceOfferEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceOffersEvent, GetMarketplaceOffersEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceItemStatsEvent, GetMarketplaceItemStatsEvent.class);
|
||||
this.registerHandler(Incoming.BuyMarketplaceOfferEvent, BuyMarketplaceOfferEvent.class);
|
||||
this.registerHandler(Incoming.GetMarketplaceCanMakeOfferEvent, GetMarketplaceCanMakeOfferEvent.class);
|
||||
this.registerHandler(Incoming.MakeOfferEvent, MakeOfferEvent.class);
|
||||
this.registerHandler(Incoming.RedeemMarketplaceOfferCreditsEvent, RedeemMarketplaceOfferCreditsEvent.class);
|
||||
this.registerHandler(Incoming.GetSellablePetPalettesEvent, GetSellablePetPalettesEvent.class);
|
||||
this.registerHandler(Incoming.ApproveNameEvent, ApproveNameEvent.class);
|
||||
this.registerHandler(Incoming.GetClubOffersEvent, GetClubOffersEvent.class);
|
||||
this.registerHandler(Incoming.GetClubGiftInfo, GetClubGiftInfo.class);
|
||||
this.registerHandler(Incoming.GetProductOfferEvent, GetProductOfferEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseTargetedOfferEvent, PurchaseTargetedOfferEvent.class);
|
||||
this.registerHandler(Incoming.SetTargetedOfferStateEvent, SetTargetedOfferStateEvent.class);
|
||||
this.registerHandler(Incoming.SelectClubGiftEvent, SelectClubGiftEvent.class);
|
||||
this.registerHandler(Incoming.ScrGetKickbackInfoEvent, ScrGetKickbackInfoEvent.class);
|
||||
this.registerHandler(Incoming.BuildersClubPlaceWallItemEvent, BuildersClubPlaceWallItemEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseVipMembershipExtensionEvent, PurchaseVipMembershipExtensionEvent.class);
|
||||
}
|
||||
|
||||
private void registerEvent() throws Exception {
|
||||
this.registerHandler(Incoming.OpenCampaignCalendarDoorAsStaffEvent, AdventCalendarOpenDayEvent.class);
|
||||
this.registerHandler(Incoming.OpenCampaignCalendarDoorEvent, AdventCalendarForceOpenEvent.class);
|
||||
this.registerHandler(Incoming.OpenCampaignCalendarDoorAsStaffEvent, OpenCampaignCalendarDoorAsStaffEvent.class);
|
||||
this.registerHandler(Incoming.OpenCampaignCalendarDoorEvent, OpenCampaignCalendarDoorEvent.class);
|
||||
}
|
||||
|
||||
private void registerHandshake() throws Exception {
|
||||
this.registerHandler(Incoming.ClientHelloEvent, ReleaseVersionEvent.class);
|
||||
this.registerHandler(Incoming.ClientHelloEvent, ClientHelloEvent.class);
|
||||
this.registerHandler(Incoming.InitDiffieHandshakeEvent, InitDiffieHandshakeEvent.class);
|
||||
this.registerHandler(Incoming.CompleteDiffieHandshakeEvent, CompleteDiffieHandshakeEvent.class);
|
||||
this.registerHandler(Incoming.SSOTicketEvent, SecureLoginEvent.class);
|
||||
this.registerHandler(Incoming.UniqueIDEvent, MachineIDEvent.class);
|
||||
this.registerHandler(Incoming.SSOTicketEvent, SSOTicketEvent.class);
|
||||
this.registerHandler(Incoming.UniqueIDEvent, UniqueIDEvent.class);
|
||||
this.registerHandler(Incoming.GetIgnoredUsersEvent, GetIgnoredUsersEvent.class);
|
||||
this.registerHandler(Incoming.LatencyPingRequestEvent, PingEvent.class);
|
||||
this.registerHandler(Incoming.LatencyPingRequestEvent, LatencyPingRequestEvent.class);
|
||||
}
|
||||
|
||||
private void registerFriends() throws Exception {
|
||||
this.registerHandler(Incoming.GetMOTDEvent, RequestFriendsEvent.class);
|
||||
this.registerHandler(Incoming.SetRelationshipStatusEvent, ChangeRelationEvent.class);
|
||||
this.registerHandler(Incoming.GetMOTDEvent, GetMOTDEvent.class);
|
||||
this.registerHandler(Incoming.SetRelationshipStatusEvent, SetRelationshipStatusEvent.class);
|
||||
this.registerHandler(Incoming.RemoveFriendEvent, RemoveFriendEvent.class);
|
||||
this.registerHandler(Incoming.HabboSearchEvent, SearchUserEvent.class);
|
||||
this.registerHandler(Incoming.RequestFriendEvent, FriendRequestEvent.class);
|
||||
this.registerHandler(Incoming.AcceptFriendEvent, AcceptFriendRequestEvent.class);
|
||||
this.registerHandler(Incoming.DeclineFriendEvent, DeclineFriendRequestEvent.class);
|
||||
this.registerHandler(Incoming.SendMsgEvent, FriendPrivateMessageEvent.class);
|
||||
this.registerHandler(Incoming.GetFriendRequestsEvent, RequestFriendRequestsEvent.class);
|
||||
this.registerHandler(Incoming.VisitUserEvent, StalkFriendEvent.class);
|
||||
this.registerHandler(Incoming.MessengerInitEvent, RequestInitFriendsEvent.class);
|
||||
this.registerHandler(Incoming.HabboSearchEvent, HabboSearchEvent.class);
|
||||
this.registerHandler(Incoming.RequestFriendEvent, RequestFriendEvent.class);
|
||||
this.registerHandler(Incoming.AcceptFriendEvent, AcceptFriendEvent.class);
|
||||
this.registerHandler(Incoming.DeclineFriendEvent, DeclineFriendEvent.class);
|
||||
this.registerHandler(Incoming.SendMsgEvent, SendMsgEvent.class);
|
||||
this.registerHandler(Incoming.GetFriendRequestsEvent, GetFriendRequestsEvent.class);
|
||||
this.registerHandler(Incoming.VisitUserEvent, VisitUserEvent.class);
|
||||
this.registerHandler(Incoming.MessengerInitEvent, MessengerInitEvent.class);
|
||||
this.registerHandler(Incoming.FindNewFriendsEvent, FindNewFriendsEvent.class);
|
||||
this.registerHandler(Incoming.SendRoomInviteEvent, InviteFriendsEvent.class);
|
||||
this.registerHandler(Incoming.SendRoomInviteEvent, SendRoomInviteEvent.class);
|
||||
}
|
||||
|
||||
private void registerUsers() throws Exception {
|
||||
this.registerHandler(Incoming.InfoRetrieveEvent, RequestUserDataEvent.class);
|
||||
this.registerHandler(Incoming.GetCreditsInfoEvent, RequestUserCreditsEvent.class);
|
||||
this.registerHandler(Incoming.ScrGetUserInfoEvent, RequestUserClubEvent.class);
|
||||
this.registerHandler(Incoming.GetSoundSettingsEvent, RequestMeMenuSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetTalentTrackLevelEvent, RequestUserCitizinShipEvent.class);
|
||||
this.registerHandler(Incoming.GetExtendedProfileEvent, RequestUserProfileEvent.class);
|
||||
this.registerHandler(Incoming.GetRelationshipStatusInfoEvent, RequestProfileFriendsEvent.class);
|
||||
this.registerHandler(Incoming.GetWardrobeEvent, RequestUserWardrobeEvent.class);
|
||||
this.registerHandler(Incoming.SaveWardrobeOutfitEvent, SaveWardrobeEvent.class);
|
||||
this.registerHandler(Incoming.ChangeMottoEvent, SaveMottoEvent.class);
|
||||
this.registerHandler(Incoming.UpdateFigureDataEvent, UserSaveLookEvent.class);
|
||||
this.registerHandler(Incoming.SetActivatedBadgesEvent, UserWearBadgeEvent.class);
|
||||
this.registerHandler(Incoming.GetSelectedBadgesEvent, RequestWearingBadgesEvent.class);
|
||||
this.registerHandler(Incoming.SetSoundSettingsEvent, SaveUserVolumesEvent.class);
|
||||
this.registerHandler(Incoming.SetRoomCameraPreferencesEvent, SaveBlockCameraFollowEvent.class);
|
||||
this.registerHandler(Incoming.SetIgnoreRoomInvitesEvent, SaveIgnoreRoomInvitesEvent.class);
|
||||
this.registerHandler(Incoming.SetChatPreferencesEvent, SavePreferOldChatEvent.class);
|
||||
this.registerHandler(Incoming.AvatarEffectActivatedEvent, ActivateEffectEvent.class);
|
||||
this.registerHandler(Incoming.AvatarEffectSelectedEvent, EnableEffectEvent.class);
|
||||
this.registerHandler(Incoming.EventLogEvent, UserActivityEvent.class);
|
||||
this.registerHandler(Incoming.NewUserExperienceScriptProceedEvent, UserNuxEvent.class);
|
||||
this.registerHandler(Incoming.NewUserExperienceGetGiftsEvent, PickNewUserGiftEvent.class);
|
||||
this.registerHandler(Incoming.CheckUserNameEvent, ChangeNameCheckUsernameEvent.class);
|
||||
this.registerHandler(Incoming.ChangeUserNameEvent, ConfirmChangeNameEvent.class);
|
||||
this.registerHandler(Incoming.SetChatStylePreferenceEvent, ChangeChatBubbleEvent.class);
|
||||
this.registerHandler(Incoming.InfoRetrieveEvent, InfoRetrieveEvent.class);
|
||||
this.registerHandler(Incoming.GetCreditsInfoEvent, GetCreditsInfoEvent.class);
|
||||
this.registerHandler(Incoming.ScrGetUserInfoEvent, ScrGetUserInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetSoundSettingsEvent, GetSoundSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetTalentTrackLevelEvent, GetTalentTrackLevelEvent.class);
|
||||
this.registerHandler(Incoming.GetExtendedProfileEvent, GetExtendedProfileEvent.class);
|
||||
this.registerHandler(Incoming.GetRelationshipStatusInfoEvent, GetRelationshipStatusInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetWardrobeEvent, GetWardrobeEvent.class);
|
||||
this.registerHandler(Incoming.SaveWardrobeOutfitEvent, SaveWardrobeOutfitEvent.class);
|
||||
this.registerHandler(Incoming.ChangeMottoEvent, ChangeMottoEvent.class);
|
||||
this.registerHandler(Incoming.UpdateFigureDataEvent, UpdateFigureDataEvent.class);
|
||||
this.registerHandler(Incoming.SetActivatedBadgesEvent, SetActivatedBadgesEvent.class);
|
||||
this.registerHandler(Incoming.GetSelectedBadgesEvent, GetSelectedBadgesEvent.class);
|
||||
this.registerHandler(Incoming.SetSoundSettingsEvent, SetSoundSettingsEvent.class);
|
||||
this.registerHandler(Incoming.SetRoomCameraPreferencesEvent, SetRoomCameraPreferencesEvent.class);
|
||||
this.registerHandler(Incoming.SetIgnoreRoomInvitesEvent, SetIgnoreRoomInvitesEvent.class);
|
||||
this.registerHandler(Incoming.SetChatPreferencesEvent, SetChatPreferencesEvent.class);
|
||||
this.registerHandler(Incoming.AvatarEffectActivatedEvent, AvatarEffectActivatedEvent.class);
|
||||
this.registerHandler(Incoming.AvatarEffectSelectedEvent, AvatarEffectSelectedEvent.class);
|
||||
this.registerHandler(Incoming.EventLogEvent, EventLogEvent.class);
|
||||
this.registerHandler(Incoming.NewUserExperienceScriptProceedEvent, NewUserExperienceScriptProceedEvent.class);
|
||||
this.registerHandler(Incoming.NewUserExperienceGetGiftsEvent, NewUserExperienceGetGiftsEvent.class);
|
||||
this.registerHandler(Incoming.CheckUserNameEvent, CheckUserNameEvent.class);
|
||||
this.registerHandler(Incoming.ChangeUserNameEvent, ChangeUserNameEvent.class);
|
||||
this.registerHandler(Incoming.SetChatStylePreferenceEvent, SetChatStylePreferenceEvent.class);
|
||||
this.registerHandler(Incoming.UpdateUIFlagsEvent, UpdateUIFlagsEvent.class);
|
||||
}
|
||||
|
||||
private void registerNavigator() throws Exception {
|
||||
this.registerHandler(Incoming.GetUserFlatCatsEvent, RequestRoomCategoriesEvent.class);
|
||||
this.registerHandler(Incoming.PopularRoomsSearchEvent, RequestPopularRoomsEvent.class);
|
||||
this.registerHandler(Incoming.RoomsWithHighestScoreSearchEvent, RequestHighestScoreRoomsEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomsSearchEvent, RequestMyRoomsEvent.class);
|
||||
this.registerHandler(Incoming.CanCreateRoomEvent, RequestCanCreateRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetUnreadForumsCountEvent, RequestPromotedRoomsEvent.class);
|
||||
this.registerHandler(Incoming.CreateFlatEvent, RequestCreateRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetPopularRoomTagsEvent, RequestTagsEvent.class);
|
||||
this.registerHandler(Incoming.GetUserFlatCatsEvent, GetUserFlatCatsEvent.class);
|
||||
this.registerHandler(Incoming.PopularRoomsSearchEvent, PopularRoomsSearchEvent.class);
|
||||
this.registerHandler(Incoming.RoomsWithHighestScoreSearchEvent, RoomsWithHighestScoreSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomsSearchEvent, MyRoomsSearchEvent.class);
|
||||
this.registerHandler(Incoming.CanCreateRoomEvent, CanCreateRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetUnreadForumsCountEvent, GetUnreadForumsCountEvent.class);
|
||||
this.registerHandler(Incoming.CreateFlatEvent, CreateFlatEvent.class);
|
||||
this.registerHandler(Incoming.GetPopularRoomTagsEvent, GetPopularRoomTagsEvent.class);
|
||||
this.registerHandler(Incoming.SearchRoomsByTagEvent, SearchRoomsByTagEvent.class);
|
||||
this.registerHandler(Incoming.RoomTextSearchEvent, SearchRoomsEvent.class);
|
||||
this.registerHandler(Incoming.RoomsWhereMyFriendsAreSearchEvent, SearchRoomsFriendsNowEvent.class);
|
||||
this.registerHandler(Incoming.MyFriendsRoomsSearchEvent, SearchRoomsFriendsOwnEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomRightsSearchEvent, SearchRoomsWithRightsEvent.class);
|
||||
this.registerHandler(Incoming.MyGuildBasesSearchEvent, SearchRoomsInGroupEvent.class);
|
||||
this.registerHandler(Incoming.MyFavouriteRoomsSearchEvent, SearchRoomsMyFavouriteEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomHistorySearchEvent, SearchRoomsVisitedEvent.class);
|
||||
this.registerHandler(Incoming.NewNavigatorInitEvent, RequestNewNavigatorDataEvent.class);
|
||||
this.registerHandler(Incoming.NewNavigatorSearchEvent, RequestNewNavigatorRoomsEvent.class);
|
||||
this.registerHandler(Incoming.ForwardToSomeRoomEvent, NewNavigatorActionEvent.class);
|
||||
this.registerHandler(Incoming.GetUserEventCatsEvent, RequestNavigatorSettingsEvent.class);
|
||||
this.registerHandler(Incoming.SetNewNavigatorWindowPreferencesEvent, SaveWindowSettingsEvent.class);
|
||||
this.registerHandler(Incoming.DeleteRoomEvent, RequestDeleteRoomEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorSetSearchCodeViewModeEvent, NavigatorCategoryListModeEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorAddCollapsedCategoryEvent, NavigatorCollapseCategoryEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorRemoveCollapsedCategoryEvent, NavigatorUncollapseCategoryEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorAddSavedSearchEvent, AddSavedSearchEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorDeleteSavedSearchEvent, DeleteSavedSearchEvent.class);
|
||||
this.registerHandler(Incoming.RoomTextSearchEvent, RoomTextSearchEvent.class);
|
||||
this.registerHandler(Incoming.RoomsWhereMyFriendsAreSearchEvent, RoomsWhereMyFriendsAreSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyFriendsRoomsSearchEvent, MyFriendsRoomsSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomRightsSearchEvent, MyRoomRightsSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyGuildBasesSearchEvent, MyGuildBasesSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyFavouriteRoomsSearchEvent, MyFavouriteRoomsSearchEvent.class);
|
||||
this.registerHandler(Incoming.MyRoomHistorySearchEvent, MyRoomHistorySearchEvent.class);
|
||||
this.registerHandler(Incoming.NewNavigatorInitEvent, NewNavigatorInitEvent.class);
|
||||
this.registerHandler(Incoming.NewNavigatorSearchEvent, NewNavigatorSearchEvent.class);
|
||||
this.registerHandler(Incoming.ForwardToSomeRoomEvent, ForwardToSomeRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetUserEventCatsEvent, GetUserEventCatsEvent.class);
|
||||
this.registerHandler(Incoming.SetNewNavigatorWindowPreferencesEvent, SetNewNavigatorWindowPreferencesEvent.class);
|
||||
this.registerHandler(Incoming.DeleteRoomEvent, DeleteRoomEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorSetSearchCodeViewModeEvent, NavigatorSetSearchCodeViewModeEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorAddCollapsedCategoryEvent, NavigatorAddCollapsedCategoryEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorRemoveCollapsedCategoryEvent, NavigatorRemoveCollapsedCategoryEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorAddSavedSearchEvent, NavigatorAddSavedSearchEvent.class);
|
||||
this.registerHandler(Incoming.NavigatorDeleteSavedSearchEvent, NavigatorDeleteSavedSearchEvent.class);
|
||||
}
|
||||
|
||||
private void registerHotelview() throws Exception {
|
||||
this.registerHandler(Incoming.QuitEvent, HotelViewEvent.class);
|
||||
this.registerHandler(Incoming.GetBonusRareInfoEvent, HotelViewRequestBonusRareEvent.class);
|
||||
this.registerHandler(Incoming.GetPromoArticlesEvent, RequestNewsListEvent.class);
|
||||
this.registerHandler(Incoming.GetCurrentTimingCodeEvent, HotelViewDataEvent.class);
|
||||
this.registerHandler(Incoming.QuitEvent, QuitEvent.class);
|
||||
this.registerHandler(Incoming.GetBonusRareInfoEvent, GetBonusRareInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetPromoArticlesEvent, GetPromoArticlesEvent.class);
|
||||
this.registerHandler(Incoming.GetCurrentTimingCodeEvent, GetCurrentTimingCodeEvent.class);
|
||||
this.registerHandler(Incoming.HotelViewRequestBadgeRewardEvent, HotelViewRequestBadgeRewardEvent.class);
|
||||
this.registerHandler(Incoming.HotelViewClaimBadgeRewardEvent, HotelViewClaimBadgeRewardEvent.class);
|
||||
this.registerHandler(Incoming.GetLimitedOfferAppearingNextEvent, HotelViewRequestLTDAvailabilityEvent.class);
|
||||
this.registerHandler(Incoming.GetLimitedOfferAppearingNextEvent, GetLimitedOfferAppearingNextEvent.class);
|
||||
this.registerHandler(Incoming.HotelViewRequestSecondsUntilEvent, HotelViewRequestSecondsUntilEvent.class);
|
||||
}
|
||||
|
||||
private void registerInventory() throws Exception {
|
||||
this.registerHandler(Incoming.GetBadgesEvent, RequestInventoryBadgesEvent.class);
|
||||
this.registerHandler(Incoming.GetBotInventoryEvent, RequestInventoryBotsEvent.class);
|
||||
this.registerHandler(Incoming.RequestFurniInventoryEvent, RequestInventoryItemsEvent.class);
|
||||
this.registerHandler(Incoming.RequestFurniInventoryWhenNotInRoomEvent, RequestInventoryItemsEvent.class);
|
||||
this.registerHandler(Incoming.GetPetInventoryEvent, RequestInventoryPetsEvent.class);
|
||||
this.registerHandler(Incoming.GetBadgesEvent, GetBadgesEvent.class);
|
||||
this.registerHandler(Incoming.GetBotInventoryEvent, GetBotInventoryEvent.class);
|
||||
this.registerHandler(Incoming.RequestFurniInventoryEvent, RequestFurniInventoryWhenNotInRoomEvent.class);
|
||||
this.registerHandler(Incoming.RequestFurniInventoryWhenNotInRoomEvent, RequestFurniInventoryWhenNotInRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetPetInventoryEvent, GetPetInventoryEvent.class);
|
||||
}
|
||||
|
||||
void registerRooms() throws Exception {
|
||||
this.registerHandler(Incoming.OpenFlatConnectionEvent, RequestRoomLoadEvent.class);
|
||||
this.registerHandler(Incoming.GetFurnitureAliasesEvent, RequestRoomHeightmapEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomEntryDataEvent, RequestRoomHeightmapEvent.class);
|
||||
this.registerHandler(Incoming.RateFlatEvent, RoomVoteEvent.class);
|
||||
this.registerHandler(Incoming.GetGuestRoomEvent, RequestRoomDataEvent.class);
|
||||
this.registerHandler(Incoming.SaveRoomSettingsEvent, RoomSettingsSaveEvent.class);
|
||||
this.registerHandler(Incoming.PlaceObjectEvent, RoomPlaceItemEvent.class);
|
||||
this.registerHandler(Incoming.MoveObjectEvent, RotateMoveItemEvent.class);
|
||||
this.registerHandler(Incoming.OpenFlatConnectionEvent, OpenFlatConnectionEvent.class);
|
||||
this.registerHandler(Incoming.GetFurnitureAliasesEvent, GetRoomEntryDataEvent.class);// should this be seperate event classes?
|
||||
this.registerHandler(Incoming.GetRoomEntryDataEvent, GetRoomEntryDataEvent.class);// should this be seperate event classes?
|
||||
this.registerHandler(Incoming.RateFlatEvent, RateFlatEvent.class);
|
||||
this.registerHandler(Incoming.GetGuestRoomEvent, GetGuestRoomEvent.class);
|
||||
this.registerHandler(Incoming.SaveRoomSettingsEvent, SaveRoomSettingsEvent.class);
|
||||
this.registerHandler(Incoming.PlaceObjectEvent, PlaceObjectEvent.class);
|
||||
this.registerHandler(Incoming.MoveObjectEvent, MoveObjectEvent.class);
|
||||
this.registerHandler(Incoming.MoveWallItemEvent, MoveWallItemEvent.class);
|
||||
this.registerHandler(Incoming.PickupObjectEvent, RoomPickupItemEvent.class);
|
||||
this.registerHandler(Incoming.RequestRoomPropertySet, RoomPlacePaintEvent.class);
|
||||
this.registerHandler(Incoming.StartTypingEvent, RoomUserStartTypingEvent.class);
|
||||
this.registerHandler(Incoming.CancelTypingEvent, RoomUserStopTypingEvent.class);
|
||||
this.registerHandler(Incoming.UseFurnitureEvent, ToggleFloorItemEvent.class);
|
||||
this.registerHandler(Incoming.UseWallItemEvent, ToggleWallItemEvent.class);
|
||||
this.registerHandler(Incoming.SetRoomBackgroundColorDataEvent, RoomBackgroundEvent.class);
|
||||
this.registerHandler(Incoming.SetMannequinNameEvent, MannequinSaveNameEvent.class);
|
||||
this.registerHandler(Incoming.SetMannequinFigureEvent, MannequinSaveLookEvent.class);
|
||||
this.registerHandler(Incoming.SetClothingChangeDataEvent, FootballGateSaveLookEvent.class);
|
||||
this.registerHandler(Incoming.SetObjectDataEvent, AdvertisingSaveEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomSettingsEvent, RequestRoomSettingsEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerGetPresetsEvent, MoodLightSettingsEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerChangeStateEvent, MoodLightTurnOnEvent.class);
|
||||
this.registerHandler(Incoming.DropCarryItemEvent, RoomUserDropHandItemEvent.class);
|
||||
this.registerHandler(Incoming.LookToEvent, RoomUserLookAtPoint.class);
|
||||
this.registerHandler(Incoming.ChatEvent, RoomUserTalkEvent.class);
|
||||
this.registerHandler(Incoming.ShoutEvent, RoomUserShoutEvent.class);
|
||||
this.registerHandler(Incoming.WhisperEvent, RoomUserWhisperEvent.class);
|
||||
this.registerHandler(Incoming.AvatarExpressionEvent, RoomUserActionEvent.class);
|
||||
this.registerHandler(Incoming.ChangePostureEvent, RoomUserSitEvent.class);
|
||||
this.registerHandler(Incoming.DanceEvent, RoomUserDanceEvent.class);
|
||||
this.registerHandler(Incoming.SignEvent, RoomUserSignEvent.class);
|
||||
this.registerHandler(Incoming.MoveAvatarEvent, RoomUserWalkEvent.class);
|
||||
this.registerHandler(Incoming.RespectUserEvent, RoomUserGiveRespectEvent.class);
|
||||
this.registerHandler(Incoming.AssignRightsEvent, RoomUserGiveRightsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveOwnRoomRightsRoomEvent, RoomRemoveRightsEvent.class);
|
||||
this.registerHandler(Incoming.GetFlatControllersEvent, RequestRoomRightsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveAllRightsEvent, RoomRemoveAllRightsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveRightsEvent, RoomUserRemoveRightsEvent.class);
|
||||
this.registerHandler(Incoming.PlaceBotEvent, BotPlaceEvent.class);
|
||||
this.registerHandler(Incoming.RemoveBotFromFlatEvent, BotPickupEvent.class);
|
||||
this.registerHandler(Incoming.CommandBotEvent, BotSaveSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetBotCommandConfigurationDataEvent, BotSettingsEvent.class);
|
||||
this.registerHandler(Incoming.ThrowDiceEvent, TriggerDiceEvent.class);
|
||||
this.registerHandler(Incoming.DiceOffEvent, CloseDiceEvent.class);
|
||||
this.registerHandler(Incoming.SpinWheelOfFortuneEvent, TriggerColorWheelEvent.class);
|
||||
this.registerHandler(Incoming.CreditFurniRedeemEvent, RedeemItemEvent.class);
|
||||
this.registerHandler(Incoming.PlacePetEvent, PetPlaceEvent.class);
|
||||
this.registerHandler(Incoming.PickupObjectEvent, PickupObjectEvent.class);
|
||||
this.registerHandler(Incoming.RequestRoomPropertySet, RequestRoomPropertySet.class);
|
||||
this.registerHandler(Incoming.StartTypingEvent, StartTypingEvent.class);
|
||||
this.registerHandler(Incoming.CancelTypingEvent, CancelTypingEvent.class);
|
||||
this.registerHandler(Incoming.UseFurnitureEvent, UseFurnitureEvent.class);
|
||||
this.registerHandler(Incoming.UseWallItemEvent, UseWallItemEvent.class);
|
||||
this.registerHandler(Incoming.SetRoomBackgroundColorDataEvent, SetRoomBackgroundColorDataEvent.class);
|
||||
this.registerHandler(Incoming.SetMannequinNameEvent, SetMannequinNameEvent.class);
|
||||
this.registerHandler(Incoming.SetMannequinFigureEvent, SetMannequinFigureEvent.class);
|
||||
this.registerHandler(Incoming.SetClothingChangeDataEvent, SetClothingChangeDataEvent.class);
|
||||
this.registerHandler(Incoming.SetObjectDataEvent, SetObjectDataEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomSettingsEvent, GetRoomSettingsEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerGetPresetsEvent, RoomDimmerGetPresetsEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerChangeStateEvent, RoomDimmerChangeStateEvent.class);
|
||||
this.registerHandler(Incoming.DropCarryItemEvent, DropCarryItemEvent.class);
|
||||
this.registerHandler(Incoming.LookToEvent, LookToEvent.class);
|
||||
this.registerHandler(Incoming.ChatEvent, ChatEvent.class);
|
||||
this.registerHandler(Incoming.ShoutEvent, ShoutEvent.class);
|
||||
this.registerHandler(Incoming.WhisperEvent, WhisperEvent.class);
|
||||
this.registerHandler(Incoming.AvatarExpressionEvent, AvatarExpressionEvent.class);
|
||||
this.registerHandler(Incoming.ChangePostureEvent, ChangePostureEvent.class);
|
||||
this.registerHandler(Incoming.DanceEvent, DanceEvent.class);
|
||||
this.registerHandler(Incoming.SignEvent, SignEvent.class);
|
||||
this.registerHandler(Incoming.MoveAvatarEvent, MoveAvatarEvent.class);
|
||||
this.registerHandler(Incoming.RespectUserEvent, RespectUserEvent.class);
|
||||
this.registerHandler(Incoming.AssignRightsEvent, AssignRightsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveOwnRoomRightsRoomEvent, RemoveOwnRoomRightsRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetFlatControllersEvent, GetFlatControllersEvent.class);
|
||||
this.registerHandler(Incoming.RemoveAllRightsEvent, RemoveAllRightsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveRightsEvent, RemoveRightsEvent.class);
|
||||
this.registerHandler(Incoming.PlaceBotEvent, PlaceBotEvent.class);
|
||||
this.registerHandler(Incoming.RemoveBotFromFlatEvent, RemoveBotFromFlatEvent.class);
|
||||
this.registerHandler(Incoming.CommandBotEvent, CommandBotEvent.class);
|
||||
this.registerHandler(Incoming.GetBotCommandConfigurationDataEvent, GetBotCommandConfigurationDataEvent.class);
|
||||
this.registerHandler(Incoming.ThrowDiceEvent, ThrowDiceEvent.class);
|
||||
this.registerHandler(Incoming.DiceOffEvent, DiceOffEvent.class);
|
||||
this.registerHandler(Incoming.SpinWheelOfFortuneEvent, SpinWheelOfFortuneEvent.class);
|
||||
this.registerHandler(Incoming.CreditFurniRedeemEvent, CreditFurniRedeemEvent.class);
|
||||
this.registerHandler(Incoming.PlacePetEvent, PlacePetEvent.class);
|
||||
this.registerHandler(Incoming.RoomUserKickEvent, RoomUserKickEvent.class);
|
||||
this.registerHandler(Incoming.SetCustomStackingHeightEvent, SetStackHelperHeightEvent.class);
|
||||
this.registerHandler(Incoming.EnterOneWayDoorEvent, TriggerOneWayGateEvent.class);
|
||||
this.registerHandler(Incoming.LetUserInEvent, HandleDoorbellEvent.class);
|
||||
this.registerHandler(Incoming.CustomizeAvatarWithFurniEvent, RedeemClothingEvent.class);
|
||||
this.registerHandler(Incoming.PlacePostItEvent, PostItPlaceEvent.class);
|
||||
this.registerHandler(Incoming.GetItemDataEvent, PostItRequestDataEvent.class);
|
||||
this.registerHandler(Incoming.SetItemDataEvent, PostItSaveDataEvent.class);
|
||||
this.registerHandler(Incoming.RemoveItemEvent, PostItDeleteEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerSavePresetEvent, MoodLightSaveSettingsEvent.class);
|
||||
this.registerHandler(Incoming.RentableSpaceRentEvent, RentSpaceEvent.class);
|
||||
this.registerHandler(Incoming.RentableSpaceCancelRentEvent, RentSpaceCancelEvent.class);
|
||||
this.registerHandler(Incoming.UpdateHomeRoomEvent, SetHomeRoomEvent.class);
|
||||
this.registerHandler(Incoming.PassCarryItemEvent, RoomUserGiveHandItemEvent.class);
|
||||
this.registerHandler(Incoming.MuteAllInRoomEvent, RoomMuteEvent.class);
|
||||
this.registerHandler(Incoming.GetCustomRoomFilterEvent, RequestRoomWordFilterEvent.class);
|
||||
this.registerHandler(Incoming.UpdateRoomFilterEvent, RoomWordFilterModifyEvent.class);
|
||||
this.registerHandler(Incoming.SubmitRoomToCompetitionEvent, RoomStaffPickEvent.class);
|
||||
this.registerHandler(Incoming.GetBannedUsersFromRoomEvent, RoomRequestBannedUsersEvent.class);
|
||||
this.registerHandler(Incoming.GetOfficialSongIdEvent, JukeBoxRequestTrackCodeEvent.class);
|
||||
this.registerHandler(Incoming.GetSongInfoEvent, JukeBoxRequestTrackDataEvent.class);
|
||||
this.registerHandler(Incoming.AddJukeboxDiskEvent, JukeBoxAddSoundTrackEvent.class);
|
||||
this.registerHandler(Incoming.RemoveJukeboxDiskEvent, JukeBoxRemoveSoundTrackEvent.class);
|
||||
this.registerHandler(Incoming.GetNowPlayingEvent, JukeBoxRequestPlayListEvent.class);
|
||||
this.registerHandler(Incoming.JukeBoxEventOne, JukeBoxEventOne.class);
|
||||
this.registerHandler(Incoming.GetJukeboxPlayListEvent, JukeBoxEventTwo.class);
|
||||
this.registerHandler(Incoming.AddSpamWallPostItEvent, SavePostItStickyPoleEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomAdPurchaseInfoEvent, RequestPromotionRoomsEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseRoomAdEvent, BuyRoomPromotionEvent.class);
|
||||
this.registerHandler(Incoming.EditEventEvent, UpdateRoomPromotionEvent.class);
|
||||
this.registerHandler(Incoming.IgnoreUserEvent, IgnoreRoomUserEvent.class);
|
||||
this.registerHandler(Incoming.UnignoreUserEvent, UnIgnoreRoomUserEvent.class);
|
||||
this.registerHandler(Incoming.SetCustomStackingHeightEvent, SetCustomStackingHeightEvent.class);
|
||||
this.registerHandler(Incoming.EnterOneWayDoorEvent, EnterOneWayDoorEvent.class);
|
||||
this.registerHandler(Incoming.LetUserInEvent, LetUserInEvent.class);
|
||||
this.registerHandler(Incoming.CustomizeAvatarWithFurniEvent, CustomizeAvatarWithFurniEvent.class);
|
||||
this.registerHandler(Incoming.PlacePostItEvent, PlacePostItEvent.class);
|
||||
this.registerHandler(Incoming.GetItemDataEvent, GetItemDataEvent.class);
|
||||
this.registerHandler(Incoming.SetItemDataEvent, SetItemDataEvent.class);
|
||||
this.registerHandler(Incoming.RemoveItemEvent, RemoveItemEvent.class);
|
||||
this.registerHandler(Incoming.RoomDimmerSavePresetEvent, RoomDimmerSavePresetEvent.class);
|
||||
this.registerHandler(Incoming.RentableSpaceRentEvent, RentableSpaceRentEvent.class);
|
||||
this.registerHandler(Incoming.RentableSpaceCancelRentEvent, RentableSpaceCancelRentEvent.class);
|
||||
this.registerHandler(Incoming.UpdateHomeRoomEvent, UpdateHomeRoomEvent.class);
|
||||
this.registerHandler(Incoming.PassCarryItemEvent, PassCarryItemEvent.class);
|
||||
this.registerHandler(Incoming.MuteAllInRoomEvent, MuteAllInRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetCustomRoomFilterEvent, GetCustomRoomFilterEvent.class);
|
||||
this.registerHandler(Incoming.UpdateRoomFilterEvent, UpdateRoomFilterEvent.class);
|
||||
this.registerHandler(Incoming.SubmitRoomToCompetitionEvent, SubmitRoomToCompetitionEvent.class);
|
||||
this.registerHandler(Incoming.GetBannedUsersFromRoomEvent, GetBannedUsersFromRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetOfficialSongIdEvent, GetOfficialSongIdEvent.class);
|
||||
this.registerHandler(Incoming.GetSongInfoEvent, GetSongInfoEvent.class);
|
||||
this.registerHandler(Incoming.AddJukeboxDiskEvent, AddJukeboxDiskEvent.class);
|
||||
this.registerHandler(Incoming.RemoveJukeboxDiskEvent, RemoveJukeboxDiskEvent.class);
|
||||
this.registerHandler(Incoming.GetNowPlayingEvent, GetNowPlayingEvent.class);
|
||||
this.registerHandler(Incoming.JukeBoxEventOne, JukeBoxEventOne.class); // this doesnt even exist in the swf src for this prod.
|
||||
this.registerHandler(Incoming.GetJukeboxPlayListEvent, GetJukeboxPlayListEvent.class);
|
||||
this.registerHandler(Incoming.AddSpamWallPostItEvent, AddSpamWallPostItEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomAdPurchaseInfoEvent, GetRoomAdPurchaseInfoEvent.class);
|
||||
this.registerHandler(Incoming.PurchaseRoomAdEvent, PurchaseRoomAdEvent.class);
|
||||
this.registerHandler(Incoming.EditEventEvent, EditEventEvent.class);
|
||||
this.registerHandler(Incoming.IgnoreUserEvent, IgnoreUserEvent.class);
|
||||
this.registerHandler(Incoming.UnignoreUserEvent, UnignoreUserEvent.class);
|
||||
this.registerHandler(Incoming.RoomUserMuteEvent, RoomUserMuteEvent.class);
|
||||
this.registerHandler(Incoming.BanUserWithDurationEvent, RoomUserBanEvent.class);
|
||||
this.registerHandler(Incoming.UnbanUserFromRoomEvent, UnbanRoomUserEvent.class);
|
||||
this.registerHandler(Incoming.GetUserTagsEvent, RequestRoomUserTagsEvent.class);
|
||||
this.registerHandler(Incoming.GetYoutubeDisplayStatusEvent, YoutubeRequestPlaylists.class);
|
||||
this.registerHandler(Incoming.ControlYoutubeDisplayPlaybackEvent, YoutubeRequestStateChange.class);
|
||||
this.registerHandler(Incoming.SetYoutubeDisplayPlaylistEvent, YoutubeRequestPlaylistChange.class);
|
||||
this.registerHandler(Incoming.AddFavouriteRoomEvent, RoomFavoriteEvent.class);
|
||||
this.registerHandler(Incoming.FriendFurniConfirmLockEvent, LoveLockStartConfirmEvent.class);
|
||||
this.registerHandler(Incoming.DeleteFavouriteRoomEvent, RoomUnFavoriteEvent.class);
|
||||
this.registerHandler(Incoming.SetRandomStateEvent, UseRandomStateItemEvent.class);
|
||||
this.registerHandler(Incoming.BanUserWithDurationEvent, BanUserWithDurationEvent.class);
|
||||
this.registerHandler(Incoming.UnbanUserFromRoomEvent, UnbanUserFromRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetUserTagsEvent, GetUserTagsEvent.class);
|
||||
this.registerHandler(Incoming.GetYoutubeDisplayStatusEvent, GetYoutubeDisplayStatusEvent.class);
|
||||
this.registerHandler(Incoming.ControlYoutubeDisplayPlaybackEvent, ControlYoutubeDisplayPlaybackEvent.class);
|
||||
this.registerHandler(Incoming.SetYoutubeDisplayPlaylistEvent, SetYoutubeDisplayPlaylistEvent.class);
|
||||
this.registerHandler(Incoming.AddFavouriteRoomEvent, AddFavouriteRoomEvent.class);
|
||||
this.registerHandler(Incoming.FriendFurniConfirmLockEvent, FriendFurniConfirmLockEvent.class);
|
||||
this.registerHandler(Incoming.DeleteFavouriteRoomEvent, DeleteFavouriteRoomEvent.class);
|
||||
this.registerHandler(Incoming.SetRandomStateEvent, SetRandomStateEvent.class);
|
||||
}
|
||||
|
||||
void registerPolls() throws Exception {
|
||||
this.registerHandler(Incoming.PollRejectEvent, CancelPollEvent.class);
|
||||
this.registerHandler(Incoming.PollStartEvent, GetPollDataEvent.class);
|
||||
this.registerHandler(Incoming.PollRejectEvent, PollRejectEvent.class);
|
||||
this.registerHandler(Incoming.PollStartEvent, PollStartEvent.class);
|
||||
this.registerHandler(Incoming.AnswerPollEvent, AnswerPollEvent.class);
|
||||
}
|
||||
|
||||
void registerModTool() throws Exception {
|
||||
this.registerHandler(Incoming.GetModeratorRoomInfoEvent, ModToolRequestRoomInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomChatlogEvent, ModToolRequestRoomChatlogEvent.class);
|
||||
this.registerHandler(Incoming.GetModeratorUserInfoEvent, ModToolRequestUserInfoEvent.class);
|
||||
this.registerHandler(Incoming.PickIssuesEvent, ModToolPickTicketEvent.class);
|
||||
this.registerHandler(Incoming.CloseIssuesEvent, ModToolCloseTicketEvent.class);
|
||||
this.registerHandler(Incoming.ReleaseIssuesEvent, ModToolReleaseTicketEvent.class);
|
||||
this.registerHandler(Incoming.ModMessageEvent, ModToolAlertEvent.class);
|
||||
this.registerHandler(Incoming.GetModeratorRoomInfoEvent, GetModeratorRoomInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomChatlogEvent, GetRoomChatlogEvent.class);
|
||||
this.registerHandler(Incoming.GetModeratorUserInfoEvent, GetModeratorUserInfoEvent.class);
|
||||
this.registerHandler(Incoming.PickIssuesEvent, PickIssuesEvent.class);
|
||||
this.registerHandler(Incoming.CloseIssuesEvent, CloseIssuesEvent.class);
|
||||
this.registerHandler(Incoming.ReleaseIssuesEvent, ReleaseIssuesEvent.class);
|
||||
this.registerHandler(Incoming.ModMessageEvent, ModMessageEvent.class);
|
||||
this.registerHandler(Incoming.ModToolWarnEvent, ModToolWarnEvent.class);
|
||||
this.registerHandler(Incoming.ModKickEvent, ModToolKickEvent.class);
|
||||
this.registerHandler(Incoming.ModeratorActionEvent, ModToolRoomAlertEvent.class);
|
||||
this.registerHandler(Incoming.ModerateRoomEvent, ModToolChangeRoomSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomVisitsEvent, ModToolRequestRoomVisitsEvent.class);
|
||||
this.registerHandler(Incoming.GetCfhChatlogEvent, ModToolRequestIssueChatlogEvent.class);
|
||||
this.registerHandler(Incoming.ModKickEvent, ModKickEvent.class);
|
||||
this.registerHandler(Incoming.ModeratorActionEvent, ModeratorActionEvent.class);
|
||||
this.registerHandler(Incoming.ModerateRoomEvent, ModerateRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomVisitsEvent, GetRoomVisitsEvent.class);
|
||||
this.registerHandler(Incoming.GetCfhChatlogEvent, GetCfhChatlogEvent.class);
|
||||
this.registerHandler(Incoming.ModToolRequestRoomUserChatlogEvent, ModToolRequestRoomUserChatlogEvent.class);
|
||||
this.registerHandler(Incoming.GetUserChatlogEvent, ModToolRequestUserChatlogEvent.class);
|
||||
this.registerHandler(Incoming.ModAlertEvent, ModToolSanctionAlertEvent.class);
|
||||
this.registerHandler(Incoming.ModMuteEvent, ModToolSanctionMuteEvent.class);
|
||||
this.registerHandler(Incoming.ModBanEvent, ModToolSanctionBanEvent.class);
|
||||
this.registerHandler(Incoming.ModTradingLockEvent, ModToolSanctionTradeLockEvent.class);
|
||||
this.registerHandler(Incoming.ModToolSanctionEvent, ModToolIssueChangeTopicEvent.class);
|
||||
this.registerHandler(Incoming.CloseIssueDefaultActionEvent, ModToolIssueDefaultSanctionEvent.class);
|
||||
this.registerHandler(Incoming.GetUserChatlogEvent, GetUserChatlogEvent.class);
|
||||
this.registerHandler(Incoming.ModAlertEvent, ModAlertEvent.class);
|
||||
this.registerHandler(Incoming.ModMuteEvent, ModMuteEvent.class);
|
||||
this.registerHandler(Incoming.ModBanEvent, ModBanEvent.class);
|
||||
this.registerHandler(Incoming.ModTradingLockEvent, ModTradingLockEvent.class);
|
||||
this.registerHandler(Incoming.ModToolSanctionEvent, ModToolSanctionEvent.class);
|
||||
this.registerHandler(Incoming.CloseIssueDefaultActionEvent, CloseIssueDefaultActionEvent.class);
|
||||
|
||||
this.registerHandler(Incoming.GetPendingCallsForHelpEvent, RequestReportRoomEvent.class);
|
||||
this.registerHandler(Incoming.GetGuideReportingStatusEvent, RequestReportUserBullyingEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewSessionCreateEvent, ReportBullyEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpEvent, ReportEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromIMEvent, ReportFriendPrivateChatEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromForumThreadEvent, ReportThreadEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromForumMessageEvent, ReportCommentEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromPhotoEvent, ReportPhotoEvent.class);
|
||||
this.registerHandler(Incoming.GetPendingCallsForHelpEvent, GetPendingCallsForHelpEvent.class);
|
||||
this.registerHandler(Incoming.GetGuideReportingStatusEvent, GetGuideReportingStatusEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewSessionCreateEvent, ChatReviewSessionCreateEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpEvent, CallForHelpEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromIMEvent, CallForHelpFromIMEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromForumThreadEvent, CallForHelpFromForumThreadEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromForumMessageEvent, CallForHelpFromForumMessageEvent.class);
|
||||
this.registerHandler(Incoming.CallForHelpFromPhotoEvent, CallForHelpFromPhotoEvent.class);
|
||||
}
|
||||
|
||||
void registerTrading() throws Exception {
|
||||
this.registerHandler(Incoming.OpenTradingEvent, TradeStartEvent.class);
|
||||
this.registerHandler(Incoming.AddItemToTradeEvent, TradeOfferItemEvent.class);
|
||||
this.registerHandler(Incoming.AddItemsToTradeEvent, TradeOfferMultipleItemsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveItemFromTradeEvent, TradeCancelOfferItemEvent.class);
|
||||
this.registerHandler(Incoming.AcceptTradingEvent, TradeAcceptEvent.class);
|
||||
this.registerHandler(Incoming.UnacceptTradingEvent, TradeUnAcceptEvent.class);
|
||||
this.registerHandler(Incoming.ConfirmAcceptTradingEvent, TradeConfirmEvent.class);
|
||||
this.registerHandler(Incoming.CloseTradingEvent, TradeCloseEvent.class);
|
||||
this.registerHandler(Incoming.ConfirmDeclineTradingEvent, TradeCancelEvent.class);
|
||||
this.registerHandler(Incoming.OpenTradingEvent, OpenTradingEvent.class);
|
||||
this.registerHandler(Incoming.AddItemToTradeEvent, AddItemToTradeEvent.class);
|
||||
this.registerHandler(Incoming.AddItemsToTradeEvent, AddItemsToTradeEvent.class);
|
||||
this.registerHandler(Incoming.RemoveItemFromTradeEvent, RemoveItemFromTradeEvent.class);
|
||||
this.registerHandler(Incoming.AcceptTradingEvent, AcceptTradingEvent.class);
|
||||
this.registerHandler(Incoming.UnacceptTradingEvent, UnacceptTradingEvent.class);
|
||||
this.registerHandler(Incoming.ConfirmAcceptTradingEvent, ConfirmAcceptTradingEvent.class);
|
||||
this.registerHandler(Incoming.CloseTradingEvent, CloseTradingEvent.class);
|
||||
this.registerHandler(Incoming.ConfirmDeclineTradingEvent, ConfirmDeclineTradingEvent.class);
|
||||
}
|
||||
|
||||
void registerGuilds() throws Exception {
|
||||
this.registerHandler(Incoming.GetGuildCreationInfoEvent, RequestGuildBuyRoomsEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildEditorDataEvent, RequestGuildPartsEvent.class);
|
||||
this.registerHandler(Incoming.CreateGuildEvent, RequestGuildBuyEvent.class);
|
||||
this.registerHandler(Incoming.GetHabboGroupDetailsEvent, RequestGuildInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildEditInfoEvent, RequestGuildManageEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildMembersEvent, RequestGuildMembersEvent.class);
|
||||
this.registerHandler(Incoming.JoinHabboGroupEvent, RequestGuildJoinEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildIdentityEvent, GuildChangeNameDescEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildBadgeEvent, GuildChangeBadgeEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildColorsEvent, GuildChangeColorsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveAdminRightsFromMemberEvent, GuildRemoveAdminEvent.class);
|
||||
this.registerHandler(Incoming.KickMemberEvent, GuildRemoveMemberEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildSettingsEvent, GuildChangeSettingsEvent.class);
|
||||
this.registerHandler(Incoming.ApproveMembershipRequestEvent, GuildAcceptMembershipEvent.class);
|
||||
this.registerHandler(Incoming.RejectMembershipRequestEvent, GuildDeclineMembershipEvent.class);
|
||||
this.registerHandler(Incoming.AddAdminRightsToMemberEvent, GuildSetAdminEvent.class);
|
||||
this.registerHandler(Incoming.SelectFavouriteHabboGroupEvent, GuildSetFavoriteEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildMembershipsEvent, RequestOwnGuildsEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildFurniContextMenuInfoEvent, RequestGuildFurniWidgetEvent.class);
|
||||
this.registerHandler(Incoming.GetMemberGuildItemCountEvent, GuildConfirmRemoveMemberEvent.class);
|
||||
this.registerHandler(Incoming.DeselectFavouriteHabboGroupEvent, GuildRemoveFavoriteEvent.class);
|
||||
this.registerHandler(Incoming.DeactivateGuildEvent, GuildDeleteEvent.class);
|
||||
this.registerHandler(Incoming.GetForumsListEvent, GuildForumListEvent.class);
|
||||
this.registerHandler(Incoming.GetThreadsEvent, GuildForumThreadsEvent.class);
|
||||
this.registerHandler(Incoming.GetForumStatsEvent, GuildForumDataEvent.class);
|
||||
this.registerHandler(Incoming.PostMessageEvent, GuildForumPostThreadEvent.class);
|
||||
this.registerHandler(Incoming.UpdateForumSettingsEvent, GuildForumUpdateSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetMessagesEvent, GuildForumThreadsMessagesEvent.class);
|
||||
this.registerHandler(Incoming.ModerateMessageEvent, GuildForumModerateMessageEvent.class);
|
||||
this.registerHandler(Incoming.ModerateThreadEvent, GuildForumModerateThreadEvent.class);
|
||||
this.registerHandler(Incoming.UpdateThreadEvent, GuildForumThreadUpdateEvent.class);
|
||||
this.registerHandler(Incoming.GetHabboGroupBadgesEvent, GetHabboGuildBadgesMessageEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildCreationInfoEvent, GetGuildCreationInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildEditorDataEvent, GetGuildEditorDataEvent.class);
|
||||
this.registerHandler(Incoming.CreateGuildEvent, CreateGuildEvent.class);
|
||||
this.registerHandler(Incoming.GetHabboGroupDetailsEvent, GetHabboGroupDetailsEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildEditInfoEvent, GetGuildEditInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildMembersEvent, GetGuildMembersEvent.class);
|
||||
this.registerHandler(Incoming.JoinHabboGroupEvent, JoinHabboGroupEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildIdentityEvent, UpdateGuildIdentityEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildBadgeEvent, UpdateGuildBadgeEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildColorsEvent, UpdateGuildColorsEvent.class);
|
||||
this.registerHandler(Incoming.RemoveAdminRightsFromMemberEvent, RemoveAdminRightsFromMemberEvent.class);
|
||||
this.registerHandler(Incoming.KickMemberEvent, KickMemberEvent.class);
|
||||
this.registerHandler(Incoming.UpdateGuildSettingsEvent, UpdateGuildSettingsEvent.class);
|
||||
this.registerHandler(Incoming.ApproveMembershipRequestEvent, ApproveMembershipRequestEvent.class);
|
||||
this.registerHandler(Incoming.RejectMembershipRequestEvent, RejectMembershipRequestEvent.class);
|
||||
this.registerHandler(Incoming.AddAdminRightsToMemberEvent, AddAdminRightsToMemberEvent.class);
|
||||
this.registerHandler(Incoming.SelectFavouriteHabboGroupEvent, SelectFavouriteHabboGroupEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildMembershipsEvent, GetGuildMembershipsEvent.class);
|
||||
this.registerHandler(Incoming.GetGuildFurniContextMenuInfoEvent, GetGuildFurniContextMenuInfoEvent.class);
|
||||
this.registerHandler(Incoming.GetMemberGuildItemCountEvent, GetMemberGuildItemCountEvent.class);
|
||||
this.registerHandler(Incoming.DeselectFavouriteHabboGroupEvent, DeselectFavouriteHabboGroupEvent.class);
|
||||
this.registerHandler(Incoming.DeactivateGuildEvent, DeactivateGuildEvent.class);
|
||||
this.registerHandler(Incoming.GetForumsListEvent, GetForumsListEvent.class);
|
||||
this.registerHandler(Incoming.GetThreadsEvent, GetThreadsEvent.class);
|
||||
this.registerHandler(Incoming.GetForumStatsEvent, GetForumStatsEvent.class);
|
||||
this.registerHandler(Incoming.PostMessageEvent, PostMessageEvent.class);
|
||||
this.registerHandler(Incoming.UpdateForumSettingsEvent, UpdateForumSettingsEvent.class);
|
||||
this.registerHandler(Incoming.GetMessagesEvent, GetMessagesEvent.class);
|
||||
this.registerHandler(Incoming.ModerateMessageEvent, ModerateMessageEvent.class);
|
||||
this.registerHandler(Incoming.ModerateThreadEvent, ModerateThreadEvent.class);
|
||||
this.registerHandler(Incoming.UpdateThreadEvent, UpdateThreadEvent.class);
|
||||
this.registerHandler(Incoming.GetHabboGroupBadgesEvent, GetHabboGroupBadgesEvent.class);
|
||||
|
||||
// this.registerHandler(Incoming.GuildForumDataEvent, GuildForumModerateMessageEvent.class);
|
||||
// this.registerHandler(Incoming.GuildForumDataEvent, GuildForumModerateThreadEvent.class);
|
||||
@ -560,88 +560,88 @@ public class PacketManager {
|
||||
|
||||
void registerPets() throws Exception {
|
||||
this.registerHandler(Incoming.GetPetInfoEvent, GetPetInfoEvent.class);
|
||||
this.registerHandler(Incoming.RemovePetFromFlatEvent, PetPickupEvent.class);
|
||||
this.registerHandler(Incoming.RespectPetEvent, ScratchPetEvent.class);
|
||||
this.registerHandler(Incoming.GetPetCommandsEvent, RequestPetTrainingPanelEvent.class);
|
||||
this.registerHandler(Incoming.CustomizePetWithFurniEvent, PetUseItemEvent.class);
|
||||
this.registerHandler(Incoming.TogglePetRidingPermissionEvent, PetRideSettingsEvent.class);
|
||||
this.registerHandler(Incoming.MountPetEvent, PetRideEvent.class);
|
||||
this.registerHandler(Incoming.RemoveSaddleFromPetEvent, HorseRemoveSaddleEvent.class);
|
||||
this.registerHandler(Incoming.TogglePetBreedingPermissionEvent, ToggleMonsterplantBreedableEvent.class);
|
||||
this.registerHandler(Incoming.CompostPlantEvent, CompostMonsterplantEvent.class);
|
||||
this.registerHandler(Incoming.BreedPetsEvent, BreedMonsterplantsEvent.class);
|
||||
this.registerHandler(Incoming.RemovePetFromFlatEvent, RemovePetFromFlatEvent.class);
|
||||
this.registerHandler(Incoming.RespectPetEvent, RespectPetEvent.class);
|
||||
this.registerHandler(Incoming.GetPetCommandsEvent, GetPetCommandsEvent.class);
|
||||
this.registerHandler(Incoming.CustomizePetWithFurniEvent, CustomizePetWithFurniEvent.class);
|
||||
this.registerHandler(Incoming.TogglePetRidingPermissionEvent, TogglePetRidingPermissionEvent.class);
|
||||
this.registerHandler(Incoming.MountPetEvent, MountPetEvent.class);
|
||||
this.registerHandler(Incoming.RemoveSaddleFromPetEvent, RemoveSaddleFromPetEvent.class);
|
||||
this.registerHandler(Incoming.TogglePetBreedingPermissionEvent, TogglePetBreedingPermissionEvent.class);
|
||||
this.registerHandler(Incoming.CompostPlantEvent, CompostPlantEvent.class);
|
||||
this.registerHandler(Incoming.BreedPetsEvent, BreedPetsEvent.class);
|
||||
this.registerHandler(Incoming.MovePetEvent, MovePetEvent.class);
|
||||
this.registerHandler(Incoming.OpenPetPackageEvent, PetPackageNameEvent.class);
|
||||
this.registerHandler(Incoming.CancelPetBreedingEvent, StopBreedingEvent.class);
|
||||
this.registerHandler(Incoming.OpenPetPackageEvent, OpenPetPackageEvent.class);
|
||||
this.registerHandler(Incoming.CancelPetBreedingEvent, CancelPetBreedingEvent.class);
|
||||
this.registerHandler(Incoming.ConfirmPetBreedingEvent, ConfirmPetBreedingEvent.class);
|
||||
}
|
||||
|
||||
void registerWired() throws Exception {
|
||||
this.registerHandler(Incoming.UpdateTriggerEvent, WiredTriggerSaveDataEvent.class);
|
||||
this.registerHandler(Incoming.UpdateActionEvent, WiredEffectSaveDataEvent.class);
|
||||
this.registerHandler(Incoming.UpdateConditionEvent, WiredConditionSaveDataEvent.class);
|
||||
this.registerHandler(Incoming.ApplySnapshotEvent, WiredApplySetConditionsEvent.class);
|
||||
this.registerHandler(Incoming.UpdateTriggerEvent, UpdateTriggerEvent.class);
|
||||
this.registerHandler(Incoming.UpdateActionEvent, UpdateActionEvent.class);
|
||||
this.registerHandler(Incoming.UpdateConditionEvent, UpdateConditionEvent.class);
|
||||
this.registerHandler(Incoming.ApplySnapshotEvent, ApplySnapshotEvent.class);
|
||||
}
|
||||
|
||||
void registerUnknown() throws Exception {
|
||||
this.registerHandler(Incoming.GetResolutionAchievementsEvent, RequestResolutionEvent.class);
|
||||
this.registerHandler(Incoming.GetTalentTrackEvent, RequestTalentTrackEvent.class);
|
||||
this.registerHandler(Incoming.GetResolutionAchievementsEvent, GetResolutionAchievementsEvent.class);
|
||||
this.registerHandler(Incoming.GetTalentTrackEvent, GetTalentTrackEvent.class);
|
||||
this.registerHandler(Incoming.GetBadgePointLimitsEvent, GetBadgePointLimitsEvent.class);
|
||||
this.registerHandler(Incoming.GetCfhStatusEvent, MySanctionStatusEvent.class);
|
||||
this.registerHandler(Incoming.GetCfhStatusEvent, GetCfhStatusEvent.class);
|
||||
}
|
||||
|
||||
void registerFloorPlanEditor() throws Exception {
|
||||
this.registerHandler(Incoming.UpdateFloorPropertiesEvent, FloorPlanEditorSaveEvent.class);
|
||||
this.registerHandler(Incoming.GetOccupiedTilesEvent, FloorPlanEditorRequestBlockedTilesEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomEntryTileEvent, FloorPlanEditorRequestDoorSettingsEvent.class);
|
||||
this.registerHandler(Incoming.UpdateFloorPropertiesEvent, UpdateFloorPropertiesEvent.class);
|
||||
this.registerHandler(Incoming.GetOccupiedTilesEvent, GetOccupiedTilesEvent.class);
|
||||
this.registerHandler(Incoming.GetRoomEntryTileEvent, GetRoomEntryTileEvent.class);
|
||||
}
|
||||
|
||||
void registerAchievements() throws Exception {
|
||||
this.registerHandler(Incoming.GetAchievementsEvent, RequestAchievementsEvent.class);
|
||||
this.registerHandler(Incoming.GetAchievementsEvent, GetAchievementsEvent.class);
|
||||
this.registerHandler(Incoming.RequestAchievementConfigurationEvent, RequestAchievementConfigurationEvent.class);
|
||||
}
|
||||
|
||||
void registerGuides() throws Exception {
|
||||
this.registerHandler(Incoming.GuideSessionOnDutyUpdateEvent, RequestGuideToolEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionCreateEvent, RequestGuideAssistanceEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionIsTypingEvent, GuideUserTypingEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionReportEvent, GuideReportHelperEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionFeedbackEvent, GuideRecommendHelperEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionMessageEvent, GuideUserMessageEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionRequesterCancelsEvent, GuideCancelHelpRequestEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionGuideDecidesEvent, GuideHandleHelpRequestEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionInviteRequesterEvent, GuideInviteUserEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionGetRequesterRoomEvent, GuideVisitUserEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionResolvedEvent, GuideCloseHelpRequestEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionOnDutyUpdateEvent, GuideSessionOnDutyUpdateEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionCreateEvent, GuideSessionCreateEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionIsTypingEvent, GuideSessionIsTypingEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionReportEvent, GuideSessionReportEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionFeedbackEvent, GuideSessionFeedbackEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionMessageEvent, GuideSessionMessageEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionRequesterCancelsEvent, GuideSessionRequesterCancelsEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionGuideDecidesEvent, GuideSessionGuideDecidesEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionInviteRequesterEvent, GuideSessionInviteRequesterEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionGetRequesterRoomEvent, GuideSessionGetRequesterRoomEvent.class);
|
||||
this.registerHandler(Incoming.GuideSessionResolvedEvent, GuideSessionResolvedEvent.class);
|
||||
|
||||
this.registerHandler(Incoming.ChatReviewGuideDetachedEvent, GuardianNoUpdatesWantedEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewGuideDecidesOnOfferEvent, GuardianAcceptRequestEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewGuideVoteEvent, GuardianVoteEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewGuideDetachedEvent, ChatReviewGuideDetachedEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewGuideDecidesOnOfferEvent, ChatReviewGuideDecidesOnOfferEvent.class);
|
||||
this.registerHandler(Incoming.ChatReviewGuideVoteEvent, ChatReviewGuideVoteEvent.class);
|
||||
}
|
||||
|
||||
void registerCrafting() throws Exception {
|
||||
this.registerHandler(Incoming.GetCraftingRecipeEvent, RequestCraftingRecipesEvent.class);
|
||||
this.registerHandler(Incoming.GetCraftableProductsEvent, CraftingAddRecipeEvent.class);
|
||||
this.registerHandler(Incoming.CraftEvent, CraftingCraftItemEvent.class);
|
||||
this.registerHandler(Incoming.CraftSecretEvent, CraftingCraftSecretEvent.class);
|
||||
this.registerHandler(Incoming.GetCraftingRecipesAvailableEvent, RequestCraftingRecipesAvailableEvent.class);
|
||||
this.registerHandler(Incoming.GetCraftingRecipeEvent, GetCraftingRecipeEvent.class);
|
||||
this.registerHandler(Incoming.GetCraftableProductsEvent, GetCraftableProductsEvent.class);
|
||||
this.registerHandler(Incoming.CraftEvent, CraftEvent.class);
|
||||
this.registerHandler(Incoming.CraftSecretEvent, CraftSecretEvent.class);
|
||||
this.registerHandler(Incoming.GetCraftingRecipesAvailableEvent, GetCraftingRecipesAvailableEvent.class);
|
||||
}
|
||||
|
||||
void registerCamera() throws Exception {
|
||||
this.registerHandler(Incoming.RenderRoomEvent, CameraRoomPictureEvent.class);
|
||||
this.registerHandler(Incoming.RenderRoomEvent, RenderRoomEvent.class);
|
||||
this.registerHandler(Incoming.RequestCameraConfigurationEvent, RequestCameraConfigurationEvent.class);
|
||||
this.registerHandler(Incoming.PurchasePhotoEvent, CameraPurchaseEvent.class);
|
||||
this.registerHandler(Incoming.RenderRoomThumbnailEvent, CameraRoomThumbnailEvent.class);
|
||||
this.registerHandler(Incoming.PublishPhotoEvent, CameraPublishToWebEvent.class);
|
||||
this.registerHandler(Incoming.PurchasePhotoEvent, PurchasePhotoEvent.class);
|
||||
this.registerHandler(Incoming.RenderRoomThumbnailEvent, RenderRoomThumbnailEvent.class);
|
||||
this.registerHandler(Incoming.PublishPhotoEvent, PublishPhotoEvent.class);
|
||||
}
|
||||
|
||||
void registerGameCenter() throws Exception {
|
||||
this.registerHandler(Incoming.GetGameListEvent, GameCenterRequestGamesEvent.class);
|
||||
this.registerHandler(Incoming.GetGameStatusEvent, GameCenterRequestAccountStatusEvent.class);
|
||||
this.registerHandler(Incoming.JoinQueueEvent, GameCenterJoinGameEvent.class);
|
||||
this.registerHandler(Incoming.GetWeeklyGameRewardWinnersEvent, GameCenterLoadGameEvent.class);
|
||||
this.registerHandler(Incoming.GameUnloadedEvent, GameCenterLeaveGameEvent.class);
|
||||
this.registerHandler(Incoming.GetWeeklyGameRewardEvent, GameCenterEvent.class);
|
||||
this.registerHandler(Incoming.Game2GetAccountGameStatusEvent, GameCenterRequestGameStatusEvent.class);
|
||||
this.registerHandler(Incoming.GetGameListEvent, GetGameListEvent.class);
|
||||
this.registerHandler(Incoming.GetGameStatusEvent, GetGameStatusEvent.class);
|
||||
this.registerHandler(Incoming.JoinQueueEvent, JoinQueueEvent.class);
|
||||
this.registerHandler(Incoming.GetWeeklyGameRewardWinnersEvent, GetWeeklyGameRewardWinnersEvent.class);
|
||||
this.registerHandler(Incoming.GameUnloadedEvent, GameUnloadedEvent.class);
|
||||
this.registerHandler(Incoming.GetWeeklyGameRewardEvent, GetWeeklyGameRewardEvent.class);
|
||||
this.registerHandler(Incoming.Game2GetAccountGameStatusEvent, Game2GetAccountGameStatusEvent.class);
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.achievements;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.achievements.AchievementsComposer;
|
||||
|
||||
public class RequestAchievementsEvent extends MessageHandler {
|
||||
public class GetAchievementsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new AchievementsComposer(this.client.getHabbo()));
|
@ -9,7 +9,7 @@ import com.eu.habbo.messages.outgoing.generic.alerts.NotificationDialogMessageCo
|
||||
import com.eu.habbo.plugin.events.support.SupportUserAlertedEvent;
|
||||
import com.eu.habbo.plugin.events.support.SupportUserAlertedReason;
|
||||
|
||||
public class AmbassadorAlertCommandEvent extends MessageHandler {
|
||||
public class AmbassadorAlertEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (!this.client.getHabbo().hasPermission(Permission.ACC_AMBASSADOR)) {
|
@ -6,7 +6,7 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.rooms.RoomForwardMessageComposer;
|
||||
|
||||
public class AmbassadorVisitCommandEvent extends MessageHandler {
|
||||
public class FollowFriendEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (this.client.getHabbo().hasPermission(Permission.ACC_AMBASSADOR)) {
|
@ -13,8 +13,8 @@ import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class CameraPublishToWebEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CameraPublishToWebEvent.class);
|
||||
public class PublishPhotoEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(PublishPhotoEvent.class);
|
||||
|
||||
public static int CAMERA_PUBLISH_POINTS = 5;
|
||||
public static int CAMERA_PUBLISH_POINTS_TYPE = 0;
|
||||
@ -28,8 +28,8 @@ public class CameraPublishToWebEvent extends MessageHandler {
|
||||
if (habbo.getHabboInfo().getPhotoJSON().isEmpty()) return;
|
||||
if (!habbo.getHabboInfo().getPhotoJSON().contains(habbo.getHabboInfo().getPhotoTimestamp() + "")) return;
|
||||
|
||||
if (habbo.getHabboInfo().getCurrencyAmount(CameraPublishToWebEvent.CAMERA_PUBLISH_POINTS_TYPE) < CameraPublishToWebEvent.CAMERA_PUBLISH_POINTS) {
|
||||
this.client.sendResponse(new NotEnoughBalanceMessageComposer(false, true, CameraPublishToWebEvent.CAMERA_PUBLISH_POINTS));
|
||||
if (habbo.getHabboInfo().getCurrencyAmount(PublishPhotoEvent.CAMERA_PUBLISH_POINTS_TYPE) < PublishPhotoEvent.CAMERA_PUBLISH_POINTS) {
|
||||
this.client.sendResponse(new NotEnoughBalanceMessageComposer(false, true, PublishPhotoEvent.CAMERA_PUBLISH_POINTS));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ public class CameraPublishToWebEvent extends MessageHandler {
|
||||
statement.execute();
|
||||
|
||||
this.client.getHabbo().getHabboInfo().setWebPublishTimestamp(timestamp);
|
||||
this.client.getHabbo().givePoints(CameraPublishToWebEvent.CAMERA_PUBLISH_POINTS_TYPE, -CameraPublishToWebEvent.CAMERA_PUBLISH_POINTS);
|
||||
this.client.getHabbo().givePoints(PublishPhotoEvent.CAMERA_PUBLISH_POINTS_TYPE, -PublishPhotoEvent.CAMERA_PUBLISH_POINTS);
|
||||
|
||||
isOk = true;
|
||||
} catch (SQLException e) {
|
@ -10,20 +10,20 @@ import com.eu.habbo.messages.outgoing.inventory.UnseenItemsComposer;
|
||||
import com.eu.habbo.messages.outgoing.inventory.FurniListInvalidateComposer;
|
||||
import com.eu.habbo.plugin.events.users.UserPurchasePictureEvent;
|
||||
|
||||
public class CameraPurchaseEvent extends MessageHandler {
|
||||
public class PurchasePhotoEvent extends MessageHandler {
|
||||
public static int CAMERA_PURCHASE_CREDITS = 5;
|
||||
public static int CAMERA_PURCHASE_POINTS = 5;
|
||||
public static int CAMERA_PURCHASE_POINTS_TYPE = 0;
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (this.client.getHabbo().getHabboInfo().getCredits() < CameraPurchaseEvent.CAMERA_PURCHASE_CREDITS) {
|
||||
if (this.client.getHabbo().getHabboInfo().getCredits() < PurchasePhotoEvent.CAMERA_PURCHASE_CREDITS) {
|
||||
this.client.sendResponse(new NotEnoughBalanceMessageComposer(true, false, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.client.getHabbo().getHabboInfo().getCurrencyAmount(CameraPurchaseEvent.CAMERA_PURCHASE_POINTS_TYPE) < CameraPurchaseEvent.CAMERA_PURCHASE_POINTS) {
|
||||
this.client.sendResponse(new NotEnoughBalanceMessageComposer(false, true, CameraPurchaseEvent.CAMERA_PURCHASE_POINTS_TYPE));
|
||||
if (this.client.getHabbo().getHabboInfo().getCurrencyAmount(PurchasePhotoEvent.CAMERA_PURCHASE_POINTS_TYPE) < PurchasePhotoEvent.CAMERA_PURCHASE_POINTS) {
|
||||
this.client.sendResponse(new NotEnoughBalanceMessageComposer(false, true, PurchasePhotoEvent.CAMERA_PURCHASE_POINTS_TYPE));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -48,8 +48,8 @@ public class CameraPurchaseEvent extends MessageHandler {
|
||||
this.client.sendResponse(new UnseenItemsComposer(photoItem));
|
||||
this.client.sendResponse(new FurniListInvalidateComposer());
|
||||
|
||||
this.client.getHabbo().giveCredits(-CameraPurchaseEvent.CAMERA_PURCHASE_CREDITS);
|
||||
this.client.getHabbo().givePoints(CameraPurchaseEvent.CAMERA_PURCHASE_POINTS_TYPE, -CameraPurchaseEvent.CAMERA_PURCHASE_POINTS);
|
||||
this.client.getHabbo().giveCredits(-PurchasePhotoEvent.CAMERA_PURCHASE_CREDITS);
|
||||
this.client.getHabbo().givePoints(PurchasePhotoEvent.CAMERA_PURCHASE_POINTS_TYPE, -PurchasePhotoEvent.CAMERA_PURCHASE_POINTS);
|
||||
|
||||
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("CameraPhotoCount"));
|
||||
}
|
@ -6,7 +6,7 @@ import com.eu.habbo.networking.camera.CameraClient;
|
||||
import com.eu.habbo.networking.camera.messages.outgoing.CameraRenderImageComposer;
|
||||
import com.eu.habbo.util.crypto.ZIP;
|
||||
|
||||
public class CameraRoomPictureEvent extends MessageHandler {
|
||||
public class RenderRoomEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (!this.client.getHabbo().hasPermission("acc_camera")) {
|
@ -7,7 +7,7 @@ import com.eu.habbo.networking.camera.CameraClient;
|
||||
import com.eu.habbo.networking.camera.messages.outgoing.CameraRenderImageComposer;
|
||||
import com.eu.habbo.util.crypto.ZIP;
|
||||
|
||||
public class CameraRoomThumbnailEvent extends MessageHandler {
|
||||
public class RenderRoomThumbnailEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (!this.client.getHabbo().hasPermission("acc_camera")) {
|
@ -5,7 +5,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.ApproveNameMessageComposer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class CheckPetNameEvent extends MessageHandler {
|
||||
public class ApproveNameEvent extends MessageHandler {
|
||||
public static int PET_NAME_LENGTH_MINIMUM = Emulator.getConfig().getInt("hotel.pets.name.length.min");
|
||||
public static int PET_NAME_LENGTH_MAXIMUM = Emulator.getConfig().getInt("hotel.pets.name.length.max");
|
||||
|
@ -9,9 +9,9 @@ import com.eu.habbo.messages.outgoing.unknown.HabboClubExtendOfferMessageCompose
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class CatalogRequestClubDiscountEvent extends MessageHandler {
|
||||
public class BuildersClubPlaceWallItemEvent extends MessageHandler {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CatalogRequestClubDiscountEvent.class);
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(BuildersClubPlaceWallItemEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class RequestCatalogIndexEvent extends MessageHandler {
|
||||
public class BuildersClubQueryFurniCountEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
//this.client.sendResponse(new CatalogPagesListComposer(this.client.getHabbo(), "NORMAL"));
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.BundleDiscountRulesetMessageComposer;
|
||||
|
||||
public class RequestDiscountEvent extends MessageHandler {
|
||||
public class GetBundleDiscountRulesetEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new BundleDiscountRulesetMessageComposer());
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.BuildersClubFurniCountMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.catalog.CatalogPagesListComposer;
|
||||
|
||||
public class RequestCatalogModeEvent extends MessageHandler {
|
||||
public class GetCatalogIndexEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
|
@ -6,7 +6,7 @@ import com.eu.habbo.habbohotel.modtool.ScripterManager;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.CatalogPageMessageComposer;
|
||||
|
||||
public class RequestCatalogPageEvent extends MessageHandler {
|
||||
public class GetCatalogPageEvent extends MessageHandler {
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.ClubGiftInfoComposer;
|
||||
|
||||
public class RequestClubGiftsEvent extends MessageHandler {
|
||||
public class GetClubGiftInfo extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new ClubGiftInfoComposer(
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.HabboClubOffersMessageComposer;
|
||||
|
||||
public class RequestClubDataEvent extends MessageHandler {
|
||||
public class GetClubOffersEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new HabboClubOffersMessageComposer(this.client.getHabbo(), this.packet.readInt()));
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.GiftWrappingConfigurationComposer;
|
||||
|
||||
public class RequestGiftConfigurationEvent extends MessageHandler {
|
||||
public class GetGiftWrappingConfigurationEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new GiftWrappingConfigurationComposer());
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceConfigurationComposer;
|
||||
|
||||
public class RequestMarketplaceConfigEvent extends MessageHandler {
|
||||
public class GetMarketplaceConfigurationEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new MarketplaceConfigurationComposer());
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.items.SoundTrack;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.rooms.items.jukebox.OfficialSongIdMessageComposer;
|
||||
|
||||
public class JukeBoxRequestTrackCodeEvent extends MessageHandler {
|
||||
public class GetOfficialSongIdEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String songName = this.packet.readString();
|
@ -7,7 +7,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.ProductOfferComposer;
|
||||
import gnu.trove.iterator.TIntObjectIterator;
|
||||
|
||||
public class CatalogSearchedItemEvent extends MessageHandler {
|
||||
public class GetProductOfferEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int offerId = this.packet.readInt();
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.SellablePetPalettesMessageComposer;
|
||||
|
||||
public class RequestPetBreedsEvent extends MessageHandler {
|
||||
public class GetSellablePetPalettesEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String petName = this.packet.readString();
|
@ -8,7 +8,7 @@ import com.eu.habbo.messages.outgoing.rooms.items.jukebox.TraxSongInfoMessageCom
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class JukeBoxRequestTrackDataEvent extends MessageHandler {
|
||||
public class GetSongInfoEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int count = this.packet.readInt();
|
@ -35,8 +35,8 @@ import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class CatalogBuyItemAsGiftEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CatalogBuyItemAsGiftEvent.class);
|
||||
public class PurchaseFromCatalogAsGiftEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(PurchaseFromCatalogAsGiftEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -26,10 +26,10 @@ import gnu.trove.map.hash.THashMap;
|
||||
import gnu.trove.procedure.TObjectProcedure;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import static com.eu.habbo.messages.incoming.catalog.CheckPetNameEvent.PET_NAME_LENGTH_MAXIMUM;
|
||||
import static com.eu.habbo.messages.incoming.catalog.CheckPetNameEvent.PET_NAME_LENGTH_MINIMUM;
|
||||
import static com.eu.habbo.messages.incoming.catalog.ApproveNameEvent.PET_NAME_LENGTH_MAXIMUM;
|
||||
import static com.eu.habbo.messages.incoming.catalog.ApproveNameEvent.PET_NAME_LENGTH_MINIMUM;
|
||||
|
||||
public class CatalogBuyItemEvent extends MessageHandler {
|
||||
public class PurchaseFromCatalogEvent extends MessageHandler {
|
||||
|
||||
|
||||
@Override
|
@ -7,7 +7,7 @@ import com.eu.habbo.habbohotel.catalog.TargetOffer;
|
||||
import com.eu.habbo.habbohotel.users.cache.HabboOfferPurchase;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class PurchaseTargetOfferEvent extends MessageHandler {
|
||||
public class PurchaseTargetedOfferEvent extends MessageHandler {
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -14,9 +14,9 @@ import com.eu.habbo.messages.outgoing.users.ActivityPointsMessageComposer;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class CatalogBuyClubDiscountEvent extends MessageHandler {
|
||||
public class PurchaseVipMembershipExtensionEvent extends MessageHandler {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CatalogBuyClubDiscountEvent.class);
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(PurchaseVipMembershipExtensionEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -12,9 +12,9 @@ import gnu.trove.set.hash.THashSet;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class CatalogSelectClubGiftEvent extends MessageHandler {
|
||||
public class SelectClubGiftEvent extends MessageHandler {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CatalogSelectClubGiftEvent.class);
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SelectClubGiftEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog;
|
||||
import com.eu.habbo.habbohotel.users.cache.HabboOfferPurchase;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class TargetOfferStateEvent extends MessageHandler {
|
||||
public class SetTargetedOfferStateEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int id = this.packet.readInt();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.marketplace;
|
||||
import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class BuyItemEvent extends MessageHandler {
|
||||
public class BuyMarketplaceOfferEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int offerId = this.packet.readInt();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.marketplace;
|
||||
import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class TakeBackItemEvent extends MessageHandler {
|
||||
public class CancelMarketplaceOfferEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int offerId = this.packet.readInt();
|
@ -4,7 +4,7 @@ import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceCanMakeOfferResult;
|
||||
|
||||
public class RequestSellItemEvent extends MessageHandler {
|
||||
public class GetMarketplaceCanMakeOfferEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (MarketPlace.MARKETPLACE_ENABLED)
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.marketplace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceItemStatsComposer;
|
||||
|
||||
public class RequestItemInfoEvent extends MessageHandler {
|
||||
public class GetMarketplaceItemStatsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.packet.readInt();
|
@ -10,7 +10,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class RequestOffersEvent extends MessageHandler {
|
||||
public class GetMarketplaceOffersEvent extends MessageHandler {
|
||||
public final static Map<Integer, ServerMessage> cachedResults = new ConcurrentHashMap<>(0);
|
||||
|
||||
@Override
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.marketplace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketPlaceOwnOffersComposer;
|
||||
|
||||
public class RequestOwnItemsEvent extends MessageHandler {
|
||||
public class GetMarketplaceOwnOffersEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new MarketPlaceOwnOffersComposer(this.client.getHabbo()));
|
@ -10,8 +10,8 @@ import com.eu.habbo.messages.outgoing.catalog.marketplace.MarketplaceMakeOfferRe
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class SellItemEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SellItemEvent.class);
|
||||
public class MakeOfferEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(MakeOfferEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.marketplace;
|
||||
import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class RequestCreditsEvent extends MessageHandler {
|
||||
public class RedeemMarketplaceOfferCreditsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
MarketPlace.getCredits(this.client);
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.recycler;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.RecyclerPrizesComposer;
|
||||
|
||||
public class RequestRecyclerLogicEvent extends MessageHandler {
|
||||
public class GetRecyclerPrizesEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new RecyclerPrizesComposer());
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.catalog.recycler;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.RecyclerStatusComposer;
|
||||
|
||||
public class ReloadRecyclerEvent extends MessageHandler {
|
||||
public class GetRecyclerStatusEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new RecyclerStatusComposer());
|
@ -14,7 +14,7 @@ import com.eu.habbo.messages.outgoing.rooms.items.RemoveFloorItemComposer;
|
||||
import com.eu.habbo.messages.outgoing.rooms.users.WhisperMessageComposer;
|
||||
import com.eu.habbo.threading.runnables.OpenGift;
|
||||
|
||||
public class OpenRecycleBoxEvent extends MessageHandler {
|
||||
public class PresentOpenEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
Room room = this.client.getHabbo().getHabboInfo().getCurrentRoom();
|
@ -15,7 +15,7 @@ import com.eu.habbo.threading.runnables.QueryDeleteHabboItem;
|
||||
import com.eu.habbo.threading.runnables.ShutdownEmulator;
|
||||
import gnu.trove.set.hash.THashSet;
|
||||
|
||||
public class RecycleEvent extends MessageHandler {
|
||||
public class RecycleItemsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (ShutdownEmulator.timestamp > 0) {
|
@ -17,7 +17,7 @@ import gnu.trove.map.hash.TIntObjectHashMap;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class CraftingCraftItemEvent extends MessageHandler {
|
||||
public class CraftEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int craftingTable = this.packet.readInt();
|
||||
@ -61,7 +61,7 @@ public class CraftingCraftItemEvent extends MessageHandler {
|
||||
this.client.sendResponse(new UnseenItemsComposer(rewardItem));
|
||||
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("Atcg"));
|
||||
toRemove.forEachValue(object -> {
|
||||
CraftingCraftItemEvent.this.client.sendResponse(new FurniListRemoveComposer(object.getGiftAdjustedId()));
|
||||
CraftEvent.this.client.sendResponse(new FurniListRemoveComposer(object.getGiftAdjustedId()));
|
||||
return true;
|
||||
});
|
||||
this.client.sendResponse(new FurniListInvalidateComposer());
|
@ -19,7 +19,7 @@ import gnu.trove.set.hash.THashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class CraftingCraftSecretEvent extends MessageHandler {
|
||||
public class CraftSecretEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int altarId = this.packet.readInt();
|
@ -6,7 +6,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.catalog.LimitedEditionSoldOutComposer;
|
||||
import com.eu.habbo.messages.outgoing.crafting.CraftingRecipeComposer;
|
||||
|
||||
public class CraftingAddRecipeEvent extends MessageHandler {
|
||||
public class GetCraftableProductsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String recipeName = this.packet.readString();
|
@ -6,7 +6,7 @@ import com.eu.habbo.habbohotel.users.HabboItem;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.crafting.CraftableProductsComposer;
|
||||
|
||||
public class RequestCraftingRecipesEvent extends MessageHandler {
|
||||
public class GetCraftingRecipeEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int itemId = this.packet.readInt();
|
@ -11,7 +11,7 @@ import gnu.trove.map.hash.THashMap;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class RequestCraftingRecipesAvailableEvent extends MessageHandler {
|
||||
public class GetCraftingRecipesAvailableEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int altarId = this.packet.readInt();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.events.calendar;
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class AdventCalendarOpenDayEvent extends MessageHandler {
|
||||
public class OpenCampaignCalendarDoorAsStaffEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String campaignName = this.packet.readString();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.events.calendar;
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class AdventCalendarForceOpenEvent extends MessageHandler {
|
||||
public class OpenCampaignCalendarDoorEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String campaignName = this.packet.readString();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.floorplaneditor;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.floorplaneditor.RoomOccupiedTilesMessageComposer;
|
||||
|
||||
public class FloorPlanEditorRequestBlockedTilesEvent extends MessageHandler {
|
||||
public class GetOccupiedTilesEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() == null)
|
@ -4,7 +4,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.floorplaneditor.RoomEntryTileMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.rooms.RoomFloorThicknessUpdatedComposer;
|
||||
|
||||
public class FloorPlanEditorRequestDoorSettingsEvent extends MessageHandler {
|
||||
public class GetRoomEntryTileEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (this.client.getHabbo().getHabboInfo().getCurrentRoom() == null)
|
@ -14,7 +14,7 @@ import gnu.trove.set.hash.THashSet;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class FloorPlanEditorSaveEvent extends MessageHandler {
|
||||
public class UpdateFloorPropertiesEvent extends MessageHandler {
|
||||
public static int MAXIMUM_FLOORPLAN_WIDTH_LENGTH = 64;
|
||||
public static int MAXIMUM_FLOORPLAN_SIZE = 64 * 64;
|
||||
|
@ -16,8 +16,8 @@ import java.sql.SQLException;
|
||||
|
||||
import static com.eu.habbo.habbohotel.users.HabboManager.getOfflineHabboInfo;
|
||||
|
||||
public class AcceptFriendRequestEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AcceptFriendRequestEvent.class);
|
||||
public class AcceptFriendEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AcceptFriendEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.friends;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class DeclineFriendRequestEvent extends MessageHandler {
|
||||
public class DeclineFriendEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
boolean all = this.packet.readBoolean();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.friends;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.friends.FriendRequestsComposer;
|
||||
|
||||
public class RequestFriendRequestsEvent extends MessageHandler {
|
||||
public class GetFriendRequestsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new FriendRequestsComposer(this.client.getHabbo()));
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.friends;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class RequestFriendsEvent extends MessageHandler {
|
||||
public class GetMOTDEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
|
@ -8,7 +8,7 @@ import gnu.trove.set.hash.THashSet;
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class SearchUserEvent extends MessageHandler {
|
||||
public class HabboSearchEvent extends MessageHandler {
|
||||
public static ConcurrentHashMap<String, THashSet<MessengerBuddy>> cachedResults = new ConcurrentHashMap<>();
|
||||
|
||||
@Override
|
@ -7,7 +7,7 @@ import com.eu.habbo.messages.outgoing.friends.MessengerInitComposer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class RequestInitFriendsEvent extends MessageHandler {
|
||||
public class MessengerInitEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
ArrayList<ServerMessage> messages = new ArrayList<>();
|
@ -16,8 +16,8 @@ import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
||||
public class FriendRequestEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FriendRequestEvent.class);
|
||||
public class RequestFriendEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(RequestFriendEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.messenger.MessengerBuddy;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.plugin.events.users.friends.UserFriendChatEvent;
|
||||
|
||||
public class FriendPrivateMessageEvent extends MessageHandler {
|
||||
public class SendMsgEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int userId = this.packet.readInt();
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.friends.RoomInviteComposer;
|
||||
|
||||
public class InviteFriendsEvent extends MessageHandler {
|
||||
public class SendRoomInviteEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
if (this.client.getHabbo().getHabboStats().allowTalk()) {
|
@ -5,7 +5,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.friends.UpdateFriendComposer;
|
||||
import com.eu.habbo.plugin.events.users.friends.UserRelationShipEvent;
|
||||
|
||||
public class ChangeRelationEvent extends MessageHandler {
|
||||
public class SetRelationshipStatusEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int userId = this.packet.readInt();
|
@ -10,7 +10,7 @@ import com.eu.habbo.messages.outgoing.friends.FollowFriendFailedComposer;
|
||||
import com.eu.habbo.messages.outgoing.rooms.RoomForwardMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.rooms.users.WhisperMessageComposer;
|
||||
|
||||
public class StalkFriendEvent extends MessageHandler {
|
||||
public class VisitUserEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int friendId = this.packet.readInt();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterGameComposer;
|
||||
|
||||
public class GameCenterRequestGameStatusEvent extends MessageHandler {
|
||||
public class Game2GetAccountGameStatusEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new GameCenterGameComposer(this.packet.readInt(), GameCenterGameComposer.OK));
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.basejump.UnloadGameMessageComposer;
|
||||
|
||||
public class GameCenterLeaveGameEvent extends MessageHandler {
|
||||
public class GameUnloadedEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new UnloadGameMessageComposer());
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.GameCenterAchievementsConfigurationComposer;
|
||||
|
||||
public class GameCenterRequestGamesEvent extends MessageHandler {
|
||||
public class GetGameListEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new GameCenterAchievementsConfigurationComposer());
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.Game2AccountGameStatusMessageComposer;
|
||||
|
||||
public class GameCenterRequestAccountStatusEvent extends MessageHandler {
|
||||
public class GetGameStatusEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new Game2AccountGameStatusMessageComposer(this.packet.readInt(), 10));
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GameCenterEvent extends MessageHandler {
|
||||
public class GetWeeklyGameRewardEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
}
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.gamecenter;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GameCenterLoadGameEvent extends MessageHandler {
|
||||
public class GetWeeklyGameRewardWinnersEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int gameId = this.packet.readInt();
|
@ -6,7 +6,7 @@ import com.eu.habbo.messages.outgoing.gamecenter.basejump.JoinedQueueMessageComp
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.basejump.LoadGameMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.gamecenter.basejump.LoadGameUrlMessageComposer;
|
||||
|
||||
public class GameCenterJoinGameEvent extends MessageHandler {
|
||||
public class JoinQueueEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int gameId = this.packet.readInt();
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.guardians;
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuardianAcceptRequestEvent extends MessageHandler {
|
||||
public class ChatReviewGuideDecidesOnOfferEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
Emulator.getGameEnvironment().getGuideManager().acceptTicket(this.client.getHabbo(), this.packet.readBoolean());
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.guardians;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuardianNoUpdatesWantedEvent extends MessageHandler {
|
||||
public class ChatReviewGuideDetachedEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
//TODO: Add dont care about ticket updates.
|
@ -7,8 +7,8 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class GuardianVoteEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(GuardianVoteEvent.class);
|
||||
public class ChatReviewGuideVoteEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ChatReviewGuideVoteEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionErrorMessageComposer;
|
||||
|
||||
public class RequestGuideAssistanceEvent extends MessageHandler {
|
||||
public class GuideSessionCreateEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int type = this.packet.readInt();
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuideRecommendHelperEvent extends MessageHandler {
|
||||
public class GuideSessionFeedbackEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
boolean recommend = this.packet.readBoolean();
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionRequesterRoomMessageComposer;
|
||||
|
||||
public class GuideVisitUserEvent extends MessageHandler {
|
||||
public class GuideSessionGetRequesterRoomEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByHelper(this.client.getHabbo());
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuideHandleHelpRequestEvent extends MessageHandler {
|
||||
public class GuideSessionGuideDecidesEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByHelper(this.client.getHabbo());
|
@ -6,7 +6,7 @@ import com.eu.habbo.messages.ServerMessage;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionInvitedToGuideRoomMessageComposer;
|
||||
|
||||
public class GuideInviteUserEvent extends MessageHandler {
|
||||
public class GuideSessionInviteRequesterEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByHelper(this.client.getHabbo());
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionPartnerIsTypingComposer;
|
||||
|
||||
public class GuideUserTypingEvent extends MessageHandler {
|
||||
public class GuideSessionIsTypingEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
boolean typing = this.packet.readBoolean();
|
@ -7,7 +7,7 @@ import com.eu.habbo.messages.ServerMessage;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionMessageMessageComposer;
|
||||
|
||||
public class GuideUserMessageEvent extends MessageHandler {
|
||||
public class GuideSessionMessageEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByHabbo(this.client.getHabbo());
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.permissions.Permission;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideOnDutyStatusMessageComposer;
|
||||
|
||||
public class RequestGuideToolEvent extends MessageHandler {
|
||||
public class GuideSessionOnDutyUpdateEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
boolean onDuty = this.packet.readBoolean();
|
@ -10,7 +10,7 @@ import com.eu.habbo.messages.outgoing.guides.GuideSessionDetachedMessageComposer
|
||||
import com.eu.habbo.messages.outgoing.guides.GuideSessionEndedMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.modtool.CallForHelpResultMessageComposer;
|
||||
|
||||
public class GuideReportHelperEvent extends MessageHandler {
|
||||
public class GuideSessionReportEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
String message = this.packet.readString();
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuideCancelHelpRequestEvent extends MessageHandler {
|
||||
public class GuideSessionRequesterCancelsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByNoob(this.client.getHabbo());
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.guides.GuideTour;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GuideCloseHelpRequestEvent extends MessageHandler {
|
||||
public class GuideSessionResolvedEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
GuideTour tour = Emulator.getGameEnvironment().getGuideManager().getGuideTourByHabbo(this.client.getHabbo());
|
@ -10,7 +10,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildMembershipUpdatedMessageComposer;
|
||||
import com.eu.habbo.plugin.events.guilds.GuildGivenAdminEvent;
|
||||
|
||||
public class GuildSetAdminEvent extends MessageHandler {
|
||||
public class AddAdminRightsToMemberEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -13,7 +13,7 @@ import com.eu.habbo.messages.outgoing.guilds.HabboGroupDetailsMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildMembershipRejectedMessageComposer;
|
||||
import com.eu.habbo.plugin.events.guilds.GuildAcceptedMembershipEvent;
|
||||
|
||||
public class GuildAcceptMembershipEvent extends MessageHandler {
|
||||
public class ApproveMembershipRequestEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -16,8 +16,8 @@ import com.eu.habbo.plugin.events.guilds.GuildPurchasedEvent;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class RequestGuildBuyEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(RequestGuildBuyEvent.class);
|
||||
public class CreateGuildEvent extends MessageHandler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CreateGuildEvent.class);
|
||||
|
||||
@Override
|
||||
public void handle() throws Exception {
|
@ -12,7 +12,7 @@ import com.eu.habbo.messages.outgoing.rooms.GetGuestRoomResultComposer;
|
||||
import com.eu.habbo.plugin.events.guilds.GuildDeletedEvent;
|
||||
import gnu.trove.set.hash.THashSet;
|
||||
|
||||
public class GuildDeleteEvent extends MessageHandler {
|
||||
public class DeactivateGuildEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -7,7 +7,7 @@ import com.eu.habbo.messages.outgoing.guilds.FavoriteMembershipUpdateMessageComp
|
||||
import com.eu.habbo.messages.outgoing.users.ExtendedProfileMessageComposer;
|
||||
import com.eu.habbo.plugin.events.guilds.GuildRemovedFavoriteEvent;
|
||||
|
||||
public class GuildRemoveFavoriteEvent extends MessageHandler {
|
||||
public class DeselectFavouriteHabboGroupEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -8,7 +8,7 @@ import gnu.trove.set.hash.THashSet;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RequestGuildBuyRoomsEvent extends MessageHandler {
|
||||
public class GetGuildCreationInfoEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
List<Room> rooms = Emulator.getGameEnvironment().getRoomManager().getRoomsForHabbo(this.client.getHabbo());
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guilds.Guild;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildEditInfoMessageComposer;
|
||||
|
||||
public class RequestGuildManageEvent extends MessageHandler {
|
||||
public class GetGuildEditInfoEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(this.packet.readInt());
|
@ -3,7 +3,7 @@ package com.eu.habbo.messages.incoming.guilds;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildEditorDataMessageComposer;
|
||||
|
||||
public class RequestGuildPartsEvent extends MessageHandler {
|
||||
public class GetGuildEditorDataEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
this.client.sendResponse(new GuildEditorDataMessageComposer());
|
@ -6,7 +6,7 @@ import com.eu.habbo.habbohotel.users.HabboItem;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildFurniContextMenuInfoMessageComposer;
|
||||
|
||||
public class RequestGuildFurniWidgetEvent extends MessageHandler {
|
||||
public class GetGuildFurniContextMenuInfoEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int itemId = this.packet.readInt();
|
@ -8,7 +8,7 @@ import com.eu.habbo.habbohotel.permissions.Permission;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildMembersComposer;
|
||||
|
||||
public class RequestGuildMembersEvent extends MessageHandler {
|
||||
public class GetGuildMembersEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int groupId = this.packet.readInt();
|
@ -6,7 +6,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildMembershipsMessageComposer;
|
||||
import gnu.trove.set.hash.THashSet;
|
||||
|
||||
public class RequestOwnGuildsEvent extends MessageHandler {
|
||||
public class GetGuildMembershipsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
THashSet<Guild> guilds = new THashSet<Guild>();
|
@ -2,7 +2,7 @@ package com.eu.habbo.messages.incoming.guilds;
|
||||
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
|
||||
public class GetHabboGuildBadgesMessageEvent extends MessageHandler {
|
||||
public class GetHabboGroupBadgesEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guilds.Guild;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.HabboGroupDetailsMessageComposer;
|
||||
|
||||
public class RequestGuildInfoEvent extends MessageHandler {
|
||||
public class GetHabboGroupDetailsEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -9,7 +9,7 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.GuildMemberFurniCountInHQMessageComposer;
|
||||
|
||||
public class GuildConfirmRemoveMemberEvent extends MessageHandler {
|
||||
public class GetMemberGuildItemCountEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
@ -8,7 +8,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.guilds.HabboGroupDetailsMessageComposer;
|
||||
import com.eu.habbo.messages.outgoing.guilds.HabboGroupJoinFailedMessageComposer;
|
||||
|
||||
public class RequestGuildJoinEvent extends MessageHandler {
|
||||
public class JoinHabboGroupEvent extends MessageHandler {
|
||||
@Override
|
||||
public void handle() throws Exception {
|
||||
int guildId = this.packet.readInt();
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user