• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Add-On]Auto-JQ.Event

Newbie Spellweaver
Joined
Nov 26, 2015
Messages
61
Reaction score
0
That is correct! You would do the following:

public static final String EVENTS = "automsg AutoJQ";

Thanks it worked. can i know how do i edit the time? i mean
function scheduleNew() {
var cal = java.util.Calendar.getInstance();
cal.set(java.util.Calendar.HOUR, 0);
cal.set(java.util.Calendar.MINUTE, 0);
cal.set(java.util.Calendar.SECOND, 0);
var nextTime = cal.getTimeInMillis();
while (nextTime <= java.lang.System.currentTimeMillis()) {
nextTime += 1000 * 3600; }
setupTask = em.scheduleAtTimestamp("start", nextTime);

what is 1000* 3600? what does it mean?
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jan 18, 2010
Messages
3,109
Reaction score
1,139
Thanks it worked. can i know how do i edit the time? i mean
function scheduleNew() {
var cal = java.util.Calendar.getInstance();
cal.set(java.util.Calendar.HOUR, 0);
cal.set(java.util.Calendar.MINUTE, 0);
cal.set(java.util.Calendar.SECOND, 0);
var nextTime = cal.getTimeInMillis();
while (nextTime <= java.lang.System.currentTimeMillis()) {
nextTime += 1000 * 3600; }
setupTask = em.scheduleAtTimestamp("start", nextTime);

what is 1000* 3600? what does it mean?

Read the code, the time is in milliseconds. For every 1000ms is a second, so 3600 seconds * 1000 (ms). 3600/60 = 60 minutes, so this will currently run every hour.
 
Newbie Spellweaver
Joined
Nov 26, 2015
Messages
61
Reaction score
0
Read the code, the time is in milliseconds. For every 1000ms is a second, so 3600 seconds * 1000 (ms). 3600/60 = 60 minutes, so this will currently run every hour.

got it thanks.! can i know is there anyway to set like since the event is hosted 1hours once. so is there any method to warpout all the player in the map after a certain of time? to prevent some player camping inside.
 
Back
Top