implement switches

This commit is contained in:
dfsek
2021-03-08 00:52:57 -07:00
parent 0cd5898107
commit 026a6066d3
7 changed files with 102 additions and 21 deletions
@@ -2,18 +2,21 @@ package com.dfsek.terra.commands.structure;
import com.dfsek.terra.api.command.CommandTemplate;
import com.dfsek.terra.api.command.ExecutionState;
import com.dfsek.terra.api.command.annotation.Argument;
import com.dfsek.terra.api.command.annotation.Command;
import com.dfsek.terra.api.command.annotation.Flag;
import com.dfsek.terra.api.command.annotation.Switch;
@Command(
flags = {
@Flag(value = "rotation",
defaultValue = "0",
shorthand = "r"
),
@Flag(value = "load",
defaultValue = "FULL",
shorthand = "l"
arguments = {
@Argument(
value = "rotation",
required = false,
type = int.class
)
},
switches = {
@Switch(value = "chunk",
aliases = "c"
)
}
)