Anvil commands are currently not implemented

This commit is contained in:
NotMyFault 2021-04-22 20:36:36 +02:00
parent 71b2f488b6
commit 207d029def
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 18 additions and 8 deletions

View File

@ -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 {

View File

@ -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(),