Updated Build Number to 2.0. Added catalogue check for the Group Forum furniture.

This commit is contained in:
KrewsOrg 2019-04-29 05:28:55 +01:00
parent c26abee6fa
commit bb40807060
3 changed files with 21 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.eu.habbo</groupId> <groupId>com.eu.habbo</groupId>
<artifactId>Habbo</artifactId> <artifactId>Habbo</artifactId>
<version>1.16.0</version> <version>2.0.0</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -30,10 +30,10 @@ import java.util.Random;
public final class Emulator 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; public final static int BUILD = 0;

View File

@ -1227,7 +1227,24 @@ public class CatalogManager
Emulator.getThreading().run(habboItem); Emulator.getThreading().run(habboItem);
Emulator.getGameEnvironment().getGuildManager().setGuild(habboItem, guildId); Emulator.getGameEnvironment().getGuildManager().setGuild(habboItem, guildId);
itemsList.add(habboItem); 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()); SoundTrack track = Emulator.getGameEnvironment().getItemManager().getSoundTrack(item.getExtradata());