Class PermissionQuery

java.lang.Object
com.hypixel.hytale.server.core.permissions.PermissionQuery

public final class PermissionQuery extends Object
A permission node with every string that a lookup of it needs. One check walks up to seven permission sets, so these are built once for the check rather than once for each set. A caller that always asks for the same node can build one and keep it.
  • Method Details

    • of

      @Nonnull public static PermissionQuery of(@Nonnull String id)
      Builds the lookup for a permission node. A caller that asks for the same node more than once should hold the lookup rather than build one for each check.
      Parameters:
      id - the permission node
      Returns:
      the lookup for the node
    • getId

      @Nonnull public String getId()
      Returns:
      the permission node this looks up
    • toString

      public String toString()
      Overrides:
      toString in class Object