Scheduling an event to happen every week?

Discussion in 'Plugin Development' started by ImpaTheImpaler, Mar 13, 2020.

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

    ImpaTheImpaler

    Is there an API I can use for this? How would you guys go about it? I need to schedule an event every week at a certain time. Is there a way I can get the day through spigot, or would I need to use a seperate API?
     
  2. Offline

    Kars

  3. Offline

    Machine Maker

    In addition to just scheduling a task every "time period", you will need to make sure you handle server restarts, if the server is offline during that time, what happens?, etc. All those edge cases.
     
  4. Offline

    caderapee

    @ImpaTheImpaler You can use Calendar for check the day and the hour of the day
     
Thread Status:
Not open for further replies.

Share This Page