mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-16 22:01:07 +00:00
tab completion
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.dfsek.terra.commands.structure;
|
||||
|
||||
import com.dfsek.terra.api.command.tab.TabCompleter;
|
||||
import com.dfsek.terra.api.platform.CommandSender;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class RotationCompleter implements TabCompleter {
|
||||
@Override
|
||||
public List<String> complete(CommandSender sender) {
|
||||
return Arrays.asList("0", "90", "180", "270");
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,8 @@ import com.dfsek.terra.api.command.annotation.Switch;
|
||||
@Argument(
|
||||
value = "rotation",
|
||||
required = false,
|
||||
type = int.class
|
||||
type = int.class,
|
||||
tabCompleter = RotationCompleter.class
|
||||
)
|
||||
},
|
||||
switches = {
|
||||
|
||||
Reference in New Issue
Block a user