From 5d8b1eb4308f212b5cc3385f991283ee0bf37927 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 13 Sep 2016 14:37:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/bukkit/Log.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main/java/pw/yumc/YumCore/bukkit/Log.java b/src/main/java/pw/yumc/YumCore/bukkit/Log.java index 4c408a9..7766827 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/Log.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/Log.java @@ -45,10 +45,30 @@ public class Log { */ public static void console(final String... msg) { for (final String str : msg) { - console.sendMessage(prefix + str); + console(str); } } + /** + * Sends console a message + * + * @param message + * Message to be displayed + */ + public static void console(final String msg) { + console.sendMessage(prefix + msg); + } + + /** + * Sends console a message + * + * @param message + * Message to be displayed + */ + public static void console(final String msg, final Object... object) { + console.sendMessage(prefix + String.format(msg, object)); + } + /** * 调试消息 *