1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +00:00

feat: 添加参数化消息发送

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-26 00:32:27 +08:00
parent 4b1340b2d2
commit bbedb39b8c

View File

@ -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
*