File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ The first step is to create a class for the command. The class has to implement
25
25
public class MyBroadcastCommand implements Command .Raw {
26
26
27
27
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" );
29
29
30
30
@Override
31
31
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
46
46
47
47
@Override
48
48
public Optional<Component > shortDescription (CommandCause cause ) {
49
- return Optional . of(this . descritption );
49
+ return Optional . of(this . description );
50
50
}
51
51
52
52
@Override
@@ -79,4 +79,4 @@ an instance of the raw command and the main command as well as any aliases.
79
79
@Listener
80
80
public void onRegisterRawCommands(final RegisterCommandEvent<Command . Raw > event){
81
81
event. register(this . container, new MyBroadcastCommand (), " broadcast" );
82
- }
82
+ }
You can’t perform that action at this time.
0 commit comments