diff --git a/src/main/java/pw/yumc/YumCore/bukkit/Log.java b/src/main/java/pw/yumc/YumCore/bukkit/Log.java index 929aeda..c5aa2c4 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/Log.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/Log.java @@ -264,6 +264,20 @@ public class Log { sender.sendMessage(prefix + msg); } + /** + * Sends this sender a message + * + * @param sender + * 命令发送者 + * @param msg + * 消息 + * @param objs + * 参数 + */ + public static void toSender(final CommandSender sender, final String msg, final Object... objs) { + sender.sendMessage(prefix + String.format(msg, objs)); + } + /** * Sends this sender a message *