Jump to content
  • 0

How I Can Configure Olimpiad Weekend



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.

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock