Skip to content

Commit

Permalink
updates command sender in commandfeature
Browse files Browse the repository at this point in the history
  • Loading branch information
RUGMJ committed Dec 31, 2023
1 parent 43c21b8 commit 087b033
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.Text;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -50,7 +51,7 @@ public void register() {
ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (keyBinding.wasPressed()) {
assert client.player != null;
client.player.sendChatMessage("/" + info.command());
client.player.sendMessage(Text.literal("/" + info.command()));
}
});
}
Expand Down

0 comments on commit 087b033

Please sign in to comment.