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; 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) @CommandContainer(superTypes = CommandPermissionsConditionGenerator.Registration.class)
public class AnvilCommands { public class AnvilCommands {

View File

@ -460,14 +460,15 @@ public final class PlatformCommandManager {
WorldEditCommandsRegistration.builder(), WorldEditCommandsRegistration.builder(),
new WorldEditCommands(worldEdit) new WorldEditCommands(worldEdit)
); );
// TODO: Ping @MattBDev to reimplement 2020-02-04 /*
// registerSubCommands( TODO: Ping @MattBDev to reimplement 2020-02-04
// "cfi", registerSubCommands(
// ImmutableList.of("/cfi"), "cfi",
// "CFI commands", ImmutableList.of("/cfi"),
// CFICommandsRegistration.builder(), "CFI commands",
// new CFICommands(worldEdit) CFICommandsRegistration.builder(),
// ); new CFICommands(worldEdit)
);
registerSubCommands( registerSubCommands(
"/anvil", "/anvil",
ImmutableList.of(), ImmutableList.of(),
@ -475,6 +476,7 @@ public final class PlatformCommandManager {
AnvilCommandsRegistration.builder(), AnvilCommandsRegistration.builder(),
new AnvilCommands(worldEdit) new AnvilCommands(worldEdit)
); );
*/
this.registration.register( this.registration.register(
commandManager, commandManager,
BiomeCommandsRegistration.builder(), BiomeCommandsRegistration.builder(),