Package dev.plex.util
Class PlexUtils
java.lang.Object
dev.plex.PlexBase
dev.plex.util.PlexUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
broadcast
(net.kyori.adventure.text.Component component) static String
static String
static org.bukkit.ChatColor
getChatColorFromConfig
(Config config, org.bukkit.ChatColor def, String path) static Date
getDateFromLong
(long epoch) static long
static UUID
getFromName
(String name) static long
hoursToSeconds
(long hours) static boolean
isPluginCMD
(String cmd, String pluginName) static long
minutesToSeconds
(long minutes) static org.bukkit.ChatColor
static int
static int
randomNum
(int limit) static int
randomNum
(int start, int limit) static void
setBlocks
(org.bukkit.Location c1, org.bukkit.Location c2, org.bukkit.Material material) static Object
static void
static String
-
Field Details
-
CHAT_COLOR_NAMES
-
CHAT_COLOR_POOL
-
DEVELOPERS
-
RANDOM
-
-
Constructor Details
-
PlexUtils
public PlexUtils()
-
-
Method Details
-
randomChatColor
public static org.bukkit.ChatColor randomChatColor() -
testConnections
public static void testConnections() -
isPluginCMD
-
color
-
colorize
-
tl
-
getChatColorFromConfig
-
setBlocks
public static void setBlocks(org.bukkit.Location c1, org.bukkit.Location c2, org.bukkit.Material material) -
getPlayerNameList
-
broadcast
-
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
-
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
-
hoursToSeconds
public static long hoursToSeconds(long hours) -
minutesToSeconds
public static long minutesToSeconds(long minutes)
-