Skip to content

Commit

Permalink
fix: @CommandMethod -> @Command
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 13, 2024
1 parent 7a76251 commit 6c3a7d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cloud-processors-requirements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ RequirementBindings.create(this.annotationParser, REQUIREMENT_KEY).register(

// Then annotate a method with it:
@YourAnnotation
@CommandMethod("command")
@Command("command")
public void commandMethod() {
// ...
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
//
package org.incendo.cloud.processors.requirements.annotations;

import cloud.commandframework.Command;
import cloud.commandframework.CommandManager;
import cloud.commandframework.annotations.AnnotationParser;
import cloud.commandframework.annotations.CommandMethod;
import cloud.commandframework.annotations.Command;
import cloud.commandframework.execution.CommandExecutionHandler;
import cloud.commandframework.keys.CloudKey;
import io.leangen.geantyref.TypeToken;
Expand Down Expand Up @@ -83,7 +82,7 @@ void testBindings() {
);

// Act
final Command<TestCommandSender> command =
final cloud.commandframework.Command<TestCommandSender> command =
this.annotationParser.parse(new TestClass()).stream().findFirst().orElseThrow();

// Assert
Expand All @@ -99,7 +98,7 @@ void testBindings() {
public static final class TestClass {

@HasName
@CommandMethod("command")
@Command("command")
public void command() {
}
}
Expand Down

0 comments on commit 6c3a7d3

Please sign in to comment.