Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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