Package com.ranull.graves.util
Class PermissionUtil
java.lang.Object
com.ranull.graves.util.PermissionUtil
Utility class for handling player permissions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
getHighestDouble
(org.bukkit.entity.Player player, String permission) Gets the highest double value associated with a specific permission prefix.static int
getHighestInt
(org.bukkit.entity.Player player, String permission) Gets the highest integer value associated with a specific permission prefix.
-
Constructor Details
-
PermissionUtil
public PermissionUtil()
-
-
Method Details
-
getHighestInt
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
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.
-