mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-16 22:01:07 +00:00
implement switches
This commit is contained in:
@@ -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"
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user