1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-06 11:06:58 +00:00

添加查看自身权限包功能

This commit is contained in:
GeekFrog
2017-07-13 23:19:09 +08:00
parent e0e3ce448c
commit a545520d58
14 changed files with 150 additions and 11 deletions

View File

@ -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));
}
}