use of com.bekvon.bukkit.residence.api.ResidenceInterface in project CombatLogX by SirBlobman.
the class ResidenceRegionHandler method isSafeZone.
@Override
public boolean isSafeZone(Player player, Location location, TagType tagType) {
if (tagType != TagType.PLAYER)
return false;
ResidenceInterface residenceManager = ResidenceApi.getResidenceManager();
ClaimedResidence claimedResidence = residenceManager.getByLoc(location);
if (claimedResidence == null)
return false;
ResidencePermissions residencePermissions = claimedResidence.getPermissions();
return !residencePermissions.has(Flags.pvp, true);
}
Aggregations