Package cofh.api.tileentity.ISecurable

Examples of cofh.api.tileentity.ISecurable.AccessMode


  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);
  }
View Full Code Here

TOP

Related Classes of cofh.api.tileentity.ISecurable.AccessMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.