Solved ConcurrentModificationException

Discussion in 'Plugin Development' started by HappyPikachu, Dec 31, 2012.

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

    HappyPikachu

    [​IMG]

    I've been slowly maintaining DiscoSheep+ for a while now. Just recently, I discovered that the original author did not use scheduler programming which causes this error. I've spent the past 2 days trying to correct the issue, but I've only used a sync task once in the past and am unsure of how to proceed.

    If anyone has some time to invest, I'd appreciate some help correcting this issue. The code is here. :)
     
  2. Offline

    fireblast709

    Don't use timers, use sync delayed tasks
     
  3. Offline

    HappyPikachu

    fireblast709 I'm already aware of that, I just don't know how to make the change. What would be the first step?
     
  4. Offline

    fireblast709

    I am not sure what the timers all do, so I cannot tell you what scheduler you would have to use
     
  5. Offline

    HappyPikachu

    fireblast709 That's why I need someone who can invest some time. Thanks anyway. :)
     
  6. Offline

    fireblast709

    HappyPikachu you maintain it ;3. So what does the timer do, what does it 'time'
     
  7. Offline

    HappyPikachu

  8. Offline

    fireblast709

    just schedule a delayed task when the party starts, and inside the runnable you cancel it
     
  9. Offline

    HappyPikachu

    Everything suddenly makes sense. I'll try that now and post back! :)
     
  10. Offline

    HappyPikachu

    fireblast709 I've made the changes and am having other issues, which I'll make a separate thread for if necessary. Thanks for the help!
     
Thread Status:
Not open for further replies.

Share This Page