tnx tryskell your info help
is working show the time all good and the time is countdown but
i dont know why is dont take the time from my event
here is the code:
npc.java
long time;
time = RandomFight.getInstance().getTime();
String PARENT_DIR = "data/html/mods/MiniEvent/menu.htm";
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile(PARENT_DIR);
html.replace("%objectId%", String.valueOf(getObjectId()));
html.replace("%timer%", String.valueOf("Time: " + new SimpleDateFormat("mm:ss").format(time)));
player.sendPacket(html);
Event.java
private static int Time = Config.EVERY_MINUTES;
/**
* @return
*/
public long getTime()
{
return Time - System.currentTimeMillis();
}