aboutsummaryrefslogtreecommitdiff
path: root/spark-fabric/src/main
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-11-07 17:41:39 +0000
committerLuck <git@lucko.me>2020-11-07 17:41:39 +0000
commit8cc92ff83634dffacfe1f25a135bc9ac665ff68b (patch)
tree35efc9d9131c7ceb1db3822fbb6a0707535f7c18 /spark-fabric/src/main
parent70a468e114316a98f6d7f7e91afa8d50639762c9 (diff)
downloadspark-8cc92ff83634dffacfe1f25a135bc9ac665ff68b.tar.gz
spark-8cc92ff83634dffacfe1f25a135bc9ac665ff68b.tar.bz2
spark-8cc92ff83634dffacfe1f25a135bc9ac665ff68b.zip
Update from text to adventure
Diffstat (limited to 'spark-fabric/src/main')
-rw-r--r--spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java6
1 files changed, 3 insertions, 3 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 dc6be44..c2c5c77 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
@@ -22,8 +22,8 @@ package me.lucko.spark.fabric;
import me.lucko.spark.common.command.sender.AbstractCommandSender;
import me.lucko.spark.fabric.plugin.FabricSparkPlugin;
-import net.kyori.text.Component;
-import net.kyori.text.serializer.gson.GsonComponentSerializer;
+import net.kyori.adventure.text.Component;
+import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.command.CommandOutput;
import net.minecraft.server.dedicated.DedicatedServer;
@@ -62,7 +62,7 @@ public class FabricCommandSender extends AbstractCommandSender<CommandOutput> {
@Override
public void sendMessage(Component message) {
- Text component = Text.Serializer.fromJson(GsonComponentSerializer.INSTANCE.serialize(message));
+ Text component = Text.Serializer.fromJson(GsonComponentSerializer.gson().serialize(message));
super.delegate.sendSystemMessage(component, NIL_UUID);
}