Add tab completions to flyflag

This commit is contained in:
Alexander Söderberg 2020-04-08 16:53:39 +02:00
parent 4ca7a81e96
commit f6332d2cd9

View File

@ -4,6 +4,9 @@ import com.github.intellectualsites.plotsquared.plot.config.Captions;
import com.github.intellectualsites.plotsquared.plot.flags.PlotFlag; import com.github.intellectualsites.plotsquared.plot.flags.PlotFlag;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.Collection;
public class FlyFlag extends PlotFlag<FlyFlag.FlyStatus, FlyFlag> { public class FlyFlag extends PlotFlag<FlyFlag.FlyStatus, FlyFlag> {
public static final FlyFlag FLIGHT_FLAG_DISABLED = new FlyFlag(FlyStatus.DISABLED); public static final FlyFlag FLIGHT_FLAG_DISABLED = new FlyFlag(FlyStatus.DISABLED);
@ -55,6 +58,10 @@ public class FlyFlag extends PlotFlag<FlyFlag.FlyStatus, FlyFlag> {
} }
} }
@Override public Collection<String> getTabCompletions() {
return Arrays.asList("true", "false", "default");
}
public enum FlyStatus { public enum FlyStatus {
ENABLED, ENABLED,
DISABLED, DISABLED,