Bukkit Runnable

Discussion in 'Plugin Development' started by MCMatters, Aug 1, 2014.

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

    MCMatters

    How to do a repeated runnable every 40 ticks until canceled
     
  2. Offline

    Pizza371

  3. Offline

    MCMatters

    what is the full line
     
  4. Offline

    jthort

    My suggestion would be to create a class that extends BukkitRunnable. Pass the objects you need to use every 40 seconds through the constructor. The Run method (Should have @Override) will be called every 40 seconds.

    That way every time you need a new runnable you just call a new instance of that class with the desired amount of time.

    For more information Please read http://wiki.bukkit.org/Scheduler_Programming

    For more information see...:
    https://forums.bukkit.org/threads/need-a-simple-example-of-scheduler-programming.93719/
    https://forums.bukkit.org/threads/scheduled-delayed-tasks.98590/
    https://forums.bukkit.org/threads/repeating-tasks.134389/
    https://forums.bukkit.org/threads/schedule-sync-repeating-task.223391/
    https://forums.bukkit.org/threads/schedule-indefinite-repeating-task.101723/
    https://forums.bukkit.org/threads/schedule-repeating-task-exit.60424/
     
    Chr0mosom3 likes this.
Thread Status:
Not open for further replies.

Share This Page