Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ScheduleDelayedTask vs. ScheduleRepeatingTask

Comments in 'Plugin Development' started by Sensej, Oct 4, 2014.

?

ScheduleDelayedTask or ScheduleRepeatingTask

  1. ScheduleDelayedTask

    1 vote(s)
    50.0%
  2. ScheduleRepeatingTask

    1 vote(s)
    50.0%
  1. Sensej
    Offline

    Sensej New Member

    Joined:
    Aug 5, 2014
    Posts:
    64
    What is better/faster to use? Im using the ScheduleRepeatingTask
  2. LDX
    Offline

    LDX Notable Member Plugin Developer

    Joined:
    Oct 2, 2013
    Posts:
    1,429
    Plugins:
    14
    ScheduleDelayedTask only runs the task once, while ScheduleRepeatingTask runs it at the interval you specify.
    GlaciercreepsMC likes this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    They're different. scheduleDelayedTask() makes a task be run after a number of ticks.
    scheduleRepeatingTask() makes a task be run periodically.

    How can you compare if a chair is better or a door is better?
    Last edited by a moderator: Oct 5, 2014
    LDX likes this.

Share This Page

Advertisement