mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Make ApplyCommand use SimpleCommand rather than ParameterCommand.
This commit is contained in:
parent
6cfc60b2d6
commit
25ad916611
@ -27,12 +27,9 @@
|
||||
import com.sk89q.worldedit.function.RegionFunction;
|
||||
import com.sk89q.worldedit.function.factory.RegionApply;
|
||||
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;
|
||||
import java.util.List;
|
||||
|
||||
public class ApplyCommand extends ParameterCommand<RegionApply> {
|
||||
public class ApplyCommand extends SimpleCommand<RegionApply> {
|
||||
|
||||
private final PointGeneratorArg pointGeneratorArg = addParameter(new PointGeneratorArg());
|
||||
|
||||
@ -42,11 +39,6 @@ public RegionApply call(CommandArgs args, CommandLocals locals) throws CommandEx
|
||||
return new RegionApply(function);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getSuggestions(CommandArgs args, CommandLocals locals) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Applies a point generator to an area";
|
||||
|
Loading…
Reference in New Issue
Block a user