mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Show pending membership requests to admins
This commit is contained in:
parent
430a86701e
commit
f2b2fc8d99
@ -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)));
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user