diff --git a/source/plugin/commands/rawcommand.rst b/source/plugin/commands/rawcommand.rst index ae6501d0aa2..c0d5e9aeb4a 100644 --- a/source/plugin/commands/rawcommand.rst +++ b/source/plugin/commands/rawcommand.rst @@ -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(""); - 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 { @@ -46,7 +46,7 @@ The first step is to create a class for the command. The class has to implement @Override public Optional shortDescription(CommandCause cause) { - return Optional.of(this.descritption); + return Optional.of(this.description); } @Override @@ -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 event){ event.register(this.container, new MyBroadcastCommand(), "broadcast"); - } \ No newline at end of file + }