public boolean canPlayerAccess(String name) {
if (!(this instanceof ISecurable)) {
return true;
}
AccessMode access = ((ISecurable) this).getAccess();
String owner = ((ISecurable) this).getOwnerName();
return access.isPublic() || (CoFHProps.enableOpSecureAccess && CoreUtils.isOp(name)) || owner.equals(CoFHProps.DEFAULT_OWNER) || owner.equals(name)
|| access.isRestricted() && SocialRegistry.playerHasAccess(name, owner);
}