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
commitGlobalGameRules
(org.bukkit.World world) static <T> void
commitSpecificGameRules
(org.bukkit.World world) static void
disabledEffect
(org.bukkit.entity.Player player, org.bukkit.Location location) static void
disabledEffectMultiple
(org.bukkit.entity.Player[] players, org.bukkit.Location location) 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 boolean
static org.bukkit.ChatColor
static int
static int
randomNum
(int limit) static int
randomNum
(int start, int limit) private static <T> void
readGameRules
(org.bukkit.World world, String s) 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
-
disabledEffect
public static void disabledEffect(org.bukkit.entity.Player player, org.bukkit.Location location) -
disabledEffectMultiple
public static void disabledEffectMultiple(org.bukkit.entity.Player[] players, org.bukkit.Location location) -
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) -
commitGlobalGameRules
public static <T> void commitGlobalGameRules(org.bukkit.World world) -
commitSpecificGameRules
public static <T> void commitSpecificGameRules(org.bukkit.World world) -
readGameRules
-
check
-
getPlayerNameList
-
broadcast
-
broadcast
public static void broadcast(net.kyori.adventure.text.Component component) -
simpleGET
-
getFromName
-
getClassesFrom
-
getClassesBySubType
-
randomBoolean
public static boolean randomBoolean() -
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)
-