Skip to content

Commit 537f4ce

Browse files
authored
Fix typo descritption -> description in rawcommand.rst (#1004)
1 parent 47652fb commit 537f4ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/plugin/commands/rawcommand.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The first step is to create a class for the command. The class has to implement
2525
public class MyBroadcastCommand implements Command.Raw {
2626
2727
private final Component usage = Component.text("<message>");
28-
private final Component descritption = Component.text("Display a message to all players");
28+
private final Component description = Component.text("Display a message to all players");
2929
3030
@Override
3131
public CommandResult process(CommandCause cause, ArgumentReader.Mutable arguments) throws CommandException {
@@ -46,7 +46,7 @@ The first step is to create a class for the command. The class has to implement
4646
4747
@Override
4848
public Optional<Component> shortDescription(CommandCause cause) {
49-
return Optional.of(this.descritption);
49+
return Optional.of(this.description);
5050
}
5151
5252
@Override
@@ -79,4 +79,4 @@ an instance of the raw command and the main command as well as any aliases.
7979
@Listener
8080
public void onRegisterRawCommands(final RegisterCommandEvent<Command.Raw> event){
8181
event.register(this.container, new MyBroadcastCommand(), "broadcast");
82-
}
82+
}

0 commit comments

Comments
 (0)