Commit ecd1bf30 authored by Harmonic's avatar Harmonic

Add club only check functionality to CatalogManager

parent 3c18b060
Pipeline #1780 passed with stage
in 14 seconds
......@@ -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;
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment