Skip to content

Commit

Permalink
feat: update cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 13, 2024
1 parent b4d7152 commit 7dd7937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ private void registerDefaultExceptionHandlers() {
.registerHandler(NoPermissionException.class, ctx -> LOGGER.error(MESSAGE_NO_PERMS))
.registerHandler(InvalidCommandSenderException.class, ctx -> LOGGER.error(ctx.exception().getMessage()))
.registerHandler(InvalidSyntaxException.class,
ctx -> LOGGER.error(MESSAGE_INVALID_SYNTAX + ctx.exception().getCorrectSyntax()));
ctx -> LOGGER.error(MESSAGE_INVALID_SYNTAX + ctx.exception().correctSyntax()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
//
package org.incendo.cloud.spring.example.commands;

import cloud.commandframework.annotations.Command;
import cloud.commandframework.annotations.CommandDescription;
import cloud.commandframework.annotations.CommandMethod;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.spring.SpringCommandSender;
import org.incendo.cloud.spring.annotation.CommandGroup;
Expand Down Expand Up @@ -58,7 +58,7 @@ public ListCatCommand(final @NonNull CatService catService) {
*/
@CommandGroup("Cat")
@CommandDescription("List the cats")
@CommandMethod("cat list")
@Command("cat list")
public void listCats(final @NonNull SpringCommandSender sender) {
sender.writeLine("Cats");
this.catService.cats().forEach(cat -> sender.writeLine(String.format("- %s (Age: %d)", cat.name(), cat.age())));
Expand Down

0 comments on commit 7dd7937

Please sign in to comment.