- Хроники
- Shadow of the Kamael
- Исходники
- Присутствуют
- Сборка
- L2jMobius Master class ch2
Java:
{
player.destroyItemByItemId("CB_Premium", Config.COMMUNITY_PREMIUM_COIN_ID, Config.COMMUNITY_PREMIUM_PRICE_PER_DAY * premiumDays, player, true);
PremiumManager.getInstance().addPremiumTime(player.getAccountName(), premiumDays * 30, TimeUnit.DAYS);
player.sendMessage("Your account will now have premium status until " + new SimpleDateFormat("dd.MM.yyyy HH:mm").format(PremiumManager.getInstance().getPremiumExpiration(player.getAccountName())) + ".");
returnHtml = HtmCache.getInstance().getHtm(player, "data/html/CommunityBoard/Custom/premium/thankyou.html");
}
Hi guys... i need some info to custom this code part.
I want after add the time of premium, i add a line to send a item to inventory.
Ty in advance for any help.