Solved Storing runnables

Discussion in 'Plugin Development' started by Betagear, Sep 30, 2015.

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

    Betagear

    @timtower Yes, my plugin is named StompArena, and the only two lines belonging to my plugin refers to the line I sent you. But I don't know why.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Betagear What about those 2 lines then?
    Code:
    at dev.bukkit.moddingear.PlayerListener.disactivate(PlayerListener.java:77) ~[?:?]        at dev.bukkit.moddingear.Main.onDisable(Main.java:55) ~[?:?]
     
  3. Offline

    Betagear

    Those are the ones I'm talking about.
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Betagear And the disactivate is the loop? Or not?
     
  5. Offline

    Betagear

    @timtower The disactivate is the function that runs the loop.
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Betagear And your loop just calls the methods?
     
  7. Offline

    Betagear

    @timtower Yep, it runs them. Don't worry tough, I have a disactivation variable that I use to make the runnables know when the plugin is disactivated. The problem is only located in that loop.
     
  8. Offline

    timtower Administrator Administrator Moderator

    @Betagear I know your issue: they are removing themselves while you are looping, that is causing concurrentmodificationexceptions
     
  9. Offline

    Betagear

    @timtower Thanks a lot ! That was the bug.
    I give you all my cookies ! :)
     
Thread Status:
Not open for further replies.

Share This Page