Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Make ApplyCommand use SimpleCommand rather than ParameterCommand.
Dieser Commit ist enthalten in:
Ursprung
6cfc60b2d6
Commit
25ad916611
@ -27,12 +27,9 @@ import com.sk89q.worldedit.function.EditContext;
|
|||||||
import com.sk89q.worldedit.function.RegionFunction;
|
import com.sk89q.worldedit.function.RegionFunction;
|
||||||
import com.sk89q.worldedit.function.factory.RegionApply;
|
import com.sk89q.worldedit.function.factory.RegionApply;
|
||||||
import com.sk89q.worldedit.util.command.argument.CommandArgs;
|
import com.sk89q.worldedit.util.command.argument.CommandArgs;
|
||||||
import com.sk89q.worldedit.util.command.composition.ParameterCommand;
|
import com.sk89q.worldedit.util.command.composition.SimpleCommand;
|
||||||
|
|
||||||
import java.util.Collections;
|
public class ApplyCommand extends SimpleCommand<RegionApply> {
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class ApplyCommand extends ParameterCommand<RegionApply> {
|
|
||||||
|
|
||||||
private final PointGeneratorArg pointGeneratorArg = addParameter(new PointGeneratorArg());
|
private final PointGeneratorArg pointGeneratorArg = addParameter(new PointGeneratorArg());
|
||||||
|
|
||||||
@ -42,11 +39,6 @@ public class ApplyCommand extends ParameterCommand<RegionApply> {
|
|||||||
return new RegionApply(function);
|
return new RegionApply(function);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<String> getSuggestions(CommandArgs args, CommandLocals locals) {
|
|
||||||
return Collections.emptyList();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return "Applies a point generator to an area";
|
return "Applies a point generator to an area";
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren