mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Refactored all outgoing composer names beginning with G
This commit is contained in:
parent
9e5877d9c4
commit
da1226b083
@ -220,7 +220,7 @@ public class Bot implements Runnable {
|
|||||||
this.room.botChat(new ChatMessageComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
this.room.botChat(new ChatMessageComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
||||||
|
|
||||||
if (message.equals("o/") || message.equals("_o/")) {
|
if (message.equals("o/") || message.equals("_o/")) {
|
||||||
this.room.sendComposer(new RoomUserActionComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new ExpressionMessageComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -235,7 +235,7 @@ public class Bot implements Runnable {
|
|||||||
this.room.botChat(new RoomUserShoutComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
this.room.botChat(new RoomUserShoutComposer(new RoomChatMessage(event.message, this.roomUnit, RoomChatMessageBubbles.getBubble(this.getBubbleId()))).compose());
|
||||||
|
|
||||||
if (message.equals("o/") || message.equals("_o/")) {
|
if (message.equals("o/") || message.equals("_o/")) {
|
||||||
this.room.sendComposer(new RoomUserActionComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new ExpressionMessageComposer(this.roomUnit, RoomUserAction.WAVE).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ import com.eu.habbo.habbohotel.rooms.RoomTile;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserActionComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ExpressionMessageComposer;
|
||||||
import com.eu.habbo.threading.runnables.BattleBanzaiTilesFlicker;
|
import com.eu.habbo.threading.runnables.BattleBanzaiTilesFlicker;
|
||||||
import gnu.trove.map.hash.THashMap;
|
import gnu.trove.map.hash.THashMap;
|
||||||
import gnu.trove.set.hash.THashSet;
|
import gnu.trove.set.hash.THashSet;
|
||||||
@ -193,7 +193,7 @@ public class BattleBanzaiGame extends Game {
|
|||||||
if (!singleTeamGame) {
|
if (!singleTeamGame) {
|
||||||
for (GamePlayer player : winningTeam.getMembers()) {
|
for (GamePlayer player : winningTeam.getMembers()) {
|
||||||
if (player.getScoreAchievementValue() > 0) {
|
if (player.getScoreAchievementValue() > 0) {
|
||||||
this.room.sendComposer(new RoomUserActionComposer(player.getHabbo().getRoomUnit(), RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new ExpressionMessageComposer(player.getHabbo().getRoomUnit(), RoomUserAction.WAVE).compose());
|
||||||
AchievementManager.progressAchievement(player.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("BattleBallWinner"));
|
AchievementManager.progressAchievement(player.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("BattleBallWinner"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||||||
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserActionComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ExpressionMessageComposer;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ public class FootballGame extends Game {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.room.sendComposer(new RoomUserActionComposer(kicker, RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new ExpressionMessageComposer(kicker, RoomUserAction.WAVE).compose());
|
||||||
|
|
||||||
for (Map.Entry<Integer, InteractionFootballScoreboard> scoreBoard : this.room.getRoomSpecialTypes().getFootballScoreboards(team).entrySet()) {
|
for (Map.Entry<Integer, InteractionFootballScoreboard> scoreBoard : this.room.getRoomSpecialTypes().getFootballScoreboards(team).entrySet()) {
|
||||||
scoreBoard.getValue().changeScore(1);
|
scoreBoard.getValue().changeScore(1);
|
||||||
|
@ -15,7 +15,7 @@ import com.eu.habbo.habbohotel.rooms.RoomTile;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserActionComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ExpressionMessageComposer;
|
||||||
import com.eu.habbo.plugin.EventHandler;
|
import com.eu.habbo.plugin.EventHandler;
|
||||||
import com.eu.habbo.plugin.events.emulator.EmulatorConfigUpdatedEvent;
|
import com.eu.habbo.plugin.events.emulator.EmulatorConfigUpdatedEvent;
|
||||||
import com.eu.habbo.threading.runnables.freeze.FreezeClearEffects;
|
import com.eu.habbo.threading.runnables.freeze.FreezeClearEffects;
|
||||||
@ -290,7 +290,7 @@ public class FreezeGame extends Game {
|
|||||||
if (p.getScoreAchievementValue() > 0) {
|
if (p.getScoreAchievementValue() > 0) {
|
||||||
if (team.equals(winningTeam)) {
|
if (team.equals(winningTeam)) {
|
||||||
AchievementManager.progressAchievement(p.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("FreezeWinner"), p.getScoreAchievementValue());
|
AchievementManager.progressAchievement(p.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("FreezeWinner"), p.getScoreAchievementValue());
|
||||||
this.room.sendComposer(new RoomUserActionComposer(p.getHabbo().getRoomUnit(), RoomUserAction.WAVE).compose());
|
this.room.sendComposer(new ExpressionMessageComposer(p.getHabbo().getRoomUnit(), RoomUserAction.WAVE).compose());
|
||||||
}
|
}
|
||||||
|
|
||||||
AchievementManager.progressAchievement(p.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("FreezePlayer"));
|
AchievementManager.progressAchievement(p.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("FreezePlayer"));
|
||||||
|
@ -466,7 +466,7 @@ public class Habbo implements Runnable {
|
|||||||
this.client.getHabbo().getHabboStats().respectPointsGiven++;
|
this.client.getHabbo().getHabboStats().respectPointsGiven++;
|
||||||
this.client.getHabbo().getHabboStats().respectPointsToGive--;
|
this.client.getHabbo().getHabboStats().respectPointsToGive--;
|
||||||
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserRespectComposer(target).compose());
|
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserRespectComposer(target).compose());
|
||||||
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new RoomUserActionComposer(this.client.getHabbo().getRoomUnit(), RoomUserAction.THUMB_UP).compose());
|
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new ExpressionMessageComposer(this.client.getHabbo().getRoomUnit(), RoomUserAction.THUMB_UP).compose());
|
||||||
|
|
||||||
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("RespectGiven"));
|
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("RespectGiven"));
|
||||||
AchievementManager.progressAchievement(target, Emulator.getGameEnvironment().getAchievementManager().getAchievement("RespectEarned"));
|
AchievementManager.progressAchievement(target, Emulator.getGameEnvironment().getAchievementManager().getAchievement("RespectEarned"));
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.guilds.Guild;
|
import com.eu.habbo.habbohotel.guilds.Guild;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.GuildFavoriteRoomUserUpdateComposer;
|
import com.eu.habbo.messages.outgoing.guilds.GuildFavoriteRoomUserUpdateComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserProfileComposer;
|
import com.eu.habbo.messages.outgoing.users.ExtendedProfileMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.guilds.GuildRemovedFavoriteEvent;
|
import com.eu.habbo.plugin.events.guilds.GuildRemovedFavoriteEvent;
|
||||||
|
|
||||||
public class GuildRemoveFavoriteEvent extends MessageHandler {
|
public class GuildRemoveFavoriteEvent extends MessageHandler {
|
||||||
@ -25,7 +25,7 @@ public class GuildRemoveFavoriteEvent extends MessageHandler {
|
|||||||
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new GuildFavoriteRoomUserUpdateComposer(this.client.getHabbo().getRoomUnit(), null).compose());
|
this.client.getHabbo().getHabboInfo().getCurrentRoom().sendComposer(new GuildFavoriteRoomUserUpdateComposer(this.client.getHabbo().getRoomUnit(), null).compose());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new UserProfileComposer(this.client.getHabbo(), this.client));
|
this.client.sendResponse(new ExtendedProfileMessageComposer(this.client.getHabbo(), this.client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guilds.Guild;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.GuildFavoriteRoomUserUpdateComposer;
|
import com.eu.habbo.messages.outgoing.guilds.GuildFavoriteRoomUserUpdateComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUsersAddGuildBadgeComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUsersAddGuildBadgeComposer;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserProfileComposer;
|
import com.eu.habbo.messages.outgoing.users.ExtendedProfileMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.guilds.GuildFavoriteSetEvent;
|
import com.eu.habbo.plugin.events.guilds.GuildFavoriteSetEvent;
|
||||||
|
|
||||||
public class GuildSetFavoriteEvent extends MessageHandler {
|
public class GuildSetFavoriteEvent extends MessageHandler {
|
||||||
@ -31,7 +31,7 @@ public class GuildSetFavoriteEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new UserProfileComposer(this.client.getHabbo(), this.client));
|
this.client.sendResponse(new ExtendedProfileMessageComposer(this.client.getHabbo(), this.client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.guilds.Guild;
|
import com.eu.habbo.habbohotel.guilds.Guild;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumListComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumListComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
import gnu.trove.set.hash.THashSet;
|
import gnu.trove.set.hash.THashSet;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -65,7 +65,7 @@ public class GuildForumListEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
LOGGER.error("Caught SQL exception", e);
|
LOGGER.error("Caught SQL exception", e);
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(500));
|
this.client.sendResponse(new ErrorReportComposer(500));
|
||||||
}
|
}
|
||||||
|
|
||||||
return guilds;
|
return guilds;
|
||||||
@ -89,7 +89,7 @@ public class GuildForumListEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
LOGGER.error("Caught SQL exception", e);
|
LOGGER.error("Caught SQL exception", e);
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(500));
|
this.client.sendResponse(new ErrorReportComposer(500));
|
||||||
}
|
}
|
||||||
|
|
||||||
return guilds;
|
return guilds;
|
||||||
|
@ -12,7 +12,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.PostUpdateMessageComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.PostUpdateMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
|
|
||||||
public class GuildForumModerateMessageEvent extends MessageHandler {
|
public class GuildForumModerateMessageEvent extends MessageHandler {
|
||||||
@ -27,13 +27,13 @@ public class GuildForumModerateMessageEvent extends MessageHandler {
|
|||||||
ForumThread thread = ForumThread.getById(threadId);
|
ForumThread thread = ForumThread.getById(threadId);
|
||||||
|
|
||||||
if (guild == null || thread == null) {
|
if (guild == null || thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ForumThreadComment comment = thread.getCommentById(messageId);
|
ForumThreadComment comment = thread.getCommentById(messageId);
|
||||||
if (comment == null) {
|
if (comment == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,19 +41,19 @@ public class GuildForumModerateMessageEvent extends MessageHandler {
|
|||||||
|
|
||||||
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
||||||
if (member == null) {
|
if (member == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(401));
|
this.client.sendResponse(new ErrorReportComposer(401));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isGuildAdministrator = (guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() || member.getRank().equals(GuildRank.ADMIN));
|
boolean isGuildAdministrator = (guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() || member.getRank().equals(GuildRank.ADMIN));
|
||||||
|
|
||||||
if (!isGuildAdministrator && !hasStaffPermissions) {
|
if (!isGuildAdministrator && !hasStaffPermissions) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == ForumThreadState.HIDDEN_BY_GUILD_ADMIN.getStateId() && !hasStaffPermissions) {
|
if (state == ForumThreadState.HIDDEN_BY_GUILD_ADMIN.getStateId() && !hasStaffPermissions) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadMessagesComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadMessagesComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
|
|
||||||
public class GuildForumModerateThreadEvent extends MessageHandler {
|
public class GuildForumModerateThreadEvent extends MessageHandler {
|
||||||
@ -28,7 +28,7 @@ public class GuildForumModerateThreadEvent extends MessageHandler {
|
|||||||
ForumThread thread = ForumThread.getById(threadId);
|
ForumThread thread = ForumThread.getById(threadId);
|
||||||
|
|
||||||
if (guild == null || thread == null) {
|
if (guild == null || thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,15 +38,15 @@ public class GuildForumModerateThreadEvent extends MessageHandler {
|
|||||||
|
|
||||||
|
|
||||||
if (member == null) {
|
if (member == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(401));
|
this.client.sendResponse(new ErrorReportComposer(401));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isGuildAdmin && !hasStaffPerms) {
|
if (!isGuildAdmin && !hasStaffPerms) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread.setState(ForumThreadState.fromValue(state)); // sets state as defined in the packet
|
thread.setState(ForumThreadState.fromValue(state)); // sets state as defined in the packet
|
||||||
|
thread.setAdminId(this.client.getHabbo().getHabboInfo().getId());
|
||||||
thread.run();
|
thread.run();
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
@ -10,7 +10,7 @@ import com.eu.habbo.habbohotel.permissions.Permission;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumAddCommentComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumAddCommentComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadMessagesComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadMessagesComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
|
|
||||||
public class GuildForumPostThreadEvent extends MessageHandler {
|
public class GuildForumPostThreadEvent extends MessageHandler {
|
||||||
@ -30,12 +30,12 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
||||||
|
|
||||||
if (guild == null) {
|
if (guild == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.length() < 10 || message.length() > 4000 || (threadId == 0 && (subject.length() < 10 || subject.length() > 120))) {
|
if (message.length() < 10 || message.length() > 4000 || (threadId == 0 && (subject.length() < 10 || subject.length() > 120))) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(400));
|
this.client.sendResponse(new ErrorReportComposer(400));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
|| (guild.canPostThreads().state == 2 && member != null && (member.getRank().type < GuildRank.MEMBER.type))
|
|| (guild.canPostThreads().state == 2 && member != null && (member.getRank().type < GuildRank.MEMBER.type))
|
||||||
|| (guild.canPostThreads().state == 3 && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId())
|
|| (guild.canPostThreads().state == 3 && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId())
|
||||||
|| isStaff)) {
|
|| isStaff)) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
thread = ForumThread.create(guild, this.client.getHabbo(), subject, message);
|
thread = ForumThread.create(guild, this.client.getHabbo(), subject, message);
|
||||||
|
|
||||||
if (thread == null) {
|
if (thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(500));
|
this.client.sendResponse(new ErrorReportComposer(500));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (thread == null) {
|
if (thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
|| (guild.canPostMessages().state == 2 && member != null && (member.getRank().type < GuildRank.MEMBER.type))
|
|| (guild.canPostMessages().state == 2 && member != null && (member.getRank().type < GuildRank.MEMBER.type))
|
||||||
|| (guild.canPostMessages().state == 3 && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId())
|
|| (guild.canPostMessages().state == 3 && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId())
|
||||||
|| isStaff)) {
|
|| isStaff)) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ public class GuildForumPostThreadEvent extends MessageHandler {
|
|||||||
thread.setPostsCount(thread.getPostsCount() + 1);
|
thread.setPostsCount(thread.getPostsCount() + 1);
|
||||||
this.client.sendResponse(new GuildForumAddCommentComposer(comment));
|
this.client.sendResponse(new GuildForumAddCommentComposer(comment));
|
||||||
} else {
|
} else {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(500));
|
this.client.sendResponse(new ErrorReportComposer(500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,7 +12,7 @@ import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.ThreadUpdatedMessageComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.ThreadUpdatedMessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
public class GuildForumThreadUpdateEvent extends MessageHandler {
|
public class GuildForumThreadUpdateEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -26,7 +26,7 @@ public class GuildForumThreadUpdateEvent extends MessageHandler {
|
|||||||
ForumThread thread = ForumThread.getById(threadId);
|
ForumThread thread = ForumThread.getById(threadId);
|
||||||
|
|
||||||
if (guild == null || thread == null) {
|
if (guild == null || thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,14 +34,14 @@ public class GuildForumThreadUpdateEvent extends MessageHandler {
|
|||||||
|
|
||||||
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
||||||
if (member == null) {
|
if (member == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(401));
|
this.client.sendResponse(new ErrorReportComposer(401));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isAdmin = (guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() || member.getRank().type < GuildRank.MEMBER.type);
|
boolean isAdmin = (guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() || member.getRank().type < GuildRank.MEMBER.type);
|
||||||
|
|
||||||
if ((guild.canModForum() == SettingsState.OWNER && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() && !isStaff) || (guild.canModForum() == SettingsState.ADMINS && !isAdmin && !isStaff)) {
|
if ((guild.canModForum() == SettingsState.OWNER && guild.getOwnerId() == this.client.getHabbo().getHabboInfo().getId() && !isStaff) || (guild.canModForum() == SettingsState.ADMINS && !isAdmin && !isStaff)) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guilds.Guild;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumThreadsComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
public class GuildForumThreadsEvent extends MessageHandler {
|
public class GuildForumThreadsEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -16,7 +16,7 @@ public class GuildForumThreadsEvent extends MessageHandler {
|
|||||||
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
||||||
|
|
||||||
if (guild == null) {
|
if (guild == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumCommentsComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumCommentsComposer;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ public class GuildForumThreadsMessagesEvent extends MessageHandler {
|
|||||||
ForumThread thread = ForumThread.getById(threadId);
|
ForumThread thread = ForumThread.getById(threadId);
|
||||||
boolean hasStaffPermissions = this.client.getHabbo().hasPermission(Permission.ACC_MODTOOL_TICKET_Q);
|
boolean hasStaffPermissions = this.client.getHabbo().hasPermission(Permission.ACC_MODTOOL_TICKET_Q);
|
||||||
if (guild == null || thread == null) {
|
if (guild == null || thread == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(guildId, this.client.getHabbo().getHabboInfo().getId());
|
||||||
|
@ -7,7 +7,7 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
|||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertComposer;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
import com.eu.habbo.messages.outgoing.generic.alerts.BubbleAlertKeys;
|
||||||
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
import com.eu.habbo.messages.outgoing.guilds.forums.GuildForumDataComposer;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
public class GuildForumUpdateSettingsEvent extends MessageHandler {
|
public class GuildForumUpdateSettingsEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -21,12 +21,12 @@ public class GuildForumUpdateSettingsEvent extends MessageHandler {
|
|||||||
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
||||||
|
|
||||||
if (guild == null) {
|
if (guild == null) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(404));
|
this.client.sendResponse(new ErrorReportComposer(404));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guild.getOwnerId() != this.client.getHabbo().getHabboInfo().getId()) {
|
if (guild.getOwnerId() != this.client.getHabbo().getHabboInfo().getId()) {
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(403));
|
this.client.sendResponse(new ErrorReportComposer(403));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.items.YoutubeManager;
|
|||||||
import com.eu.habbo.habbohotel.items.interactions.InteractionYoutubeTV;
|
import com.eu.habbo.habbohotel.items.interactions.InteractionYoutubeTV;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.items.youtube.YoutubeDisplayListComposer;
|
import com.eu.habbo.messages.outgoing.rooms.items.youtube.YoutubeDisplayListComposer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -29,7 +29,7 @@ public class YoutubeRequestPlaylists extends MessageHandler {
|
|||||||
|
|
||||||
if (playlists == null) {
|
if (playlists == null) {
|
||||||
LOGGER.error("No YouTube playlists set for base item #" + item.getBaseItem().getId());
|
LOGGER.error("No YouTube playlists set for base item #" + item.getBaseItem().getId());
|
||||||
this.client.sendResponse(new ConnectionErrorComposer(1000));
|
this.client.sendResponse(new ErrorReportComposer(1000));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.rooms.Room;
|
|||||||
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
import com.eu.habbo.habbohotel.rooms.RoomUserAction;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserActionComposer;
|
import com.eu.habbo.messages.outgoing.rooms.users.ExpressionMessageComposer;
|
||||||
import com.eu.habbo.plugin.events.users.UserIdleEvent;
|
import com.eu.habbo.plugin.events.users.UserIdleEvent;
|
||||||
|
|
||||||
public class RoomUserActionEvent extends MessageHandler {
|
public class RoomUserActionEvent extends MessageHandler {
|
||||||
@ -50,7 +50,7 @@ public class RoomUserActionEvent extends MessageHandler {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
room.sendComposer(new RoomUserActionComposer(habbo.getRoomUnit(), RoomUserAction.fromValue(action)).compose());
|
room.sendComposer(new ExpressionMessageComposer(habbo.getRoomUnit(), RoomUserAction.fromValue(action)).compose());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboManager;
|
import com.eu.habbo.habbohotel.users.HabboManager;
|
||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
import com.eu.habbo.messages.outgoing.users.UserProfileComposer;
|
import com.eu.habbo.messages.outgoing.users.ExtendedProfileMessageComposer;
|
||||||
|
|
||||||
public class RequestUserProfileEvent extends MessageHandler {
|
public class RequestUserProfileEvent extends MessageHandler {
|
||||||
@Override
|
@Override
|
||||||
@ -13,8 +13,8 @@ public class RequestUserProfileEvent extends MessageHandler {
|
|||||||
Habbo habbo = Emulator.getGameEnvironment().getHabboManager().getHabbo(habboId);
|
Habbo habbo = Emulator.getGameEnvironment().getHabboManager().getHabbo(habboId);
|
||||||
|
|
||||||
if (habbo != null)
|
if (habbo != null)
|
||||||
this.client.sendResponse(new UserProfileComposer(habbo, this.client));
|
this.client.sendResponse(new ExtendedProfileMessageComposer(habbo, this.client));
|
||||||
else
|
else
|
||||||
this.client.sendResponse(new UserProfileComposer(HabboManager.getOfflineHabboInfo(habboId), this.client));
|
this.client.sendResponse(new ExtendedProfileMessageComposer(HabboManager.getOfflineHabboInfo(habboId), this.client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
|||||||
import com.eu.habbo.messages.ServerMessage;
|
import com.eu.habbo.messages.ServerMessage;
|
||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
import gnu.trove.set.hash.THashSet;
|
import gnu.trove.set.hash.THashSet;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -161,7 +161,7 @@ public class GuildForumDataComposer extends MessageComposer {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return new ConnectionErrorComposer(500).compose();
|
return new ErrorReportComposer(500).compose();
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.response;
|
return this.response;
|
||||||
|
@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.guilds.forums.ForumThread;
|
|||||||
import com.eu.habbo.messages.ServerMessage;
|
import com.eu.habbo.messages.ServerMessage;
|
||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
import com.eu.habbo.messages.outgoing.handshake.ConnectionErrorComposer;
|
import com.eu.habbo.messages.outgoing.handshake.ErrorReportComposer;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -28,7 +28,7 @@ public class GuildForumThreadsComposer extends MessageComposer {
|
|||||||
try {
|
try {
|
||||||
threads = new ArrayList<>(ForumThread.getByGuildId(guild.getId()));
|
threads = new ArrayList<>(ForumThread.getByGuildId(guild.getId()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return new ConnectionErrorComposer(500).compose();
|
return new ErrorReportComposer(500).compose();
|
||||||
}
|
}
|
||||||
|
|
||||||
threads.sort(Comparator.comparingInt(o -> o.isPinned() ? Integer.MAX_VALUE : o.getUpdatedAt()));
|
threads.sort(Comparator.comparingInt(o -> o.isPinned() ? Integer.MAX_VALUE : o.getUpdatedAt()));
|
||||||
|
@ -4,18 +4,18 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class ConnectionErrorComposer extends MessageComposer {
|
public class ErrorReportComposer extends MessageComposer {
|
||||||
private final int messageId;
|
private final int messageId;
|
||||||
private final int errorCode;
|
private final int errorCode;
|
||||||
private final String timestamp;
|
private final String timestamp;
|
||||||
|
|
||||||
public ConnectionErrorComposer(int errorCode) {
|
public ErrorReportComposer(int errorCode) {
|
||||||
this.messageId = 0;
|
this.messageId = 0;
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
this.timestamp = "";
|
this.timestamp = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConnectionErrorComposer(int messageId, int errorCode, String timestamp) {
|
public ErrorReportComposer(int messageId, int errorCode, String timestamp) {
|
||||||
this.messageId = messageId;
|
this.messageId = messageId;
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
this.timestamp = timestamp;
|
this.timestamp = timestamp;
|
@ -6,11 +6,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class RoomUserActionComposer extends MessageComposer {
|
public class ExpressionMessageComposer extends MessageComposer {
|
||||||
private RoomUserAction action;
|
private RoomUserAction action;
|
||||||
private RoomUnit roomUnit;
|
private RoomUnit roomUnit;
|
||||||
|
|
||||||
public RoomUserActionComposer(RoomUnit roomUnit, RoomUserAction action) {
|
public ExpressionMessageComposer(RoomUnit roomUnit, RoomUserAction action) {
|
||||||
this.roomUnit = roomUnit;
|
this.roomUnit = roomUnit;
|
||||||
this.action = action;
|
this.action = action;
|
||||||
}
|
}
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class UnknownHintComposer extends MessageComposer {
|
public class ElementPointerMessageComposer extends MessageComposer {
|
||||||
private final String key;
|
private final String key;
|
||||||
|
|
||||||
public UnknownHintComposer(String key) {
|
public ElementPointerMessageComposer(String key) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
}
|
}
|
||||||
|
|
@ -4,12 +4,12 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class TalentTrackEmailVerifiedComposer extends MessageComposer {
|
public class EmailStatusResultComposer extends MessageComposer {
|
||||||
private final String email;
|
private final String email;
|
||||||
private final boolean unknownB1;
|
private final boolean unknownB1;
|
||||||
private final boolean unknownB2;
|
private final boolean unknownB2;
|
||||||
|
|
||||||
public TalentTrackEmailVerifiedComposer(String email, boolean unknownB1, boolean unknownB2) {
|
public EmailStatusResultComposer(String email, boolean unknownB1, boolean unknownB2) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
this.unknownB1 = unknownB1;
|
this.unknownB1 = unknownB1;
|
||||||
this.unknownB2 = unknownB2;
|
this.unknownB2 = unknownB2;
|
@ -4,11 +4,11 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class EpicPopupFrameComposer extends MessageComposer {
|
public class EpicPopupMessageComposer extends MessageComposer {
|
||||||
public static final String LIBRARY_URL = "${image.library.url}";
|
public static final String LIBRARY_URL = "${image.library.url}";
|
||||||
private final String assetURI;
|
private final String assetURI;
|
||||||
|
|
||||||
public EpicPopupFrameComposer(String assetURI) {
|
public EpicPopupMessageComposer(String assetURI) {
|
||||||
this.assetURI = assetURI;
|
this.assetURI = assetURI;
|
||||||
}
|
}
|
||||||
|
|
@ -4,10 +4,10 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||||
import com.eu.habbo.messages.outgoing.Outgoing;
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
||||||
|
|
||||||
public class UnknownGuildComposer3 extends MessageComposer {
|
public class ExtendedProfileChangedMessageComposer extends MessageComposer {
|
||||||
private final int userId;
|
private final int userId;
|
||||||
|
|
||||||
public UnknownGuildComposer3(int userId) {
|
public ExtendedProfileChangedMessageComposer(int userId) {
|
||||||
this.userId = userId;
|
this.userId = userId;
|
||||||
}
|
}
|
||||||
|
|
@ -21,19 +21,19 @@ import java.util.ArrayList;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class UserProfileComposer extends MessageComposer {
|
public class ExtendedProfileMessageComposer extends MessageComposer {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(UserProfileComposer.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(ExtendedProfileMessageComposer.class);
|
||||||
|
|
||||||
private final HabboInfo habboInfo;
|
private final HabboInfo habboInfo;
|
||||||
private Habbo habbo;
|
private Habbo habbo;
|
||||||
private GameClient viewer;
|
private GameClient viewer;
|
||||||
|
|
||||||
public UserProfileComposer(HabboInfo habboInfo, GameClient viewer) {
|
public ExtendedProfileMessageComposer(HabboInfo habboInfo, GameClient viewer) {
|
||||||
this.habboInfo = habboInfo;
|
this.habboInfo = habboInfo;
|
||||||
this.viewer = viewer;
|
this.viewer = viewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserProfileComposer(Habbo habbo, GameClient viewer) {
|
public ExtendedProfileMessageComposer(Habbo habbo, GameClient viewer) {
|
||||||
this.habbo = habbo;
|
this.habbo = habbo;
|
||||||
this.habboInfo = habbo.getHabboInfo();
|
this.habboInfo = habbo.getHabboInfo();
|
||||||
this.viewer = viewer;
|
this.viewer = viewer;
|
Loading…
x
Reference in New Issue
Block a user