From f6332d2cd91790d733160f7756ea9b6f18c8b0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Wed, 8 Apr 2020 16:53:39 +0200 Subject: [PATCH] Add tab completions to flyflag --- .../plotsquared/plot/flags/implementations/FlyFlag.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/FlyFlag.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/FlyFlag.java index 2da869b1e..85bbb5335 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/FlyFlag.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/FlyFlag.java @@ -4,6 +4,9 @@ import com.github.intellectualsites.plotsquared.plot.config.Captions; import com.github.intellectualsites.plotsquared.plot.flags.PlotFlag; import org.jetbrains.annotations.NotNull; +import java.util.Arrays; +import java.util.Collection; + public class FlyFlag extends PlotFlag { public static final FlyFlag FLIGHT_FLAG_DISABLED = new FlyFlag(FlyStatus.DISABLED); @@ -55,6 +58,10 @@ public class FlyFlag extends PlotFlag { } } + @Override public Collection getTabCompletions() { + return Arrays.asList("true", "false", "default"); + } + public enum FlyStatus { ENABLED, DISABLED,