1package com.runehive.game.world.cronjobs;
3import com.runehive.game.world.World;
4import org.quartz.JobExecutionContext;
6public abstract class Job implements org.quartz.
Job {
8 private final String
name;
15 public void execute(JobExecutionContext jobExecutionContext) {
16 System.out.println(
"Firing " +
name +
" job");
22 }
catch (Exception e) {
23 System.err.println(
"An error occurred in " + job.
name +
" job");
Represents the game world.
static void schedule(Task task)
Submits a new event.
void execute(JobExecutionContext jobExecutionContext)