Package dev.espi.protectionstones.utils
Class MiscUtil
java.lang.Object
dev.espi.protectionstones.utils.MiscUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
concatWithoutLast(List<String> l, String separator)
static String
describeDuration(Duration duration)
getLuckPermsUserPermissions(UUID uniqueId)
static int
getPermissionNumber(List<String> permissions, String perm, int def)
static int
getPermissionNumber(org.bukkit.entity.Player p, String perm, int def)
static String
getUniqueIdIntArray(UUID uuid)
static String
static Duration
parseRentPeriod(String period)
-
Constructor Details
-
MiscUtil
public MiscUtil()
-
-
Method Details
-
getUniqueIdIntArray
-
getVersionString
-
parseRentPeriod
- Throws:
NumberFormatException
-
getPermissionNumber
-
getPermissionNumber
-
concatWithoutLast
-
describeDuration
-
getLuckPermsUserPermissions
public static List<String> getLuckPermsUserPermissions(UUID uniqueId) throws ExecutionException, InterruptedException
-