diff options
author | Xander <xander@biltopia.org> | 2023-10-08 21:37:35 +0200 |
---|---|---|
committer | Xander <xander@biltopia.org> | 2023-10-08 21:37:35 +0200 |
commit | a5a1daa80b386c6ca43b651a2c2dae2f53db6afd (patch) | |
tree | 83b34631828761256116ab7c0eab43b1f9149590 /src/main/java/org/biltopia/SaveTask.java | |
download | teams-speedrun-a5a1daa80b386c6ca43b651a2c2dae2f53db6afd.tar.xz teams-speedrun-a5a1daa80b386c6ca43b651a2c2dae2f53db6afd.zip |
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(); + } + +} |