Skip to content

Commit

Permalink
Fix typo descritption -> description in rawcommand.rst (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorelAli authored Jun 27, 2024
1 parent 47652fb commit 537f4ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/plugin/commands/rawcommand.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The first step is to create a class for the command. The class has to implement
public class MyBroadcastCommand implements Command.Raw {
private final Component usage = Component.text("<message>");
private final Component descritption = Component.text("Display a message to all players");
private final Component description = Component.text("Display a message to all players");
@Override
public CommandResult process(CommandCause cause, ArgumentReader.Mutable arguments) throws CommandException {
Expand All @@ -46,7 +46,7 @@ The first step is to create a class for the command. The class has to implement
@Override
public Optional<Component> shortDescription(CommandCause cause) {
return Optional.of(this.descritption);
return Optional.of(this.description);
}
@Override
Expand Down Expand Up @@ -79,4 +79,4 @@ an instance of the raw command and the main command as well as any aliases.
@Listener
public void onRegisterRawCommands(final RegisterCommandEvent<Command.Raw> event){
event.register(this.container, new MyBroadcastCommand(), "broadcast");
}
}

0 comments on commit 537f4ce

Please sign in to comment.