1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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(); } }