summaryrefslogtreecommitdiff
path: root/src/main/java/org/biltopia/SaveTask.java
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-10-08 21:37:35 +0200
committerXander <xander@biltopia.org>2023-10-08 21:37:35 +0200
commita5a1daa80b386c6ca43b651a2c2dae2f53db6afd (patch)
tree83b34631828761256116ab7c0eab43b1f9149590 /src/main/java/org/biltopia/SaveTask.java
downloadteams-speedrun-master.tar.xz
teams-speedrun-master.zip
First commitHEADmaster
Diffstat (limited to 'src/main/java/org/biltopia/SaveTask.java')
-rw-r--r--src/main/java/org/biltopia/SaveTask.java18
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();
+ }
+
+}