Periodic Events

Discussion in 'Plugin Development' started by Chris Covert, Feb 11, 2011.

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

    Chris Covert

    Is there a way to create a periodic event with bukkit? For instance, I wish to run a specific method once per second.

    Any help on the matter would be greatly appreciated.

    Thanks,
    Chris
     
  2. Offline

    Byteflux

    Yes, you should be able to use BukkitScheduler (CraftScheduler in craftbukkit). It provides ways to schedule one-off or repeating tasks both synchronous and asynchronous.
     
  3. Offline

    NathanWolf

    How new is this? I didn't know we had this!

    I've been doing stupid things with a scheduler and onPlayerMove events in the meantime- I have some work to do if this is working! Including incremental auto-save for Persistence, which really excites me.
     
Thread Status:
Not open for further replies.

Share This Page