From c75b0c1d09561ba217e55fcdf63e3bb675df8a94 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+chipmunkmc@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:03:45 -0500 Subject: [PATCH] fix yet another chip mc moment --- .../java/land/chipmunk/chipmunkbot/commands/EchoCommand.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/commands/EchoCommand.java b/src/main/java/land/chipmunk/chipmunkbot/commands/EchoCommand.java index 33fd589..22b6c2a 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/commands/EchoCommand.java +++ b/src/main/java/land/chipmunk/chipmunkbot/commands/EchoCommand.java @@ -24,10 +24,8 @@ public class EchoCommand extends Command { public int echo (CommandContext context) { 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)); return 1;