Jump to content
  • 0

Question

Posted

Good evening, Mr. My server has an event called Tornament Event, but I noticed that when I restart the server an error appears, what should I do to fix it? The error is that of print ..

 

 

error.png

7 answers to this question

Recommended Posts

  • 0
Posted
40 minutes ago, tazerman2 said:

net.sf.l2j.gameserver.events.tournaments.unrealtournaments linha 112 o que tem aqui?


    @Override
    public synchronized void run()
    {
        // while server is running
        while(true)
        {
            // if no have participants or arenas are busy wait 1 minute 
            if (registered.size() < 2 || free == 0)
            {

 112 -->  try 
                {
                    Thread.sleep(Config.ARENA_CALL_INTERVAL); 
                } 
                catch (InterruptedException e)
                {
                    e.printStackTrace();
                }
                continue;
            }
            List<Pair> opponents = selectOpponents();
            if (opponents != null && opponents.size() == 2)
            {
                Thread T = new Thread(new EvtArenaTask(opponents));
                T.setDaemon(true);
                T.start();
            }
            //wait 1 minute for not stress server
            try
            {
                Thread.sleep(Config.ARENA_CALL_INTERVAL); 
            } 
            catch (InterruptedException e)
            {
                e.printStackTrace();
            }
        }
    }
 

  • 0
Posted

fail. that is wait if player is < 2 in register just can here use a threadpool with check if players is < 2 just check again after (x) time. my option is chage that line.

  • 0
Posted
7 minutes ago, tazerman2 said:

fail. that is wait if player is < 2 in register just can here use a threadpool with check if players is < 2 just check again after (x) time. my option is chage that line.

 

nothing....

 

the sleep as interrupted.

Change the try method and check  "Config.ARENA_CALL_INTERVAL"

  • 0
Posted
1 hour ago, Smith said:

 

nada....

 

o sono como interrompido.

Altere o método try e marque   "Config.ARENA_CALL_INTERVAL "

How would the amendment change?

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