Class PermissionUtil

java.lang.Object
com.ranull.graves.util.PermissionUtil

public final class PermissionUtil extends Object
Utility class for handling player permissions.
  • Constructor Details

    • PermissionUtil

      public PermissionUtil()
  • Method Details

    • getHighestInt

      public static int getHighestInt(org.bukkit.entity.Player player, String permission)
      Gets the highest integer value associated with a specific permission prefix.
      Parameters:
      player - The player whose permissions are being checked.
      permission - The permission prefix to search for.
      Returns:
      The highest integer value found for the specified permission prefix. Returns 0 if no such permission is found.
    • getHighestDouble

      public static double getHighestDouble(org.bukkit.entity.Player player, String permission)
      Gets the highest double value associated with a specific permission prefix.
      Parameters:
      player - The player whose permissions are being checked.
      permission - The permission prefix to search for.
      Returns:
      The highest double value found for the specified permission prefix. Returns 0 if no such permission is found.