Add new changetype alias

This commit is contained in:
2025-06-29 20:11:36 +02:00
parent d2bb8e8e59
commit e4864e6eaf
@@ -46,6 +46,7 @@ public class ModifyPart extends SWCommand {
} }
@Register("changetype") @Register("changetype")
@Register("submit")
public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node) { public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node) {
TextComponent base = new TextComponent(); TextComponent base = new TextComponent();
@@ -74,11 +75,13 @@ public class ModifyPart extends SWCommand {
} }
@Register("changetype") @Register("changetype")
@Register("submit")
public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node, SchematicType type) { public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node, SchematicType type) {
changeType(player, node, type, null); changeType(player, node, type, null);
} }
@Register("changetype") @Register("changetype")
@Register("submit")
public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node, SchematicType type, SchematicCommand.Extend extend) { public void changeType(Player player, @Validator("isOwnerSchematicValidator") SchematicNode node, SchematicType type, SchematicCommand.Extend extend) {
SchematicCommandUtils.changeType(player, node, type, extend); SchematicCommandUtils.changeType(player, node, type, extend);
} }