9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-28 02:59:13 +00:00

Add /userdata dump command, for file/web dumping of user data json

This commit is contained in:
William
2022-10-07 22:52:58 +01:00
parent cbf5d9c24e
commit 7536bfaaf5
18 changed files with 276 additions and 14 deletions

View File

@@ -15,6 +15,7 @@ import net.william278.husksync.util.ResourceReader;
import net.william278.desertwell.Version;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.util.List;
import java.util.Optional;
import java.util.Set;
@@ -134,6 +135,14 @@ public interface HuskSync {
@NotNull
Version getPluginVersion();
/**
* Returns the plugin data folder
*
* @return the plugin data folder as a {@link File}
*/
@NotNull
File getDataFolder();
/**
* Returns a future returning the latest plugin {@link Version} if the plugin is out-of-date
*