mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2025-09-06 20:08:27 +00:00
添加到期时间显示
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user