From 92c4a145a63b7090688d9f07903f4c8692110aec Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Wed, 8 Jun 2016 22:21:24 -0400 Subject: [PATCH] Further updates for Sponge API 5.x --- .../main/java/com/sk89q/worldedit/sponge/SpongePlatform.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongePlatform.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongePlatform.java index 93dbc0174..c409540c2 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongePlatform.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongePlatform.java @@ -31,11 +31,13 @@ import com.sk89q.worldedit.util.command.CommandMapping; import com.sk89q.worldedit.util.command.Dispatcher; import com.sk89q.worldedit.world.World; import org.spongepowered.api.Sponge; +import org.spongepowered.api.command.CommandException; import org.spongepowered.api.command.CommandResult; import org.spongepowered.api.command.CommandSource; import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.item.ItemType; import org.spongepowered.api.scheduler.Task; +import org.spongepowered.api.world.Location; import javax.annotation.Nullable; import java.util.*; @@ -131,7 +133,7 @@ class SpongePlatform extends AbstractPlatform implements MultiUserPlatform { } @Override - public List getSuggestions(CommandSource source, String arguments) throws org.spongepowered.api.command.CommandException { + public List getSuggestions(CommandSource source, String arguments, @Nullable Location targetPosition) throws CommandException { CommandSuggestionEvent weEvent = new CommandSuggestionEvent(SpongeWorldEdit.inst().wrapCommandSource(source), command.getPrimaryAlias() + " " + arguments); WorldEdit.getInstance().getEventBus().post(weEvent); return weEvent.getSuggestions();