idk what I was doing there

This commit is contained in:
Jesse Boyd 2019-11-08 09:42:07 +00:00
parent faa63b0c35
commit 26f073faa2
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 3 additions and 10 deletions

View File

@ -84,18 +84,12 @@ public class ApplyBrushCommands {
); );
builder.condition(new PermissionCondition(ImmutableSet.of("worldedit.brush.apply"))); builder.condition(new PermissionCondition(ImmutableSet.of("worldedit.brush.apply")));
builder.addParts(REGION_FACTORY, RADIUS);
builder.addPart(SubCommandPart.builder(TranslatableComponent.of("type"), TextComponent.of("Type of brush to use")) builder.addPart(SubCommandPart.builder(TranslatableComponent.of("type"), TextComponent.of("Type of brush to use"))
.withCommands(manager.getAllCommands().collect(Collectors.toList())) .withCommands(manager.getAllCommands().collect(Collectors.toList()))
.required() .required()
.build()); .build());
builder.addParts(REGION_FACTORY, RADIUS);
builder.action(new org.enginehub.piston.Command.Action() {
@Override
public Object run(CommandParameters commandParameters) throws Exception {
System.out.println("Action " + commandParameters);
return null;
}
});
}); });
} }
@ -115,7 +109,6 @@ public class ApplyBrushCommands {
Player player, LocalSession localSession, Player player, LocalSession localSession,
@Arg(desc = "The type of tree to plant") @Arg(desc = "The type of tree to plant")
TreeGenerator.TreeType type) throws WorldEditException { TreeGenerator.TreeType type) throws WorldEditException {
System.out.println("FOREST");
setApplyBrush(parameters, player, localSession, new TreeGeneratorFactory(type)); setApplyBrush(parameters, player, localSession, new TreeGeneratorFactory(type));
} }

View File

@ -470,7 +470,7 @@ public final class PlatformCommandManager {
); );
registerSubCommands( registerSubCommands(
"cfi", "cfi",
ImmutableList.of(), ImmutableList.of("/cfi"),
"CFI commands", "CFI commands",
CFICommandsRegistration.builder(), CFICommandsRegistration.builder(),
new CFICommands(worldEdit) new CFICommands(worldEdit)