Skip to content

Commit

Permalink
fixed quotes in the copy command
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Nov 13, 2020
1 parent 70e4feb commit e1d9205
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ public class CTCommands {

public static void init(CommandDispatcher<CommandSource> dispatcher) {
root.then(Commands.literal("copy")
.then(Commands.argument("toCopy", StringArgumentType.greedyString()).executes(context -> {
.then(Commands.argument("toCopy", StringArgumentType.string()).executes(context -> {
String toCopy = context.getArgument("toCopy", String.class);
ServerPlayerEntity entity = context.getSource().asPlayer();
PacketHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> entity), new MessageCopy(toCopy));
Expand Down

0 comments on commit e1d9205

Please sign in to comment.