java.lang.Object
net.playavalon.mythicdungeons.utility.Util

public final class Util extends Object
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • colorize

      public static String colorize(String s)
    • fullColor

      public static String fullColor(String s)
    • hasPermission

      public static boolean hasPermission(org.bukkit.command.CommandSender sender, String node)
    • hasPermissionSilent

      public static boolean hasPermissionSilent(org.bukkit.command.CommandSender sender, String node)
    • round

      public static double round(double value, int places)
    • getRandomNumberInRange

      public static int getRandomNumberInRange(int min, int max)
    • getRandomBoolean

      public static boolean getRandomBoolean(double chance)
    • getFutureTime

      public static Timestamp getFutureTime(int minutes)
    • getFutureTimeInSeconds

      public static Timestamp getFutureTimeInSeconds(int seconds)
    • giveOrDrop

      public static void giveOrDrop(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item)
    • giveOrDrop

      public static void giveOrDrop(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack... items)
    • giveOrDropSilently

      public static void giveOrDropSilently(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item)
    • getEntityGroup

      public static String getEntityGroup(org.bukkit.entity.LivingEntity ent)
    • getFunctionTool

      public static org.bukkit.inventory.ItemStack getFunctionTool()
    • isFunctionTool

      public static boolean isFunctionTool(org.bukkit.inventory.ItemStack item)
    • getDefaultKeyItem

      public static org.bukkit.inventory.ItemStack getDefaultKeyItem()
    • verifyKeyItem

      public static boolean verifyKeyItem(org.bukkit.inventory.ItemStack item)
    • verifyDungeonItem

      public static boolean verifyDungeonItem(org.bukkit.inventory.ItemStack item)
    • convertFromDXL

      public static boolean convertFromDXL(String worldName)
    • getItemDisplayName

      public static String getItemDisplayName(org.bukkit.inventory.ItemStack item)
    • isItemBanned

      public static boolean isItemBanned(Dungeon dungeon, org.bukkit.inventory.ItemStack itemStack)
    • isPlayerWithin

      public static boolean isPlayerWithin(org.bukkit.Location loc)
    • isPlayerWithin

      public static boolean isPlayerWithin(org.bukkit.entity.Player player, org.bukkit.Location loc, double radius)
    • getPlayersWithin

      public static List<org.bukkit.entity.Player> getPlayersWithin(org.bukkit.Location loc, double radius)
    • getPlayersWithin

      public static List<org.bukkit.entity.Player> getPlayersWithin(org.bukkit.Location loc, double radius, org.bukkit.GameMode... gameModes)
    • readIntegerInput

      public static Optional<Integer> readIntegerInput(org.bukkit.command.CommandSender sender, String string)
    • readDoubleInput

      public static Optional<Double> readDoubleInput(org.bukkit.entity.Player player, String string)
    • sendClickableLink

      public static void sendClickableLink(org.bukkit.entity.Player player, String message, String url)
    • sendClickableCommand

      public static void sendClickableCommand(org.bukkit.entity.Player player, String message, String command)
    • sendReadyCheckMessage

      public static void sendReadyCheckMessage(org.bukkit.entity.Player player)
    • hexToColor

      public static org.bukkit.Color hexToColor(String colorStr)
    • getBlockedMenuItem

      public static org.bukkit.inventory.ItemStack getBlockedMenuItem()
    • forceRunCommand

      public static boolean forceRunCommand(org.bukkit.entity.Player player, String fullCommand)
    • displayHelpMenu

      public static void displayHelpMenu(org.bukkit.command.CommandSender sender, int page)
    • deleteRecursively

      public static boolean deleteRecursively(File folder)
    • formatDate

      public static String formatDate(Date date)
    • convertDurationString

      public static Date convertDurationString(String durString)
    • formatDuration

      public static String formatDuration(long durationInMillis)
    • getMythicItemType

      @Nullable public static String getMythicItemType(org.bukkit.inventory.ItemStack item)
    • skullFromName

      public static org.bukkit.inventory.ItemStack skullFromName(org.bukkit.inventory.ItemStack item, String name)
    • readLocation

      public static org.bukkit.Location readLocation(org.bukkit.configuration.ConfigurationSection config)
    • writeLocation

      public static void writeLocation(String path, org.bukkit.configuration.ConfigurationSection config, org.bukkit.Location loc)
    • getPlayerHead

      public static org.bukkit.inventory.ItemStack getPlayerHead(org.bukkit.entity.Player player)