1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2024-11-22 07:28:47 +00:00

添加到期时间显示

This commit is contained in:
GeekFrog 2017-07-16 06:21:57 +08:00
parent 78323a218b
commit 3ed78d7db0

View File

@ -19,6 +19,9 @@ public class PlayerPermissionShow {
ItemStack item = PackagesCfg.PACKAGE_ITEMS.get(pdb.getPackageName()); ItemStack item = PackagesCfg.PACKAGE_ITEMS.get(pdb.getPackageName());
if (item != null) { if (item != null) {
inventory.addItem(item); inventory.addItem(item);
List<String> lores = item.getItemMeta().getLore();
lores.add("");
lores.add(StrUtil.messageFormat("&4到期时间: {0}", StrUtil.timestampToString(pdb.getExpire())));
} }
} }
p.openInventory(inventory); p.openInventory(inventory);