Add club only check functionality to CatalogManager

This commit is contained in:
Harmonic 2021-02-11 23:35:57 +00:00
parent 3c18b060cc
commit ecd1bf30c1

View File

@ -650,9 +650,11 @@ public class CatalogManager {
@Override
public boolean execute(CatalogPage object) {
if (object.getRank() <= habbo.getHabboInfo().getRank().getId() && object.visible) {
if (object.isClubOnly() && !habbo.getHabboStats().hasActiveClub()) {
return false;
}
pages.add(object);
}
return true;
}
});