From 207d029deff565bdc19b07419708b30290d4f8f7 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 22 Apr 2021 20:36:36 +0200 Subject: [PATCH] Anvil commands are currently not implemented --- .../com/boydti/fawe/command/AnvilCommands.java | 8 ++++++++ .../platform/PlatformCommandManager.java | 18 ++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/command/AnvilCommands.java b/worldedit-core/src/main/java/com/boydti/fawe/command/AnvilCommands.java index 0eeab009d..f5336744b 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/command/AnvilCommands.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/command/AnvilCommands.java @@ -20,6 +20,14 @@ import java.io.IOException; import static com.google.common.base.Preconditions.checkNotNull; +/** + * + * @deprecated Anvil classes were used on versions prior to 1.13 to trim chunks. + * The way how it's been done was unsafe and led to issues back the years, hence it + * hasn't been implemented in any modern version. Therefore the current + * implementation is deprecated for removal without replacement. + */ +@Deprecated @CommandContainer(superTypes = CommandPermissionsConditionGenerator.Registration.class) public class AnvilCommands { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 34c44342a..91ac51912 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -460,14 +460,15 @@ public final class PlatformCommandManager { WorldEditCommandsRegistration.builder(), new WorldEditCommands(worldEdit) ); - // TODO: Ping @MattBDev to reimplement 2020-02-04 -// registerSubCommands( -// "cfi", -// ImmutableList.of("/cfi"), -// "CFI commands", -// CFICommandsRegistration.builder(), -// new CFICommands(worldEdit) -// ); + /* + TODO: Ping @MattBDev to reimplement 2020-02-04 + registerSubCommands( + "cfi", + ImmutableList.of("/cfi"), + "CFI commands", + CFICommandsRegistration.builder(), + new CFICommands(worldEdit) + ); registerSubCommands( "/anvil", ImmutableList.of(), @@ -475,6 +476,7 @@ public final class PlatformCommandManager { AnvilCommandsRegistration.builder(), new AnvilCommands(worldEdit) ); + */ this.registration.register( commandManager, BiomeCommandsRegistration.builder(),