Class ObjectPermission

java.lang.Object
net.ME1312.SubServers.Client.Bukkit.Library.ObjectPermission

public class ObjectPermission extends Object
Object Permissions Class
  • Method Details

    • permits

      public static boolean permits(Proxy proxy, Permissible object, String... permissions)
      Determine if an object can perform some action on this proxy using possible permissions
      Parameters:
      proxy - Proxy to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the proxy name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(Host host, Permissible object, String... permissions)
      Determine if an object can perform some action on a host using possible permissions
      Parameters:
      host - Host to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the host name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(String string, Permissible object, String... permissions)
      Determine if an object can perform some action on another object using possible permissions
      Parameters:
      string - String to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the object name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(Server server, Permissible object, String... permissions)
      Determine if an object can perform some action on a server using possible permissions
      Parameters:
      server - Server to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the server name)
      Returns:
      Permission Check Result