Package dev.plex.util

Class PlexUtils

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

public class PlexUtils extends PlexBase
  • Field Details

    • 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
    • RANDOM

      private static final Random RANDOM
  • 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)
    • color

      public static String color(String s)
    • colorize

      public static String colorize(String string)
    • tl

      public static String tl(String s, Object... objects)
    • 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)
    • 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) throws IOException, org.json.simple.parser.ParseException
      Throws:
      IOException
      org.json.simple.parser.ParseException
    • 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)