Package dev.plex.util

Class PlexUtils

java.lang.Object
dev.plex.PlexBase
dev.plex.util.PlexUtils

public class PlexUtils extends PlexBase
  • Field Details

    • RANDOM

      private static final Random RANDOM
    • regxList

      private static final List<String> regxList
    • CHAT_COLOR_NAMES

      public static Map<String,org.bukkit.ChatColor> CHAT_COLOR_NAMES
    • CHAT_COLOR_POOL

      public static List<org.bukkit.ChatColor> CHAT_COLOR_POOL
    • DEVELOPERS

      public static List<String> DEVELOPERS
  • Constructor Details

    • PlexUtils

      public PlexUtils()
  • Method Details

    • randomChatColor

      public static org.bukkit.ChatColor randomChatColor()
    • testConnections

      public static void testConnections()
    • isPluginCMD

      public static boolean isPluginCMD(String cmd, String pluginName)
    • colorize

      public static String colorize(String string)
    • messageComponent

      public static net.kyori.adventure.text.Component messageComponent(String entry, Object... objects)
    • messageString

      public static String messageString(String entry, Object... objects)
    • a

      private static long a(String parse)
    • verify

      private static TimeUnit verify(String arg)
    • parseDateOffset

      public static LocalDateTime parseDateOffset(String... time)
    • getChatColorFromConfig

      public static org.bukkit.ChatColor getChatColorFromConfig(Config config, org.bukkit.ChatColor def, String path)
    • setBlocks

      public static void setBlocks(org.bukkit.Location c1, org.bukkit.Location c2, org.bukkit.Material material)
    • commitGameRules

      public static <T> void commitGameRules(org.bukkit.World world)
    • check

      public static <T> Object check(T value)
    • getPlayerNameList

      public static List<String> getPlayerNameList()
    • broadcast

      public static void broadcast(String s)
    • broadcast

      public static void broadcast(net.kyori.adventure.text.Component component)
    • simpleGET

      public static Object simpleGET(String url)
    • getFromName

      public static UUID getFromName(String name)
    • randomNum

      public static int randomNum()
    • randomNum

      public static int randomNum(int limit)
    • randomNum

      public static int randomNum(int start, int limit)
    • getDateNow

      public static long getDateNow()
    • getDateFromLong

      public static Date getDateFromLong(long epoch)
    • hoursToSeconds

      public static long hoursToSeconds(long hours)
    • minutesToSeconds

      public static long minutesToSeconds(long minutes)