From 83484bf080dd993d787744083f50ce934b494ba4 Mon Sep 17 00:00:00 2001 From: sandtechnology Date: Wed, 16 Jun 2021 17:28:49 +0800 Subject: [PATCH] Reintroduce sendColoredMessage for backward compatibility --- src/main/java/org/maxgamer/quickshop/util/MsgUtil.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java index cb3e052b8..19fe6e5e4 100644 --- a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java +++ b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java @@ -475,6 +475,14 @@ public class MsgUtil { } } + //For backward compatibility + @Deprecated + public static void sendColoredMessage(@NotNull CommandSender sender, @NotNull ChatColor chatColor, @Nullable String... messages) { + for (String message : messages) { + sendDirectMessage(sender, chatColor + message); + } + } + /** * @param player The name of the player to message * @param transactionMessage The message to send them Sends the given player a message if they're online.