aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
index d0bac92..dc6be44 100644
--- a/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
+++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
@@ -32,6 +32,8 @@ import net.minecraft.text.Text;
import java.util.UUID;
public class FabricCommandSender extends AbstractCommandSender<CommandOutput> {
+ private static final UUID NIL_UUID = new UUID(0, 0);
+
private final FabricSparkPlugin plugin;
public FabricCommandSender(CommandOutput commandOutput, FabricSparkPlugin plugin) {
@@ -61,7 +63,7 @@ public class FabricCommandSender extends AbstractCommandSender<CommandOutput> {
@Override
public void sendMessage(Component message) {
Text component = Text.Serializer.fromJson(GsonComponentSerializer.INSTANCE.serialize(message));
- super.delegate.sendMessage(component);
+ super.delegate.sendSystemMessage(component, NIL_UUID);
}
@Override