From 12861f6c073b59c40ff6cff5d54d2e8e95bbc7d4 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Thu, 19 Nov 2020 17:39:58 +0100 Subject: [PATCH] Add tab completion for /plot setowner --- Core/src/main/java/com/plotsquared/core/command/Owner.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/command/Owner.java b/Core/src/main/java/com/plotsquared/core/command/Owner.java index c29034584..fe67218a3 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Owner.java +++ b/Core/src/main/java/com/plotsquared/core/command/Owner.java @@ -38,10 +38,13 @@ import com.plotsquared.core.plot.Plot; import com.plotsquared.core.util.EventDispatcher; import com.plotsquared.core.util.Permissions; import com.plotsquared.core.util.PlayerManager; +import com.plotsquared.core.util.TabCompletions; import com.plotsquared.core.util.task.TaskManager; import net.kyori.adventure.text.minimessage.Template; import javax.annotation.Nonnull; +import java.util.Collection; +import java.util.Collections; import java.util.Set; import java.util.UUID; import java.util.concurrent.TimeoutException; @@ -188,4 +191,7 @@ public class Owner extends SetCommand { } return true; } + @Override public Collection tab(final PlotPlayer player, final String[] args, final boolean space) { + return TabCompletions.completePlayers(String.join(",", args).trim(), Collections.emptyList()); + } }