mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Updated Build Number to 2.0. Added catalogue check for the Group Forum furniture.
This commit is contained in:
parent
c26abee6fa
commit
bb40807060
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.eu.habbo</groupId>
|
||||
<artifactId>Habbo</artifactId>
|
||||
<version>1.16.0</version>
|
||||
<version>2.0.0</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user