Is there a way to see if a scheduler is finished before going onto the next task?

Discussion in 'Plugin Development' started by cluter123, Apr 9, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    cluter123

    I want to wait until my scheduler is finished before I move onto the next line? Is that possible without nesting another scheduler in there?
     
  2. Offline

    I Al Istannen

    @cluter123
    Depends on the action you do. If the action is blocking, then yes. Could you explain a bit further why you need this and for what?
     
  3. Offline

    cluter123

    Ex: I want the plugin to count down every second. After that, it calls a method. Ik its possible to just call the method after the counter is done, but is there a way for the scheduler to finish and then calls another scheduler?
     
  4. Offline

    CraftCreeper6

  5. Offline

    mythbusterma

    @cluter123

    You could call that method in the code that runs at the end of the run() method, or a repeating task, like Creeper said.
     
Thread Status:
Not open for further replies.

Share This Page