Waiting / interrupting a while construction

Discussion in 'Plugin Development' started by spoothie, Jun 22, 2011.

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

    spoothie

    Hello,
    is there a method that "waits" a specific amount of seconds or milliseconds? Something like wait() or sleep(), but with theese 2 methods I can't get it work. I need it for a while construction. I want a creature to follow the Player and shoot arrows at him, so the while construction has to be interruptend for e.g. 1 second. Is something like this even possible? Or can I solve this in another way?

    I hope you understand what I mean, my english skills aren't the best...
     
  2. Offline

    Shamebot

    Search for BukkitScheduler.
     
Thread Status:
Not open for further replies.

Share This Page