Page 1 of 1

Automatic shoutdown

Posted: Sun Feb 27, 2011 12:49 am
by SlosMister
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hi i need automatic server ShoutDown.
Every Sunday on 5:00 o'clock.

Can you help me ? pls

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 4:56 am
by kimeraweb
What you want is not fully developed.

Make a new class extends Task with your preferences, using Calendar (my suggestion).

Add new class to taskmanager/TaskManager.java (where other class are creating new instances).

Now you are available to insert your new task into global_tasks.

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 9:57 am
by JIV
ofc it is implemented, just search little.

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 10:37 am
by momo61
i think you need to add an entry to global_tasks table for it to shut down whenever you want. Try searching a bit like JIV said.

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 11:20 am
by kimeraweb
JIV wrote:ofc it is implemented, just search little.
But it is done for diary, no weekly.

If restart are done just one per week, then can use TYPE_FIXED_SHEDULED and calculate in miliseconds the shutdown.

I think easier create a new command for weekly task.

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 12:07 pm
by JIV
1. daily, not diary.
2. weekly is possible as well, if you don't know about something it doesn't mean its not there :)

Re: Automatic shoutdown

Posted: Sun Feb 27, 2011 1:10 pm
by kimeraweb
Well, uhm... thank you for "diary", I appreciate English support ^^ (really i do)

I was watching with atention, and you're right. It is there, just is not popular :)