Package dev.plex.util
Class PlexUtils
java.lang.Object
dev.plex.util.PlexUtils
- All Implemented Interfaces:
PlexBase
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Pattern
private static final net.kyori.adventure.text.minimessage.MiniMessage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
addToArrayList
(List<T> list, T object) static void
static void
broadcast
(net.kyori.adventure.text.Component component) static void
broadcastToAdmins
(net.kyori.adventure.text.Component component, String permission) static String
cleanString
(String input) 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 String
getTextFromComponent
(net.kyori.adventure.text.Component component) static String
getTextFromComponents
(net.kyori.adventure.text.Component... components) static boolean
static boolean
isFolia()
static boolean
isPluginCMD
(String cmd, String pluginName) static String
legacyToMiniString
(String input) Deprecated.static net.kyori.adventure.text.Component
messageComponent
(String entry, Object... objects) static net.kyori.adventure.text.Component
messageComponent
(String entry, net.kyori.adventure.text.Component... objects) static String
messageString
(String entry, Object... objects) static net.kyori.adventure.text.Component
mmCustomDeserialize
(String input, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) static net.kyori.adventure.text.Component
mmDeserialize
(String input) static String
mmSerialize
(net.kyori.adventure.text.Component input) static String
mmStripColor
(String input) static net.kyori.adventure.text.Component
removeHoverAndClick
(net.kyori.adventure.text.Component component) static net.kyori.adventure.text.Component
stringToComponent
(String input) static void
-
Field Details
-
MINI_MESSAGE
private static final net.kyori.adventure.text.minimessage.MiniMessage MINI_MESSAGE -
DEVELOPERS
-
LEGACY_FORMATTING_PATTERN
-
-
Constructor Details
-
PlexUtils
public PlexUtils()
-
-
Method Details
-
addToArrayList
-
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) -
testConnections
public static void testConnections() -
isFolia
public static boolean isFolia() -
hasVanishPlugin
public static boolean hasVanishPlugin() -
isPluginCMD
-
removeHoverAndClick
public static net.kyori.adventure.text.Component removeHoverAndClick(net.kyori.adventure.text.Component component) -
stringToComponent
-
legacyToMiniString
Deprecated. -
mmStripColor
-
mmDeserialize
-
mmSerialize
-
mmCustomDeserialize
public static net.kyori.adventure.text.Component mmCustomDeserialize(String input, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) -
messageComponent
-
messageComponent
public static net.kyori.adventure.text.Component messageComponent(String entry, net.kyori.adventure.text.Component... objects) -
messageString
-
getTextFromComponent
-
getTextFromComponents
-
getPlayerNameList
-
broadcast
-
broadcast
public static void broadcast(net.kyori.adventure.text.Component component) -
broadcastToAdmins
public static void broadcastToAdmins(net.kyori.adventure.text.Component component, String permission) -
adminChat
-
cleanString
-