From a5a1daa80b386c6ca43b651a2c2dae2f53db6afd Mon Sep 17 00:00:00 2001 From: Xander Date: Sun, 8 Oct 2023 21:37:35 +0200 Subject: First commit --- src/main/java/org/biltopia/SaveTask.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/org/biltopia/SaveTask.java (limited to 'src/main/java/org/biltopia/SaveTask.java') 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(); + } + +} -- cgit v1.2.3