mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Add tab completion for gamemode flag
This commit is contained in:
parent
600d38d3e2
commit
b02177e1d0
@ -32,6 +32,9 @@ import com.sk89q.worldedit.world.gamemode.GameMode;
|
|||||||
import com.sk89q.worldedit.world.gamemode.GameModes;
|
import com.sk89q.worldedit.world.gamemode.GameModes;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
|
public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
|
||||||
|
|
||||||
public static final GameMode DEFAULT = new GameMode("default");
|
public static final GameMode DEFAULT = new GameMode("default");
|
||||||
@ -115,4 +118,9 @@ public class GamemodeFlag extends PlotFlag<GameMode, GamemodeFlag> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Collection<String> getTabCompletions() {
|
||||||
|
return Arrays.asList("survival", "creative", "adventure", "spectator");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user