diff options
Diffstat (limited to 'src/main/java/org/biltopia/SaveTask.java')
-rw-r--r-- | src/main/java/org/biltopia/SaveTask.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/biltopia/SaveTask.java b/src/main/java/org/biltopia/SaveTask.java new file mode 100644 index 0000000..4fff4f8 --- /dev/null +++ b/src/main/java/org/biltopia/SaveTask.java @@ -0,0 +1,18 @@ +package org.biltopia; + +import org.bukkit.scheduler.BukkitRunnable; + +public class SaveTask extends BukkitRunnable { + + private final Main owner; + + public SaveTask(Main owner) { + this.owner = owner; + } + + @Override + public void run() { + owner.saveData(); + } + +} |