mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2024-11-21 23:08:48 +00:00
添加到期时间显示
This commit is contained in:
parent
78323a218b
commit
3ed78d7db0
@ -19,6 +19,9 @@ public class PlayerPermissionShow {
|
||||
ItemStack item = PackagesCfg.PACKAGE_ITEMS.get(pdb.getPackageName());
|
||||
if (item != null) {
|
||||
inventory.addItem(item);
|
||||
List<String> lores = item.getItemMeta().getLore();
|
||||
lores.add("");
|
||||
lores.add(StrUtil.messageFormat("&4到期时间: {0}", StrUtil.timestampToString(pdb.getExpire())));
|
||||
}
|
||||
}
|
||||
p.openInventory(inventory);
|
||||
|
Loading…
Reference in New Issue
Block a user