♻️ Reformat + Update .editorconfig
This commit is contained in:
parent
8bdec87a74
commit
2aac3980d5
169 changed files with 4261 additions and 2448 deletions
|
|
@ -64,17 +64,20 @@ class AnnotationParserTest {
|
|||
|
||||
@ProxiedBy("proxycommand")
|
||||
@CommandMethod("test|t literal <int> [string]")
|
||||
public void testCommand(final TestCommandSender sender,
|
||||
@Argument("int") @Range(max = "100") final int argument,
|
||||
@Argument(value = "string", defaultValue = "potato", parserName = "potato")
|
||||
final String string) {
|
||||
public void testCommand(
|
||||
final TestCommandSender sender,
|
||||
@Argument("int") @Range(max = "100") final int argument,
|
||||
@Argument(value = "string", defaultValue = "potato", parserName = "potato") final String string
|
||||
) {
|
||||
System.out.printf("Received int: %d and string '%s'\n", argument, string);
|
||||
}
|
||||
|
||||
@CommandMethod("flagcommand")
|
||||
public void testFlags(final TestCommandSender sender,
|
||||
@Flag(value = "print", aliases = "p") boolean print,
|
||||
@Flag(value = "word", aliases = "w") String word) {
|
||||
public void testFlags(
|
||||
final TestCommandSender sender,
|
||||
@Flag(value = "print", aliases = "p") boolean print,
|
||||
@Flag(value = "word", aliases = "w") String word
|
||||
) {
|
||||
if (print) {
|
||||
System.out.println(word);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,8 +40,10 @@ public class TestCommandManager extends CommandManager<TestCommandSender> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public final boolean hasPermission(final TestCommandSender sender,
|
||||
final String permission) {
|
||||
public final boolean hasPermission(
|
||||
final TestCommandSender sender,
|
||||
final String permission
|
||||
) {
|
||||
return !permission.equalsIgnoreCase("no");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue