Show pending membership requests to admins

This commit is contained in:
Alejandro 2019-08-01 21:31:10 +03:00
parent 430a86701e
commit f2b2fc8d99
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public class RequestGuildMembersEvent extends MessageHandler {
boolean isAdmin = this.client.getHabbo().hasPermission("acc_guild_admin");
if (!isAdmin && this.client.getHabbo().getHabboStats().hasGuild(g.getId())) {
GuildMember member = Emulator.getGameEnvironment().getGuildManager().getGuildMember(g, this.client.getHabbo());
isAdmin = member != null && member.getRank().equals(GuildRank.ADMIN);
isAdmin = member != null && (member.getRank().equals(GuildRank.ADMIN) || member.getRank().equals(GuildRank.MOD));
}
this.client.sendResponse(new GuildMembersComposer(g, Emulator.getGameEnvironment().getGuildManager().getGuildMembers(g, pageId, levelId, query), this.client.getHabbo(), pageId, levelId, query, isAdmin, Emulator.getGameEnvironment().getGuildManager().getGuildMembersCount(g, pageId, levelId, query)));

View File

@ -52,7 +52,7 @@ public class GuildMembersComposer extends MessageComposer {
this.response.appendString(member.getRank().type < 3 && member.getRank().type > 0 ? cal.get(Calendar.DAY_OF_MONTH) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR) : "");
}
this.response.appendBoolean(this.isAdmin); //Is owner
this.response.appendBoolean(this.isAdmin);
this.response.appendInt(14);
this.response.appendInt(this.pageId);
this.response.appendInt(this.level);