fix yet another chip mc moment

This commit is contained in:
Chipmunk 2023-01-19 19:03:45 -05:00
parent 3f7ee544e2
commit c75b0c1d09

View file

@ -24,10 +24,8 @@ public class EchoCommand extends Command {
public int echo (CommandContext<CommandSource> context) { public int echo (CommandContext<CommandSource> context) {
final CommandSource source = context.getSource(); final CommandSource source = context.getSource();
final ChipmunkBot client = source.client(); final String text = getString(context, "echo");
client.core().run(getString(context, "command"));
final String text = getString(context, "command");
source.sendOutput(Component.text(text)); source.sendOutput(Component.text(text));
return 1; return 1;