Bukkit Sheduler

Discussion in 'Plugin Development' started by Ivan, Apr 14, 2012.

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

    Ivan

    I'm coding a plugin for the hungergames, and It works really well, but there is one problem. It is REALLY unstable. It is giving errors in the repeating sheduler threads. They are async threads, and what they do is checking if somebody is still alive, editing signs, checking people in a certain area and shooting lightning at the ground. How can I do these things at certain sheduled times withouth using them in the particular thread, because I guess the methods I'm using aren't really "thread safe"
     
  2. Offline

    CorrieKay

    if theyre not thread safe, use the main server thread with Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, task, delay, period);
     
Thread Status:
Not open for further replies.

Share This Page