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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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