mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
feat: 添加参数化消息发送
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
4b1340b2d2
commit
bbedb39b8c
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user