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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...