Package com.shanebeestudios.coreapi.util
Class Utils
java.lang.Object
com.shanebeestudios.coreapi.util.Utils
General utility class
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.static voidbroadcastMini(String message, Object... objects) Broadcast a mini-message to all players and consolestatic StringgetColString(String string) Deprecated.UsegetMini(String)insteadstatic ComponentGet amini messagefrom stringstatic voidDeprecated.UselogMini(String, Object...)insteadstatic voidLog a formatted mini-message to consolestatic voidsendMiniTo(CommandSender sender, String message, Object... objects) Send a colored/prefixed mini-message to a command senderstatic voidsendTo(CommandSender sender, String message, Object... objects) Deprecated.UsesendMiniTo(CommandSender, String, Object...)insteadstatic voidsetMiniPrefix(String prefix) Set the prefix to be used in mini messagesstatic voidDeprecated.UsesetMiniPrefix(String)instead
-
Method Details
-
setPrefix
Deprecated.UsesetMiniPrefix(String)insteadSet the prefix to be used in messages- Parameters:
prefix- Prefix to be used in messages
-
setMiniPrefix
Set the prefix to be used in mini messages- Parameters:
prefix- Prefix to be used in mini messages
-
getColString
Deprecated.UsegetMini(String)insteadGet a colored string, accepts HEX color codes- Parameters:
string- String to apply color to- Returns:
- Colored string
-
getMini
Get amini messagefrom string- Parameters:
message- String to convert to mini message- Returns:
- Mini message from string
-
log
Deprecated.UselogMini(String, Object...)insteadLog a formatted message to console- Parameters:
message- Formatted messageobjects- Objects for format
-
logMini
Log a formatted mini-message to console- Parameters:
message- Formatted messageobjects- Objects for format
-
sendTo
Deprecated.UsesendMiniTo(CommandSender, String, Object...)insteadSend a colored/prefixed message to a command sender- Parameters:
sender- Sender to receive messagemessage- Formatted message to sendobjects- Objects to include in format
-
sendMiniTo
Send a colored/prefixed mini-message to a command sender- Parameters:
sender- Sender to receive messagemessage- Formatted message to sendobjects- Objects to include in format
-
broadcast
Deprecated.UsebroadcastMini(String, Object...)insteadBroadcast a message to all players and console- Parameters:
message- Formatted message to sendobjects- Objects to include in format
-
broadcastMini
Broadcast a mini-message to all players and console- Parameters:
message- Formatted message to sendobjects- Objects to include in format
-
broadcastMini(String, Object...)instead