Jump to content
  • 0

How I Can Configure Olimpiad Weekend


Cipri

Question

Hi all , i building a master branch l2j sever

 

i like to configure olympiad game to play only in friday and satudrday to give hero on sunday

 

I tryed search google , i can find anything 

 

please help

 

thank in advance

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I am trying this but not working     

 

   int _cunnentDay = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
        
        _compStart = Calendar.getInstance();
        _compStart.set(Calendar.HOUR_OF_DAY, COMP_START);
        _compStart.set(Calendar.MINUTE, COMP_MIN);
        _compStart.add(Calendar.HOUR_OF_DAY, 24);
        {
            if(_cunnentDay != Calendar.FRIDAY && _cunnentDay != Calendar.SATURDAY && _cunnentDay != Calendar.SUNDAY)
                _compStart.set(Calendar.DAY_OF_WEEK, _cunnentDay);
        }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...