From 25ad916611708b47c0ace58f0c04491dac5dafd1 Mon Sep 17 00:00:00 2001 From: Albert Pham Date: Wed, 28 Oct 2015 14:08:47 -0700 Subject: [PATCH] Make ApplyCommand use SimpleCommand rather than ParameterCommand. --- .../worldedit/command/composition/ApplyCommand.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ApplyCommand.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ApplyCommand.java index 55a79a516..905c3e0d6 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ApplyCommand.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ApplyCommand.java @@ -27,12 +27,9 @@ import com.sk89q.worldedit.function.EditContext; 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 { +public class ApplyCommand extends SimpleCommand { private final PointGeneratorArg pointGeneratorArg = addParameter(new PointGeneratorArg()); @@ -42,11 +39,6 @@ public class ApplyCommand extends ParameterCommand { return new RegionApply(function); } - @Override - public List getSuggestions(CommandArgs args, CommandLocals locals) { - return Collections.emptyList(); - } - @Override public String getDescription() { return "Applies a point generator to an area";