From bb408070608a6e42b35ba137e72e8e5f97cd0c6b Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Mon, 29 Apr 2019 05:28:55 +0100 Subject: [PATCH] Updated Build Number to 2.0. Added catalogue check for the Group Forum furniture. --- pom.xml | 2 +- src/main/java/com/eu/habbo/Emulator.java | 4 ++-- .../habbohotel/catalog/CatalogManager.java | 19 ++++++++++++++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 59fd967f..74543bbf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.eu.habbo Habbo - 1.16.0 + 2.0.0 UTF-8 diff --git a/src/main/java/com/eu/habbo/Emulator.java b/src/main/java/com/eu/habbo/Emulator.java index 8d874727..905ae9e7 100644 --- a/src/main/java/com/eu/habbo/Emulator.java +++ b/src/main/java/com/eu/habbo/Emulator.java @@ -30,10 +30,10 @@ import java.util.Random; public final class Emulator { - public final static int MAJOR = 1; + public final static int MAJOR = 2; - public final static int MINOR = 16; + public final static int MINOR = 0; public final static int BUILD = 0; diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java index 6458502e..1997b0dc 100644 --- a/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/CatalogManager.java @@ -1227,7 +1227,24 @@ public class CatalogManager Emulator.getThreading().run(habboItem); Emulator.getGameEnvironment().getGuildManager().setGuild(habboItem, guildId); itemsList.add(habboItem); - } else if (baseItem.getInteractionType().getType() == InteractionMusicDisc.class) + + if(baseItem.getName().equals("guild_forum")) { + Emulator.getGameEnvironment().getGuildManager().getGuild(guildId).setForum(true); + Emulator.getGameEnvironment().getGuildManager().getGuild(guildId).needsUpdate = true; + Emulator.getGameEnvironment().getGuildForumManager().addGuildForum(guildId); + { + try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE guilds SET forum = '1' WHERE id = ?")) + + { + statement.setInt(1, guildId); + statement.execute(); + } + } + + } + + } + else if (baseItem.getInteractionType().getType() == InteractionMusicDisc.class) { SoundTrack track = Emulator.getGameEnvironment().getItemManager().getSoundTrack(item.getExtradata());