diff --git a/src/main/java/com/hazebyte/crate/api/util/Messenger.java b/src/main/java/com/hazebyte/crate/api/util/Messenger.java index 0ec38c9..d800a5f 100644 --- a/src/main/java/com/hazebyte/crate/api/util/Messenger.java +++ b/src/main/java/com/hazebyte/crate/api/util/Messenger.java @@ -61,20 +61,11 @@ public static boolean tell (Player player, String msg) { return tell((CommandSender) player, msg); } - public static boolean tell(CommandSender sender, BaseComponent msg) { - return tell(sender, msg, null); // Hack to handle overloading call - } - - public static boolean tell (CommandSender sender, BaseComponent... msg) { - if (sender == null || msg == null) { + public static boolean tell (CommandSender sender, BaseComponent... components) { + if (sender == null || components == null) { return false; } - - for (BaseComponent m : msg) { - if (m instanceof TextComponent) { - tell(sender, (TextComponent) m); - } - } + sender.spigot().sendMessage(components); return true; }