From ab357deb48d593357c8f3e3b2bf7d75493a7c3f1 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Mon, 23 Jan 2023 13:40:35 +0100 Subject: [PATCH] Put more legacy web interface deprecations in place --- .../com/plotsquared/bukkit/generator/BukkitPlotGenerator.java | 2 +- .../main/java/com/plotsquared/core/util/SchematicHandler.java | 4 ++++ Core/src/main/java/com/plotsquared/core/util/WorldUtil.java | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java index a9f0c43b0..fda56eaf3 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java @@ -162,7 +162,7 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap } /** - * The entire method is deprecated, but kept for compatibility with <=1.16.2. + * The entire method is deprecated, but kept for compatibility with versions lower than or equal to 1.16.2. * The method will be removed in future versions, because WorldEdit and FastAsyncWorldEdit only support the latest point * release. */ diff --git a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java index f266a8114..7d2993ed2 100644 --- a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java +++ b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java @@ -491,6 +491,10 @@ public abstract class SchematicHandler { return null; } + /** + * The legacy web interface is deprecated for removal in favor of Arkitektonika. + */ + @Deprecated(forRemoval = true, since = "TODO") public List getSaves(UUID uuid) { String rawJSON; try { diff --git a/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java b/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java index 9b9267bf9..1861be25b 100644 --- a/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java +++ b/Core/src/main/java/com/plotsquared/core/util/WorldUtil.java @@ -252,6 +252,10 @@ public abstract class WorldUtil { */ public abstract void refreshChunk(int x, int z, String world); + /** + * The legacy web interface is deprecated for removal in favor of Arkitektonika. + */ + @Deprecated(forRemoval = true, since = "TODO") public void upload( final @NonNull Plot plot, final @Nullable UUID uuid,