Package dev.plex.util
Class PlexUtils
java.lang.Object
dev.plex.PlexBase
dev.plex.util.PlexUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static long
static void
static void
broadcast
(net.kyori.adventure.text.Component component) static <T> Object
check
(T value) static String
static <T> void
commitGameRules
(org.bukkit.World world) static org.bukkit.ChatColor
getChatColorFromConfig
(Config config, org.bukkit.ChatColor def, String path) getClassesBySubType
(String packageName, Class<T> subType) getClassesFrom
(String packageName) 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 net.kyori.adventure.text.Component
messageComponent
(String entry, Object... objects) static String
messageString
(String entry, Object... objects) static long
minutesToSeconds
(long minutes) static LocalDateTime
parseDateOffset
(String... time) 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
private static TimeUnit
-
Field Details
-
RANDOM
-
regxList
-
CHAT_COLOR_NAMES
-
CHAT_COLOR_POOL
-
DEVELOPERS
-
-
Constructor Details
-
PlexUtils
public PlexUtils()
-
-
Method Details
-
randomChatColor
public static org.bukkit.ChatColor randomChatColor() -
testConnections
public static void testConnections() -
isPluginCMD
-
colorize
-
messageComponent
-
messageString
-
a
-
verify
-
parseDateOffset
-
getChatColorFromConfig
-
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
-
getPlayerNameList
-
broadcast
-
broadcast
public static void broadcast(net.kyori.adventure.text.Component component) -
simpleGET
-
getFromName
-
getClassesFrom
-
getClassesBySubType
-
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)
-