mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2025-09-06 11:06:58 +00:00
添加查看自身权限包功能
This commit is contained in:
@ -1,10 +1,17 @@
|
||||
package gg.frog.mc.permissionstime.utils;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class StrUtil {
|
||||
|
||||
public static String messageFormat(String src, Object... args){
|
||||
public static String messageFormat(String src, Object... args) {
|
||||
return MessageFormat.format(src, args).replace("&", "§");
|
||||
}
|
||||
|
||||
public static String timestampToString(long time) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
return sdf.format(new Date(time));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user