Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
idk what I was doing there
Dieser Commit ist enthalten in:
Ursprung
faa63b0c35
Commit
26f073faa2
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren