return this.cachedPermissions.get(worldName);
}
protected int getPromoterRankAndCheck(PermissionUser promoter, String ladderName) throws RankingException {
if (!this.isRanked(ladderName)) { // not ranked
throw new RankingException("User are not in this ladder", this, promoter);
}
int rank = this.getRank(ladderName);
int promoterRank = 0;
if (promoter != null && promoter.isRanked(ladderName)) {
promoterRank = promoter.getRank(ladderName);
if (promoterRank >= rank) {
throw new RankingException("Promoter don't have high enough rank to change " + this.getIdentifier() + "/" + getName() + "'s rank", this, promoter);
}
}
return promoterRank;
}