SigCommand
Custom command module
Reason
Usage
Implementation
@Slf4j
public class TestSigCommand extends SigCommand {
public TestSigCommand() {
super("testcmd");
setPermission("siglib.testcmd");
addCommand(new TestSubCommandShow(),
new TestSubCommandAdd(),
new TestSubCommandDelete(),
new TestSubCommandPerm(),
new TestSubCommandRecursive());
}
@Override
public void onCommand(@NotNull SigCommandInput input) {
log.info("test main command");
}
@Override
protected List<String> tabComplete(@NotNull SigCommandInput input) {
return completeSubCommands();
}
}Register
Feature
Namespace
Execute command
Aliases
Description
Sub command
Tab complete
Register
Miscellaneous
SigCommandConstraint
Permission
Cooldown
SigCommandInput
SigCommandBuilder
SigCommandException
Caution
Last updated