mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Check guild membership
This commit is contained in:
parent
ff021608f5
commit
db14789d6b
@ -1019,6 +1019,9 @@ public class CatalogManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
||||||
|
|
||||||
|
if (guild != null && Emulator.getGameEnvironment().getGuildManager().getGuildMember(guild, habbo) != null) {
|
||||||
InteractionGuildFurni habboItem = (InteractionGuildFurni) Emulator.getGameEnvironment().getItemManager().createItem(habbo.getClient().getHabbo().getHabboInfo().getId(), baseItem, limitedStack, limitedNumber, extradata);
|
InteractionGuildFurni habboItem = (InteractionGuildFurni) Emulator.getGameEnvironment().getItemManager().createItem(habbo.getClient().getHabbo().getHabboInfo().getId(), baseItem, limitedStack, limitedNumber, extradata);
|
||||||
habboItem.setExtradata("");
|
habboItem.setExtradata("");
|
||||||
habboItem.needsUpdate(true);
|
habboItem.needsUpdate(true);
|
||||||
@ -1028,14 +1031,11 @@ public class CatalogManager {
|
|||||||
itemsList.add(habboItem);
|
itemsList.add(habboItem);
|
||||||
|
|
||||||
if (baseItem.getName().equals("guild_forum")) {
|
if (baseItem.getName().equals("guild_forum")) {
|
||||||
Guild guild = Emulator.getGameEnvironment().getGuildManager().getGuild(guildId);
|
|
||||||
if (guild != null) {
|
|
||||||
guild.setForum(true);
|
guild.setForum(true);
|
||||||
guild.needsUpdate = true;
|
guild.needsUpdate = true;
|
||||||
guild.run();
|
guild.run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (baseItem.getInteractionType().getType() == InteractionMusicDisc.class) {
|
} else if (baseItem.getInteractionType().getType() == InteractionMusicDisc.class) {
|
||||||
SoundTrack track = Emulator.getGameEnvironment().getItemManager().getSoundTrack(item.getExtradata());
|
SoundTrack track = Emulator.getGameEnvironment().getItemManager().getSoundTrack(item.getExtradata());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user