Fix 1.12-1.15.2 not getting colored chat
This commit is contained in:
parent
4b940bcd20
commit
5c9b4c3245
@ -2498,22 +2498,13 @@ public class DisguiseUtilities {
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static void sendMessage(CommandSender sender, LibsMsg msg, Object... args) {
|
||||
if (!NmsVersion.v1_16.isSupported()) {
|
||||
String message = msg.get(args);
|
||||
|
||||
if (!message.isEmpty()) {
|
||||
sender.sendMessage(message);
|
||||
}
|
||||
} else {
|
||||
BaseComponent[] components = msg.getChat(args);
|
||||
|
||||
if (components.length > 0) {
|
||||
sender.spigot().sendMessage(components);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int[] getNumericVersion(String version) {
|
||||
int[] v = new int[0];
|
||||
|
Loading…
Reference in New Issue
Block a user